public interface StompHeaders extends Headers<java.lang.CharSequence,java.lang.CharSequence,StompHeaders>
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 |
---|---|
boolean |
contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
返回
true 如果与头
name 和
value 存在,
false 其他。
|
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, 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
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
java.lang.String getAsString(java.lang.CharSequence name)
Headers.get(Object)
并将结果转换为
String
。
name
- 要检索的标题的名称
null
如果没有这样的标题。
java.util.List<java.lang.String> getAllAsString(java.lang.CharSequence name)
name
- 要检索的标题的名称
List
的标题值或一个空的
List
如果没有值被发现。
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iteratorAsString()
boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
true
如果与头name
和value
存在, false
其他。
如果ignoreCase
是true
则对值进行不区分大小写的比较。
name
- 要查找的标题的名称
value
- 查找标题的值
ignoreCase
- true
然后运行一个不区分大小写的比较来比较值。
否则运行区分大小写比较来比较值。
Copyright © 2008–2018 The Netty Project. All rights reserved.