public class HttpHeaderCollection extends java.lang.Object implements java.lang.Iterable<HttpHeader>
限定符和类型 | 字段和说明 |
---|---|
protected int |
count |
protected HttpHeader[] |
headers |
构造器和说明 |
---|
HttpHeaderCollection() |
限定符和类型 | 方法和说明 |
---|---|
void |
add(java.lang.String name,
java.lang.String value) |
void |
addAll(HttpHeaderCollection headers) |
boolean |
contains(java.lang.String name) |
java.lang.String |
get(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getParams(java.lang.String name) |
java.util.Iterator<HttpHeader> |
iterator() |
void |
remove(java.lang.String name) |
HttpHeader |
replace(java.lang.String name,
java.lang.String value) |
int |
size() |
protected HttpHeader[] headers
protected int count
public int size()
public java.lang.String get(java.lang.String name)
public boolean contains(java.lang.String name)
public void add(java.lang.String name, java.lang.String value)
public void addAll(HttpHeaderCollection headers)
public HttpHeader replace(java.lang.String name, java.lang.String value)
public void remove(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String> getParams(java.lang.String name)
public java.util.Iterator<HttpHeader> iterator()
iterator
在接口中 java.lang.Iterable<HttpHeader>