public class DefaultStompHeaders extends DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders> implements StompHeaders
DefaultHeaders.HeaderEntry<K,V>, DefaultHeaders.NameValidator<K>, DefaultHeaders.ValueValidator<V>headACCEPT_VERSION, ACK, CONTENT_LENGTH, CONTENT_TYPE, DESTINATION, HEART_BEAT, HOST, ID, LOGIN, MESSAGE, MESSAGE_ID, PASSCODE, RECEIPT, RECEIPT_ID, SERVER, SESSION, SUBSCRIPTION, TRANSACTION, VERSION| 构造器和说明 |
|---|
DefaultStompHeaders() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(java.lang.CharSequence name,
java.lang.CharSequence value)
Returns
true if a header with the name and value exists, false otherwise. |
boolean |
contains(java.lang.CharSequence name,
java.lang.CharSequence value,
boolean ignoreCase)
Returns
true if a header with the name and value exists, false otherwise. |
DefaultStompHeaders |
copy()
Returns a deep copy of this instance.
|
java.util.List<java.lang.String> |
getAllAsString(java.lang.CharSequence name)
|
java.lang.String |
getAsString(java.lang.CharSequence name)
Headers.get(Object) and convert the result to a String. |
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
iteratorAsString()
|
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, valueValidatoradd, 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, sizepublic java.lang.String getAsString(java.lang.CharSequence name)
StompHeadersHeaders.get(Object) and convert the result to a String.getAsString 在接口中 StompHeadersname - the name of the header to retrievenull if there's no such header.public java.util.List<java.lang.String> getAllAsString(java.lang.CharSequence name)
StompHeadersgetAllAsString 在接口中 StompHeadersname - the name of the header to retrieveList of header values or an empty List if no values are found.public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iteratorAsString()
StompHeadersiteratorAsString 在接口中 StompHeaderspublic boolean contains(java.lang.CharSequence name,
java.lang.CharSequence value)
Headerstrue if a header with the name and value exists, false otherwise.
The Object.equals(Object) method is used to test for equality of value.
contains 在接口中 Headers<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>contains 在类中 DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>name - the header namevalue - the header value of the header to findpublic boolean contains(java.lang.CharSequence name,
java.lang.CharSequence value,
boolean ignoreCase)
StompHeaderstrue if a header with the name and value exists, false otherwise.
If ignoreCase is true then a case insensitive compare is done on the value.
contains 在接口中 StompHeadersname - the name of the header to findvalue - the value of the header to findignoreCase - true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.public DefaultStompHeaders copy()
DefaultHeaderscopy 在类中 DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>