public static class STOMP.StompHeader extends Header
| 限定符和类型 | 类和说明 |
|---|---|
static class |
STOMP.StompHeader.Type |
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
headers |
protected STOMP.StompHeader.Type |
type |
| 构造器和说明 |
|---|
STOMP.StompHeader() |
| 限定符和类型 | 方法和说明 |
|---|---|
static STOMP.StompHeader |
createHeader(STOMP.StompHeader.Type type,
java.util.Map<java.lang.String,java.lang.String> headers) |
static STOMP.StompHeader |
createHeader(STOMP.StompHeader.Type type,
java.lang.String... headers)
Creates a new header
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
To be implemented by subclasses.
|
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected STOMP.StompHeader.Type type
protected final java.util.Map<java.lang.String,java.lang.String> headers
public static STOMP.StompHeader createHeader(STOMP.StompHeader.Type type, java.lang.String... headers)
type - headers - Keys and values to be added to the header hashmap. Needs to be an even numberpublic static STOMP.StompHeader createHeader(STOMP.StompHeader.Type type, java.util.Map<java.lang.String,java.lang.String> headers)
public int size()
Headerpublic void writeTo(java.io.DataOutput out)
throws java.lang.Exception
Streamablejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
Streamablejava.lang.Exception