public interface StompHeaders extends TextHeaders
TextHeaders.EntryVisitor, TextHeaders.NameVisitorConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>Headers.ValueConverter<T>| 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 a new header 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 a new header with the specified name and values.
|
StompHeaders |
add(TextHeaders headers)
|
StompHeaders |
addBoolean(CharSequence name,
boolean value)
Add the
name to value. |
StompHeaders |
addByte(CharSequence name,
byte value)
Add the
name to value. |
StompHeaders |
addChar(CharSequence name,
char value)
Add the
name to value. |
StompHeaders |
addDouble(CharSequence name,
double value)
Add the
name to value. |
StompHeaders |
addFloat(CharSequence name,
float value)
Add the
name to value. |
StompHeaders |
addInt(CharSequence name,
int value)
Add the
name to value. |
StompHeaders |
addLong(CharSequence name,
long value)
Add the
name to value. |
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 with the specified name and value.
|
StompHeaders |
addShort(CharSequence name,
short value)
Add the
name to value. |
StompHeaders |
addTimeMillis(CharSequence name,
long value)
Add the
name to value. |
StompHeaders |
clear()
Removes all headers.
|
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 header with the specified name and values.
|
StompHeaders |
set(TextHeaders headers)
|
StompHeaders |
setAll(TextHeaders 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 header with the specified name and value.
|
StompHeaders |
setShort(CharSequence name,
short value)
Set the
name to value. |
StompHeaders |
setTimeMillis(CharSequence name,
long value)
Set the
name to value. |
contains, containsObjectentriesConverted, getAllAndConvert, getAllAndRemoveAndConvert, getAndConvert, getAndConvert, getAndRemoveAndConvert, getAndRemoveAndConvert, iteratorConverted, namesAndConvertadd, contains, contains, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsObject, containsObject, containsShort, containsTimeMillis, entries, forEachEntry, forEachName, 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, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, iterator, names, namesList, remove, set, setAll, 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)
HeadersString, it is
converted into a String by Object.toString(), except in the cases of Date and
Calendar, which are formatted to the date format defined in RFC2616.add in interface Headers<CharSequence>add in interface TextHeadersname - the name of the header being addedvalue - the value of the header being addedthisStompHeaders add(CharSequence name, Iterable<? extends CharSequence> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface Headers<CharSequence>add in interface TextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthisStompHeaders add(CharSequence name, CharSequence... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
add in interface Headers<CharSequence>add in interface TextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthisStompHeaders addObject(CharSequence name, Object value)
HeadersString, it is
converted into a String by Object.toString(), except in the cases of Date and
Calendar, which are formatted to the date format defined in RFC2616.addObject in interface Headers<CharSequence>addObject in interface TextHeadersname - the name of the header being addedvalue - the value of the header being addedthisStompHeaders addObject(CharSequence name, Iterable<?> values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface Headers<CharSequence>addObject in interface TextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthisStompHeaders addObject(CharSequence name, Object... values)
Headers
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
addObject in interface Headers<CharSequence>addObject in interface TextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthisStompHeaders addBoolean(CharSequence name, boolean value)
Headersname to value.addBoolean in interface Headers<CharSequence>addBoolean in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addByte(CharSequence name, byte value)
Headersname to value.addByte in interface Headers<CharSequence>addByte in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addChar(CharSequence name, char value)
Headersname to value.addChar in interface Headers<CharSequence>addChar in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addShort(CharSequence name, short value)
Headersname to value.addShort in interface Headers<CharSequence>addShort in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addInt(CharSequence name, int value)
Headersname to value.addInt in interface Headers<CharSequence>addInt in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addLong(CharSequence name, long value)
Headersname to value.addLong in interface Headers<CharSequence>addLong in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addFloat(CharSequence name, float value)
Headersname to value.addFloat in interface Headers<CharSequence>addFloat in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addDouble(CharSequence name, double value)
Headersname to value.addDouble in interface Headers<CharSequence>addDouble in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders addTimeMillis(CharSequence name, long value)
Headersname to value.addTimeMillis in interface Headers<CharSequence>addTimeMillis in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders add(TextHeaders headers)
TextHeadersadd in interface TextHeadersStompHeaders set(CharSequence name, CharSequence value)
HeadersString, it is converted into a String by
Object.toString(), except for Date and Calendar, which are formatted
to the date format defined in RFC2616.set in interface Headers<CharSequence>set in interface TextHeadersname - The name of the header being setvalue - The value of the header being setthisStompHeaders set(CharSequence name, Iterable<? extends CharSequence> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface Headers<CharSequence>set in interface TextHeadersname - the name of the headers being setvalues - the values of the headers being setthisStompHeaders set(CharSequence name, CharSequence... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
set in interface Headers<CharSequence>set in interface TextHeadersname - the name of the headers being setvalues - the values of the headers being setthisStompHeaders setObject(CharSequence name, Object value)
HeadersString, it is converted into a String by
Object.toString(), except for Date and Calendar, which are formatted
to the date format defined in RFC2616.setObject in interface Headers<CharSequence>setObject in interface TextHeadersname - The name of the header being setvalue - The value of the header being setthisStompHeaders setObject(CharSequence name, Iterable<?> values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface Headers<CharSequence>setObject in interface TextHeadersname - the name of the headers being setvalues - the values of the headers being setthisStompHeaders setObject(CharSequence name, Object... values)
Headers
headers.remove(name);
for (Object v : values) {
if (v == null) {
break;
}
headers.add(name, v);
}
setObject in interface Headers<CharSequence>setObject in interface TextHeadersname - the name of the headers being setvalues - the values of the headers being setthisStompHeaders setBoolean(CharSequence name, boolean value)
Headersname to value. This will remove all previous values associated with name.setBoolean in interface Headers<CharSequence>setBoolean in interface TextHeadersname - 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>setByte in interface TextHeadersname - 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>setChar in interface TextHeadersname - 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>setShort in interface TextHeadersname - 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>setInt in interface TextHeadersname - 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>setLong in interface TextHeadersname - 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>setFloat in interface TextHeadersname - 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>setDouble in interface TextHeadersname - 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>setTimeMillis in interface TextHeadersname - The name to modifyvalue - The valuethisStompHeaders set(TextHeaders headers)
TextHeadersset in interface TextHeadersStompHeaders setAll(TextHeaders headers)
TextHeaderssetAll in interface TextHeadersStompHeaders clear()
Headersclear in interface Headers<CharSequence>clear in interface TextHeadersthisCopyright © 2008–2015 The Netty Project. All rights reserved.