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