public class MindRpcMessageHolder extends Object
| Constructor and Description |
|---|
MindRpcMessageHolder(Map<String,String> headers,
byte[] content)
Constructs holder instance with a map of headers and a content.
|
MindRpcMessageHolder(Map<String,String> headers,
String content)
Constructs holder instance with a map of headers and a content.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Gets the content of this holder.
|
Map<String,String> |
getHeaders()
Gets headers of this holder.
|
void |
setContent(byte[] content)
Sets the content of this holder.
|
void |
setContent(String content)
Sets the content of this holder.
|
void |
setHeaders(Map<String,String> headers)
Sets the headers of this holder.
|
byte[] |
toBytes()
Gets the complete protocol representation of this
holder as array of bytes.
|
String |
toString() |
public MindRpcMessageHolder(Map<String,String> headers, String content)
headers - the headerscontent - the contentpublic void setHeaders(Map<String,String> headers)
headers - the headerspublic void setContent(byte[] content)
content - the contentpublic void setContent(String content)
content - the contentpublic Map<String,String> getHeaders()
public byte[] getContent()
public byte[] toBytes()