public interface StompHeaders extends Headers<CharSequence>
| Modifier and Type | Field and Description |
|---|---|
static AsciiString |
ACCEPT_VERSION |
static AsciiString |
ACK |
static AsciiString |
CONTENT_LENGTH |
static AsciiString |
CONTENT_TYPE |
static AsciiString |
DESTINATION |
static AsciiString |
HEART_BEAT |
static AsciiString |
HOST |
static AsciiString |
ID |
static AsciiString |
LOGIN |
static AsciiString |
MESSAGE |
static AsciiString |
MESSAGE_ID |
static AsciiString |
PASSCODE |
static AsciiString |
RECEIPT |
static AsciiString |
RECEIPT_ID |
static AsciiString |
SERVER |
static AsciiString |
SESSION |
static AsciiString |
SUBSCRIPTION |
static AsciiString |
TRANSACTION |
static AsciiString |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
StompHeaders |
add(CharSequence name,
CharSequence... values)
Adds new headers with the specified
name and values. |
StompHeaders |
add(CharSequence name,
CharSequence value)
Adds a new header with the specified
name and value. |
StompHeaders |
add(CharSequence name,
Iterable<? extends CharSequence> values)
Adds new headers with the specified
name and values. |
StompHeaders |
add(Headers<? extends CharSequence> headers)
Adds all header names and values of
headers to this object. |
StompHeaders |
addBoolean(CharSequence name,
boolean value)
Adds a new header.
|
StompHeaders |
addByte(CharSequence name,
byte value)
Adds a new header.
|
StompHeaders |
addChar(CharSequence name,
char value)
Adds a new header.
|
StompHeaders |
addDouble(CharSequence name,
double value)
Adds a new header.
|
StompHeaders |
addFloat(CharSequence name,
float value)
Adds a new header.
|
StompHeaders |
addInt(CharSequence name,
int value)
Adds a new header.
|
StompHeaders |
addLong(CharSequence name,
long value)
Adds a new header.
|
StompHeaders |
addObject(CharSequence name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
StompHeaders |
addObject(CharSequence name,
Object... values)
Adds a new header with the specified name and values.
|
StompHeaders |
addObject(CharSequence name,
Object value)
Adds a new header.
|
StompHeaders |
addShort(CharSequence name,
short value)
Adds a new header.
|
StompHeaders |
addTimeMillis(CharSequence name,
long value)
Adds a new header.
|
StompHeaders |
clear()
Removes all headers.
|
boolean |
contains(CharSequence name,
CharSequence value,
boolean ignoreCase)
Returns
true if a header with the name and value exists, false otherwise. |
List<String> |
getAllAsString(CharSequence name)
|
String |
getAsString(CharSequence name)
Headers.get(Object) and convert the result to a String. |
Iterator<Map.Entry<String,String>> |
iteratorAsString()
|
StompHeaders |
set(CharSequence name,
CharSequence... values)
Sets a header with the specified name and values.
|
StompHeaders |
set(CharSequence name,
CharSequence value)
Sets a header with the specified name and value.
|
StompHeaders |
set(CharSequence name,
Iterable<? extends CharSequence> values)
Sets a new header with the specified name and values.
|
StompHeaders |
set(Headers<? extends CharSequence> headers)
Clears the current header entries and copies all header entries of the specified
headers. |
StompHeaders |
setAll(Headers<? extends CharSequence> headers)
Retains all current headers but calls
#set(T, T) for each entry in headers. |
StompHeaders |
setBoolean(CharSequence name,
boolean value)
Set the
name to value. |
StompHeaders |
setByte(CharSequence name,
byte value)
Set the
name to value. |
StompHeaders |
setChar(CharSequence name,
char value)
Set the
name to value. |
StompHeaders |
setDouble(CharSequence name,
double value)
Set the
name to value. |
StompHeaders |
setFloat(CharSequence name,
float value)
Set the
name to value. |
StompHeaders |
setInt(CharSequence name,
int value)
Set the
name to value. |
StompHeaders |
setLong(CharSequence name,
long value)
Set the
name to value. |
StompHeaders |
setObject(CharSequence name,
Iterable<?> values)
Sets a header with the specified name and values.
|
StompHeaders |
setObject(CharSequence name,
Object... values)
Sets a header with the specified name and values.
|
StompHeaders |
setObject(CharSequence name,
Object value)
Sets a new header.
|
StompHeaders |
setShort(CharSequence name,
short value)
Set the
name to value. |
StompHeaders |
setTimeMillis(CharSequence name,
long value)
Set the
name to value. |
contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, iterator, names, remove, sizestatic final AsciiString ACCEPT_VERSION
static final AsciiString HOST
static final AsciiString LOGIN
static final AsciiString PASSCODE
static final AsciiString HEART_BEAT
static final AsciiString VERSION
static final AsciiString SESSION
static final AsciiString SERVER
static final AsciiString DESTINATION
static final AsciiString ID
static final AsciiString ACK
static final AsciiString TRANSACTION
static final AsciiString RECEIPT
static final AsciiString MESSAGE_ID
static final AsciiString SUBSCRIPTION
static final AsciiString RECEIPT_ID
static final AsciiString MESSAGE
static final AsciiString CONTENT_LENGTH
static final AsciiString CONTENT_TYPE
StompHeaders add(CharSequence name, CharSequence value)
Headersname and value.add in interface Headers<CharSequence>name - the name of the headervalue - the value of the headerthisStompHeaders add(CharSequence name, Iterable<? extends CharSequence> values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisStompHeaders add(CharSequence name, CharSequence... values)
Headersname and values. This method is semantically equivalent to
for (T value : values) {
headers.add(name, value);
}
add in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisStompHeaders addObject(CharSequence name, Object value)
Headersvalue is added, it's converted to type T.addObject in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addObject(CharSequence name, Iterable<?> values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisStompHeaders addObject(CharSequence name, Object... values)
Headers
for (Object v : values) {
headers.addObject(name, v);
}
addObject in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisStompHeaders addBoolean(CharSequence name, boolean value)
HeadersaddBoolean in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addByte(CharSequence name, byte value)
HeadersaddByte in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addChar(CharSequence name, char value)
HeadersaddChar in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addShort(CharSequence name, short value)
HeadersaddShort in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addInt(CharSequence name, int value)
HeadersaddInt in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addLong(CharSequence name, long value)
HeadersaddLong in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addFloat(CharSequence name, float value)
HeadersaddFloat in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addDouble(CharSequence name, double value)
HeadersaddDouble in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders addTimeMillis(CharSequence name, long value)
HeadersaddTimeMillis in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders add(Headers<? extends CharSequence> headers)
Headersheaders to this object.add in interface Headers<CharSequence>thisStompHeaders set(CharSequence name, CharSequence value)
Headersset in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders set(CharSequence name, Iterable<? extends CharSequence> values)
Headers
for (T v : values) {
headers.addObject(name, v);
}
set in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisStompHeaders set(CharSequence name, CharSequence... values)
Headers
headers.remove(name);
for (T v : values) {
headers.add(name, v);
}
set in interface Headers<CharSequence>name - the header namevalues - the value of the headerthisStompHeaders setObject(CharSequence name, Object value)
Headersvalue is add, it's
converted to type T.setObject in interface Headers<CharSequence>name - the header namevalue - the value of the headerthisStompHeaders setObject(CharSequence name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisStompHeaders setObject(CharSequence name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
headers.addObject(name, v);
}
setObject in interface Headers<CharSequence>name - the header namevalues - the values of the headerthisStompHeaders setBoolean(CharSequence name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setByte(CharSequence name, byte value)
Headersname to value. This will remove all previous values associated with name.setByte in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setChar(CharSequence name, char value)
Headersname to value. This will remove all previous values associated with name.setChar in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setShort(CharSequence name, short value)
Headersname to value. This will remove all previous values associated with name.setShort in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setInt(CharSequence name, int value)
Headersname to value. This will remove all previous values associated with name.setInt in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setLong(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setLong in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setFloat(CharSequence name, float value)
Headersname to value. This will remove all previous values associated with name.setFloat in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setDouble(CharSequence name, double value)
Headersname to value. This will remove all previous values associated with name.setDouble in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders setTimeMillis(CharSequence name, long value)
Headersname to value. This will remove all previous values associated with name.setTimeMillis in interface Headers<CharSequence>name - The name to modifyvalue - The valuethisStompHeaders set(Headers<? extends CharSequence> headers)
Headersheaders.set in interface Headers<CharSequence>thisStompHeaders setAll(Headers<? extends CharSequence> headers)
Headers#set(T, T) for each entry in headers.setAll in interface Headers<CharSequence>headers - The headers used to #set(T, T) values in this instancethisStompHeaders clear()
HeadersHeaders.size() equals 0.clear in interface Headers<CharSequence>thisString getAsString(CharSequence name)
Headers.get(Object) and convert the result to a String.name - the name of the header to retrievenull if there's no such header.List<String> getAllAsString(CharSequence name)
boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
true if a header with the name and value exists, false otherwise.
If ignoreCase is true then a case insensitive compare is done on the value.
name - the name of the header to findvalue - the value of the header to findignoreCase - true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.Copyright © 2008–2015 The Netty Project. All rights reserved.