public class HeaderSet
extends java.lang.Object
implements java.lang.Iterable<org.apache.http.Header>
Header[] or a
Collection<Header>.| Constructor and Description |
|---|
HeaderSet()
Build a new object with no header.
|
HeaderSet(java.util.Collection<org.apache.http.Header> headers)
Build a new object by *copying* its parameter.
|
HeaderSet(org.apache.http.Header[] headers)
Build a new object by *copying* its parameter.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
add(org.apache.http.Header h) |
org.apache.http.Header |
add(java.lang.String name,
java.lang.String value) |
org.apache.http.Header |
getFirstHeader(java.lang.String name) |
boolean |
isEmpty() |
java.util.Iterator<org.apache.http.Header> |
iterator() |
org.apache.http.Header[] |
toArray() |
public HeaderSet()
public HeaderSet(org.apache.http.Header[] headers)
throws HttpClientException
headers - the headers to add to the setHttpClientException - if the headers are nullpublic HeaderSet(java.util.Collection<org.apache.http.Header> headers)
throws HttpClientException
headers - the headers to add to the setHttpClientException - if the headers are nullpublic java.util.Iterator<org.apache.http.Header> iterator()
iterator in interface java.lang.Iterable<org.apache.http.Header>public org.apache.http.Header[] toArray()
public boolean isEmpty()
public org.apache.http.Header add(org.apache.http.Header h)
public org.apache.http.Header add(java.lang.String name,
java.lang.String value)
public org.apache.http.Header getFirstHeader(java.lang.String name)
throws HttpClientException
HttpClientExceptionCopyright © 2015-2020 EXPath. All Rights Reserved