Package io.netty.handler.codec.stomp
Interface StompHeaders
-
- All Superinterfaces:
io.netty.handler.codec.Headers<CharSequence,CharSequence,StompHeaders>,Iterable<Map.Entry<CharSequence,CharSequence>>
- All Known Implementing Classes:
DefaultStompHeaders
public interface StompHeaders extends io.netty.handler.codec.Headers<CharSequence,CharSequence,StompHeaders>
The multimap data structure for the STOMP header names and values. It also provides the constants for the standard STOMP header names and values.
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.util.AsciiStringACCEPT_VERSIONstatic io.netty.util.AsciiStringACKstatic io.netty.util.AsciiStringCONTENT_LENGTHstatic io.netty.util.AsciiStringCONTENT_TYPEstatic io.netty.util.AsciiStringDESTINATIONstatic io.netty.util.AsciiStringHEART_BEATstatic io.netty.util.AsciiStringHOSTstatic io.netty.util.AsciiStringIDstatic io.netty.util.AsciiStringLOGINstatic io.netty.util.AsciiStringMESSAGEstatic io.netty.util.AsciiStringMESSAGE_IDstatic io.netty.util.AsciiStringPASSCODEstatic io.netty.util.AsciiStringRECEIPTstatic io.netty.util.AsciiStringRECEIPT_IDstatic io.netty.util.AsciiStringSERVERstatic io.netty.util.AsciiStringSESSIONstatic io.netty.util.AsciiStringSUBSCRIPTIONstatic io.netty.util.AsciiStringTRANSACTIONstatic io.netty.util.AsciiStringVERSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(CharSequence name, CharSequence value, boolean ignoreCase)Returnstrueif a header with thenameandvalueexists,falseotherwise.List<String>getAllAsString(CharSequence name)StringgetAsString(CharSequence name)Headers.get(Object)and convert the result to aString.Iterator<Map.Entry<String,String>>iteratorAsString()-
Methods inherited from interface io.netty.handler.codec.Headers
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, 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, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
ACCEPT_VERSION
static final io.netty.util.AsciiString ACCEPT_VERSION
-
HOST
static final io.netty.util.AsciiString HOST
-
LOGIN
static final io.netty.util.AsciiString LOGIN
-
PASSCODE
static final io.netty.util.AsciiString PASSCODE
-
HEART_BEAT
static final io.netty.util.AsciiString HEART_BEAT
-
VERSION
static final io.netty.util.AsciiString VERSION
-
SESSION
static final io.netty.util.AsciiString SESSION
-
SERVER
static final io.netty.util.AsciiString SERVER
-
DESTINATION
static final io.netty.util.AsciiString DESTINATION
-
ID
static final io.netty.util.AsciiString ID
-
ACK
static final io.netty.util.AsciiString ACK
-
TRANSACTION
static final io.netty.util.AsciiString TRANSACTION
-
RECEIPT
static final io.netty.util.AsciiString RECEIPT
-
MESSAGE_ID
static final io.netty.util.AsciiString MESSAGE_ID
-
SUBSCRIPTION
static final io.netty.util.AsciiString SUBSCRIPTION
-
RECEIPT_ID
static final io.netty.util.AsciiString RECEIPT_ID
-
MESSAGE
static final io.netty.util.AsciiString MESSAGE
-
CONTENT_LENGTH
static final io.netty.util.AsciiString CONTENT_LENGTH
-
CONTENT_TYPE
static final io.netty.util.AsciiString CONTENT_TYPE
-
-
Method Detail
-
getAsString
String getAsString(CharSequence name)
Headers.get(Object)and convert the result to aString.- Parameters:
name- the name of the header to retrieve- Returns:
- the first header value if the header is found.
nullif there's no such header.
-
getAllAsString
List<String> getAllAsString(CharSequence name)
-
contains
boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
Returnstrueif a header with thenameandvalueexists,falseotherwise.If
ignoreCaseistruethen a case insensitive compare is done on the value.- Parameters:
name- the name of the header to findvalue- the value of the header to findignoreCase-truethen a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
-
-