public class DefaultStompHeaders extends DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders> implements StompHeaders
DefaultHeaders.HeaderEntry<K,V>, DefaultHeaders.NameValidator<K>
head
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 |
---|---|
boolean |
contains(java.lang.CharSequence name, java.lang.CharSequence value)
返回
true 如果与头
name 和
value 存在,
false 其他。
|
boolean |
contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
返回
true 如果与头
name 和
value 存在,
false 其他。
|
DefaultStompHeaders |
copy()
返回此实例的深层副本。
|
java.util.List<java.lang.String> |
getAllAsString(java.lang.CharSequence name)
|
java.lang.String |
getAsString(java.lang.CharSequence name)
Headers.get(Object) 并将结果转换为
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, newHeaderEntry, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size, toString, valueConverter, valueIterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public java.lang.String getAsString(java.lang.CharSequence name)
StompHeaders
Headers.get(Object)
并将结果转换为
String
。
getAsString
在界面
StompHeaders
name
- 要检索的标题的名称
null
如果没有这样的标题。
public java.util.List<java.lang.String> getAllAsString(java.lang.CharSequence name)
StompHeaders
getAllAsString
在界面
StompHeaders
name
- 要检索的标题的名称
List
的标题值或一个空的
List
如果没有值被发现。
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iteratorAsString()
StompHeaders
iteratorAsString
在界面
StompHeaders
public boolean contains(java.lang.CharSequence name, java.lang.CharSequence value)
Headers
复制的描述
true
如果与头name
和value
存在, false
其他。
Object.equals(Object)
方法用于测试value
。
contains
在界面
Headers<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>
contains
在课堂上
DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>
name
- 标题名称
value
- 要查找的标题的标题值
public boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
StompHeaders
true
如果与头name
和value
存在, false
其他。
如果ignoreCase
是true
则对该值进行不区分大小写的比较。
contains
在界面
StompHeaders
name
- 要查找的标题的名称
value
- 查找标题的值
ignoreCase
- true
然后运行一个不区分大小写的比较来比较值。
否则运行区分大小写比较来比较值。
public DefaultStompHeaders copy()
DefaultHeaders
copy
在课堂上
DefaultHeaders<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>
Copyright © 2008–2018 The Netty Project. All rights reserved.