public static class STOMP.StompHeader extends Header
| Modifier and Type | Class and Description |
|---|---|
static class |
STOMP.StompHeader.Type |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
headers |
protected STOMP.StompHeader.Type |
type |
| Constructor and Description |
|---|
StompHeader() |
| Modifier and Type | Method and Description |
|---|---|
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.ExceptionCopyright © 1998-2020 Red Hat. All Rights Reserved.