Package io.netty.handler.codec.stomp
Class DefaultStompHeaders
- java.lang.Object
-
- io.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,StompHeaders>
-
- io.netty.handler.codec.stomp.DefaultStompHeaders
-
- All Implemented Interfaces:
io.netty.handler.codec.Headers<CharSequence,CharSequence,StompHeaders>,StompHeaders,Iterable<Map.Entry<CharSequence,CharSequence>>
public class DefaultStompHeaders extends io.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,StompHeaders> implements StompHeaders
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.handler.codec.DefaultHeaders
io.netty.handler.codec.DefaultHeaders.HeaderEntry<K extends Object,V extends Object>, io.netty.handler.codec.DefaultHeaders.NameValidator<K extends Object>, io.netty.handler.codec.DefaultHeaders.ValueValidator<V extends Object>
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.stomp.StompHeaders
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 Summary
Constructors Constructor Description DefaultStompHeaders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(CharSequence name, CharSequence value)booleancontains(CharSequence name, CharSequence value, boolean ignoreCase)Returnstrueif a header with thenameandvalueexists,falseotherwise.DefaultStompHeaderscopy()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 class io.netty.handler.codec.DefaultHeaders
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addImpl, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, equals, equals, 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, hashCode, hashCode, isEmpty, iterator, names, nameValidator, newHeaderEntry, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size, toString, validateName, validateValue, valueConverter, valueIterator, valueValidator
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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, 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
-
-
-
-
Method Detail
-
getAsString
public String getAsString(CharSequence name)
Description copied from interface:StompHeadersHeaders.get(Object)and convert the result to aString.- Specified by:
getAsStringin interfaceStompHeaders- 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
public List<String> getAllAsString(CharSequence name)
Description copied from interface:StompHeaders- Specified by:
getAllAsStringin interfaceStompHeaders- Parameters:
name- the name of the header to retrieve- Returns:
- a
Listof header values or an emptyListif no values are found.
-
iteratorAsString
public Iterator<Map.Entry<String,String>> iteratorAsString()
Description copied from interface:StompHeaders- Specified by:
iteratorAsStringin interfaceStompHeaders
-
contains
public boolean contains(CharSequence name, CharSequence value)
- Specified by:
containsin interfaceio.netty.handler.codec.Headers<CharSequence,CharSequence,StompHeaders>- Overrides:
containsin classio.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,StompHeaders>
-
contains
public boolean contains(CharSequence name, CharSequence value, boolean ignoreCase)
Description copied from interface:StompHeadersReturnstrueif a header with thenameandvalueexists,falseotherwise.If
ignoreCaseistruethen a case insensitive compare is done on the value.- Specified by:
containsin interfaceStompHeaders- 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.
-
copy
public DefaultStompHeaders copy()
- Overrides:
copyin classio.netty.handler.codec.DefaultHeaders<CharSequence,CharSequence,StompHeaders>
-
-