public interface StompHeaders extends TextHeaders
TextHeaders.EntryVisitor, TextHeaders.NameVisitor
ConvertibleHeaders.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, containsObject
entriesConverted, getAllAndConvert, getAllAndRemoveAndConvert, getAndConvert, getAndConvert, getAndRemoveAndConvert, getAndRemoveAndConvert, iteratorConverted, namesAndConvert
add, 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, size
static 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)
Headers
String
, 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 TextHeaders
name
- the name of the header being addedvalue
- the value of the header being addedthis
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 TextHeaders
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
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 TextHeaders
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
StompHeaders addObject(CharSequence name, Object value)
Headers
String
, 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 TextHeaders
name
- the name of the header being addedvalue
- the value of the header being addedthis
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 TextHeaders
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
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 TextHeaders
name
- the name of the headepublic abstract rs being setvalues
- the values of the headers being setthis
StompHeaders addBoolean(CharSequence name, boolean value)
Headers
name
to value
.addBoolean
in interface Headers<CharSequence>
addBoolean
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addByte(CharSequence name, byte value)
Headers
name
to value
.addByte
in interface Headers<CharSequence>
addByte
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addChar(CharSequence name, char value)
Headers
name
to value
.addChar
in interface Headers<CharSequence>
addChar
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addShort(CharSequence name, short value)
Headers
name
to value
.addShort
in interface Headers<CharSequence>
addShort
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addInt(CharSequence name, int value)
Headers
name
to value
.addInt
in interface Headers<CharSequence>
addInt
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addLong(CharSequence name, long value)
Headers
name
to value
.addLong
in interface Headers<CharSequence>
addLong
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addFloat(CharSequence name, float value)
Headers
name
to value
.addFloat
in interface Headers<CharSequence>
addFloat
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addDouble(CharSequence name, double value)
Headers
name
to value
.addDouble
in interface Headers<CharSequence>
addDouble
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders addTimeMillis(CharSequence name, long value)
Headers
name
to value
.addTimeMillis
in interface Headers<CharSequence>
addTimeMillis
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders add(TextHeaders headers)
TextHeaders
add
in interface TextHeaders
StompHeaders set(CharSequence name, CharSequence value)
Headers
String
, 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 TextHeaders
name
- The name of the header being setvalue
- The value of the header being setthis
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 TextHeaders
name
- the name of the headers being setvalues
- the values of the headers being setthis
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 TextHeaders
name
- the name of the headers being setvalues
- the values of the headers being setthis
StompHeaders setObject(CharSequence name, Object value)
Headers
String
, 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 TextHeaders
name
- The name of the header being setvalue
- The value of the header being setthis
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 TextHeaders
name
- the name of the headers being setvalues
- the values of the headers being setthis
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 TextHeaders
name
- the name of the headers being setvalues
- the values of the headers being setthis
StompHeaders setBoolean(CharSequence name, boolean value)
Headers
name
to value
. This will remove all previous values associated with name
.setBoolean
in interface Headers<CharSequence>
setBoolean
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setByte(CharSequence name, byte value)
Headers
name
to value
. This will remove all previous values associated with name
.setByte
in interface Headers<CharSequence>
setByte
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setChar(CharSequence name, char value)
Headers
name
to value
. This will remove all previous values associated with name
.setChar
in interface Headers<CharSequence>
setChar
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setShort(CharSequence name, short value)
Headers
name
to value
. This will remove all previous values associated with name
.setShort
in interface Headers<CharSequence>
setShort
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setInt(CharSequence name, int value)
Headers
name
to value
. This will remove all previous values associated with name
.setInt
in interface Headers<CharSequence>
setInt
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setLong(CharSequence name, long value)
Headers
name
to value
. This will remove all previous values associated with name
.setLong
in interface Headers<CharSequence>
setLong
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setFloat(CharSequence name, float value)
Headers
name
to value
. This will remove all previous values associated with name
.setFloat
in interface Headers<CharSequence>
setFloat
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setDouble(CharSequence name, double value)
Headers
name
to value
. This will remove all previous values associated with name
.setDouble
in interface Headers<CharSequence>
setDouble
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders setTimeMillis(CharSequence name, long value)
Headers
name
to value
. This will remove all previous values associated with name
.setTimeMillis
in interface Headers<CharSequence>
setTimeMillis
in interface TextHeaders
name
- The name to modifyvalue
- The valuethis
StompHeaders set(TextHeaders headers)
TextHeaders
set
in interface TextHeaders
StompHeaders setAll(TextHeaders headers)
TextHeaders
setAll
in interface TextHeaders
StompHeaders clear()
Headers
clear
in interface Headers<CharSequence>
clear
in interface TextHeaders
this
Copyright © 2008–2015 The Netty Project. All rights reserved.