public class CoapResponse extends Object
Constructor and Description |
---|
CoapResponse(int code,
byte[] content,
CoapOption... options)
Create the CoAP response for a resource request.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
byte[] |
getContent() |
CoapOption[] |
getOptions() |
void |
setCode(int code) |
void |
setContent(byte[] content) |
void |
setOptions(CoapOption[] options) |
String |
toString() |
public CoapResponse(int code, byte[] content, CoapOption... options)
code
- the return code for this request see : CoapCode
content
- the content for this resource requestoptions
- the opetion to send (content-type, cacheability etc..)public int getCode()
public void setCode(int code)
public byte[] getContent()
public void setContent(byte[] content)
public CoapOption[] getOptions()
public void setOptions(CoapOption[] options)
Copyright © 2009–2013 Apache MINA Project. All rights reserved.