public class DefaultStompHeaders extends DefaultTextHeaders implements StompHeaders
DefaultTextHeaders.DefaultTextValueTypeConverterDefaultHeaders.HashCodeGenerator<T>, DefaultHeaders.IdentityNameConverter<T>, DefaultHeaders.KeyValueHeaderIterator, DefaultHeaders.NameConverter<T>TextHeaders.EntryVisitor, TextHeaders.NameVisitorConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>Headers.ValueConverter<T>ACCEPT_VERSION, ACK, CONTENT_LENGTH, CONTENT_TYPE, DESTINATION, HEART_BEAT, HOST, ID, LOGIN, MESSAGE, MESSAGE_ID, PASSCODE, RECEIPT, RECEIPT_ID, SERVER, SESSION, SUBSCRIPTION, TRANSACTION, VERSION| Constructor and Description |
|---|
DefaultStompHeaders() |
| 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, equals, 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, hashCode, isEmpty, iterator, names, namesList, remove, set, setAll, size, toString, valueConverterclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, 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, sizepublic 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 StompHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic StompHeaders 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 StompHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeadersadd in interface TextHeadersadd in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the header being addedvalue - the value of the header being addedthispublic StompHeaders 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 StompHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeadersaddObject in interface TextHeadersaddObject in class DefaultTextHeadersname - the name of the headepublic abstract rs being setvalues - the values of the headers being setthispublic StompHeaders addBoolean(CharSequence name, boolean value)
Headersname to value.addBoolean in interface Headers<CharSequence>addBoolean in interface StompHeadersaddBoolean in interface TextHeadersaddBoolean in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addChar(CharSequence name, char value)
Headersname to value.addChar in interface Headers<CharSequence>addChar in interface StompHeadersaddChar in interface TextHeadersaddChar in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addByte(CharSequence name, byte value)
Headersname to value.addByte in interface Headers<CharSequence>addByte in interface StompHeadersaddByte in interface TextHeadersaddByte in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addShort(CharSequence name, short value)
Headersname to value.addShort in interface Headers<CharSequence>addShort in interface StompHeadersaddShort in interface TextHeadersaddShort in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addInt(CharSequence name, int value)
Headersname to value.addInt in interface Headers<CharSequence>addInt in interface StompHeadersaddInt in interface TextHeadersaddInt in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addLong(CharSequence name, long value)
Headersname to value.addLong in interface Headers<CharSequence>addLong in interface StompHeadersaddLong in interface TextHeadersaddLong in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addFloat(CharSequence name, float value)
Headersname to value.addFloat in interface Headers<CharSequence>addFloat in interface StompHeadersaddFloat in interface TextHeadersaddFloat in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addDouble(CharSequence name, double value)
Headersname to value.addDouble in interface Headers<CharSequence>addDouble in interface StompHeadersaddDouble in interface TextHeadersaddDouble in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders addTimeMillis(CharSequence name, long value)
Headersname to value.addTimeMillis in interface Headers<CharSequence>addTimeMillis in interface StompHeadersaddTimeMillis in interface TextHeadersaddTimeMillis in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders add(TextHeaders headers)
TextHeadersadd in interface StompHeadersadd in interface TextHeadersadd in class DefaultTextHeaderspublic StompHeaders 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 StompHeadersset in interface TextHeadersset in class DefaultTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic StompHeaders 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 StompHeadersset in interface TextHeadersset in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeadersset in interface TextHeadersset in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - The name of the header being setvalue - The value of the header being setthispublic StompHeaders 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 StompHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeaderssetObject in interface TextHeaderssetObject in class DefaultTextHeadersname - the name of the headers being setvalues - the values of the headers being setthispublic StompHeaders 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 StompHeaderssetBoolean in interface TextHeaderssetBoolean in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetChar in interface TextHeaderssetChar in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetByte in interface TextHeaderssetByte in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetShort in interface TextHeaderssetShort in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetInt in interface TextHeaderssetInt in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetLong in interface TextHeaderssetLong in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetFloat in interface TextHeaderssetFloat in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetDouble in interface TextHeaderssetDouble in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders 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 StompHeaderssetTimeMillis in interface TextHeaderssetTimeMillis in class DefaultTextHeadersname - The name to modifyvalue - The valuethispublic StompHeaders set(TextHeaders headers)
TextHeadersset in interface StompHeadersset in interface TextHeadersset in class DefaultTextHeaderspublic StompHeaders setAll(TextHeaders headers)
TextHeaderssetAll in interface StompHeaderssetAll in interface TextHeaderssetAll in class DefaultTextHeaderspublic StompHeaders clear()
Headersclear in interface Headers<CharSequence>clear in interface StompHeadersclear in interface TextHeadersclear in class DefaultTextHeadersthisCopyright © 2008–2015 The Netty Project. All rights reserved.