public class CombinedHttpHeaders extends DefaultHttpHeaders
请参阅第RFC 7230, 3.2.2节。
HttpHeaders.Names, HttpHeaders.Values
EMPTY_HEADERS
Constructor and Description |
---|
CombinedHttpHeaders(boolean validate) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsValue(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
返回
true 如果与头
name 和
value 存在,
false 其他。
|
add, add, add, add, add, addInt, addShort, clear, contains, contains, contains, contains, copy, entries, equals, get, get, getAll, getAll, getInt, getInt, getShort, getShort, getTimeMillis, getTimeMillis, hashCode, isEmpty, iterator, iteratorCharSequence, names, remove, remove, set, set, set, set, set, setInt, setShort, size, valueCharSequenceIterator, valueStringIterator
addDateHeader, addDateHeader, addHeader, addHeader, addIntHeader, addIntHeader, clearHeaders, encodeAscii, equalsIgnoreCase, get, getAllAsString, getAsString, getContentLength, getContentLength, getDate, getDate, getDateHeader, getDateHeader, getDateHeader, getDateHeader, getHeader, getHeader, getHeader, getHeader, getHost, getHost, getIntHeader, getIntHeader, getIntHeader, getIntHeader, is100ContinueExpected, isContentLengthSet, isKeepAlive, isTransferEncodingChunked, iteratorAsString, newEntity, removeHeader, removeHeader, removeTransferEncodingChunked, set100ContinueExpected, set100ContinueExpected, setAll, setContentLength, setDate, setDateHeader, setDateHeader, setDateHeader, setDateHeader, setHeader, setHeader, setHeader, setHeader, setHost, setHost, setIntHeader, setIntHeader, setIntHeader, setIntHeader, setKeepAlive, setTransferEncodingChunked, toString
public boolean containsValue(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
HttpHeaders
true
如果与头name
和value
存在, false
其他。
这也处理了用,
分隔的多个值。
如果ignoreCase
是true
则对值进行不区分大小写的比较。
containsValue
在课程
HttpHeaders
name
- 要查找的标题的名称
value
- 标题的值查找
ignoreCase
- true
然后运行一个不区分大小写的比较来比较值。
否则运行区分大小写比较来比较值。
Copyright © 2008–2018 The Netty Project. All rights reserved.