Package | Description |
---|---|
org.apache.http |
Core HTTP component APIs and primitives.
|
org.apache.http.auth |
Client HTTP authentication APIs.
|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.client.entity |
Client specific HTTP entity implementations.
|
org.apache.http.client.methods |
Standard HTTP method implementations.
|
org.apache.http.client.params |
Deprecated.
|
org.apache.http.client.protocol |
Client specific HTTP protocol handlers.
|
org.apache.http.cookie |
Client HTTP state management APIs.
|
org.apache.http.entity |
Core HTTP entity implementations.
|
org.apache.http.impl.auth |
Default implementations of standard and common HTTP authentication
schemes.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.cookie |
Default implementations of standard and common HTTP state
management policies.
|
org.apache.http.impl.execchain |
HTTP request execution chain APIs.
|
org.apache.http.impl.io |
Default implementations of message parses and writers
for synchronous, blocking communication.
|
org.apache.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FormattedHeader
An HTTP header which is already formatted.
|
Modifier and Type | Method and Description |
---|---|
Header[] |
HttpMessage.getAllHeaders()
Returns all the headers of this message.
|
Header |
HttpEntity.getContentEncoding()
Obtains the Content-Encoding header, if known.
|
Header |
HttpEntity.getContentType()
Obtains the Content-Type header, if known.
|
Header |
HttpMessage.getFirstHeader(java.lang.String name)
Returns the first header with a specified name of this message.
|
Header[] |
HttpMessage.getHeaders(java.lang.String name)
Returns all the headers with a specified name of this message.
|
Header |
HttpMessage.getLastHeader(java.lang.String name)
Returns the last header with a specified name of this message.
|
Header |
HeaderIterator.nextHeader()
Obtains the next header from this iteration.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpMessage.addHeader(Header header)
Adds a header to this message.
|
void |
HttpMessage.removeHeader(Header header)
Removes a header from this message.
|
void |
HttpMessage.setHeader(Header header)
Overwrites the first header with the same name.
|
void |
HttpMessage.setHeaders(Header[] headers)
Overwrites all the headers in the message.
|
Modifier and Type | Method and Description |
---|---|
Header |
AuthScheme.authenticate(Credentials credentials,
HttpRequest request)
|
Header |
ContextAwareAuthScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces an authorization string for the given set of
Credentials . |
Modifier and Type | Method and Description |
---|---|
void |
AuthScheme.processChallenge(Header header)
Processes the given challenge token.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Header> |
AuthenticationStrategy.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Extracts from the given HTTP response a collection of authentication
challenges, each of which represents an authentication scheme supported
by the authentication host.
|
java.util.Map<java.lang.String,Header> |
AuthenticationHandler.getChallenges(HttpResponse response,
HttpContext context)
Deprecated.
Extracts from the given HTTP response a collection of authentication
challenges, each of which represents an authentication scheme supported
by the authentication host.
|
Modifier and Type | Method and Description |
---|---|
java.util.Queue<AuthOption> |
AuthenticationStrategy.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context)
Selects one authentication challenge out of all available and
creates and generates
AuthOption instance capable of
processing that challenge. |
AuthScheme |
AuthenticationHandler.selectScheme(java.util.Map<java.lang.String,Header> challenges,
HttpResponse response,
HttpContext context)
Deprecated.
Selects one authentication challenge out of all available and
creates and generates
AuthScheme instance capable of
processing that challenge. |
Modifier and Type | Method and Description |
---|---|
Header |
DecompressingEntity.getContentEncoding() |
Header |
GzipCompressingEntity.getContentEncoding() |
Modifier and Type | Method and Description |
---|---|
Header |
RequestBuilder.getFirstHeader(java.lang.String name) |
Header[] |
RequestBuilder.getHeaders(java.lang.String name) |
Header |
RequestBuilder.getLastHeader(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
RequestBuilder |
RequestBuilder.addHeader(Header header) |
RequestBuilder |
RequestBuilder.removeHeader(Header header) |
RequestBuilder |
RequestBuilder.setHeader(Header header) |
Modifier and Type | Method and Description |
---|---|
void |
ClientParamBean.setDefaultHeaders(java.util.Collection<Header> headers)
Deprecated.
|
Constructor and Description |
---|
RequestDefaultHeaders(java.util.Collection<? extends Header> defaultHeaders) |
Modifier and Type | Method and Description |
---|---|
Header |
CookieSpec.getVersionHeader()
Returns a request header identifying what version of the state management
specification is understood.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Header> |
CookieSpec.formatCookies(java.util.List<Cookie> cookies)
Create
"Cookie" headers for an array of Cookies. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Cookie> |
CookieSpec.parse(Header header,
CookieOrigin origin)
Parse the
"Set-Cookie" Header into an array of Cookies. |
Modifier and Type | Field and Description |
---|---|
protected Header |
AbstractHttpEntity.contentEncoding |
protected Header |
AbstractHttpEntity.contentType |
Modifier and Type | Method and Description |
---|---|
Header |
AbstractHttpEntity.getContentEncoding()
Obtains the Content-Encoding header.
|
Header |
HttpEntityWrapper.getContentEncoding() |
Header |
AbstractHttpEntity.getContentType()
Obtains the Content-Type header.
|
Header |
HttpEntityWrapper.getContentType() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractHttpEntity.setContentEncoding(Header contentEncoding)
Specifies the Content-Encoding header.
|
void |
AbstractHttpEntity.setContentType(Header contentType)
Specifies the Content-Type header.
|
Modifier and Type | Method and Description |
---|---|
Header |
NegotiateScheme.authenticate(Credentials credentials,
HttpRequest request)
Deprecated.
|
Header |
GGSSchemeBase.authenticate(Credentials credentials,
HttpRequest request)
|
Header |
NTLMScheme.authenticate(Credentials credentials,
HttpRequest request) |
Header |
DigestScheme.authenticate(Credentials credentials,
HttpRequest request)
|
Header |
BasicScheme.authenticate(Credentials credentials,
HttpRequest request)
|
Header |
NegotiateScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Deprecated.
Produces Negotiate authorization Header based on token created by
processChallenge.
|
Header |
KerberosScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces KERBEROS authorization Header based on token created by
processChallenge.
|
Header |
GGSSchemeBase.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context) |
Header |
AuthSchemeBase.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context) |
Header |
SPNegoScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces SPNEGO authorization Header based on token created by
processChallenge.
|
Header |
DigestScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces a digest authorization string for the given set of
Credentials , method name and URI. |
Header |
BasicScheme.authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces basic authorization header for the given set of
Credentials . |
static Header |
BasicScheme.authenticate(Credentials credentials,
java.lang.String charset,
boolean proxy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
AuthSchemeBase.processChallenge(Header header)
Processes the given challenge token.
|
void |
DigestScheme.processChallenge(Header header)
Processes the Digest challenge.
|
void |
BasicScheme.processChallenge(Header header)
Processes the Basic challenge.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Header> |
AuthenticationStrategyAdaptor.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Deprecated.
|
java.util.Map<java.lang.String,Header> |
AuthenticationStrategyImpl.getChallenges(HttpHost authhost,
HttpResponse response,
HttpContext context)
Generates a map of challenge auth-scheme => Header entries.
|
java.util.Map<java.lang.String,Header> |
DefaultTargetAuthenticationHandler.getChallenges(HttpResponse response,
HttpContext context)
Deprecated.
|
java.util.Map<java.lang.String,Header> |
DefaultProxyAuthenticationHandler.getChallenges(HttpResponse response,
HttpContext context)
Deprecated.
|
protected java.util.Map<java.lang.String,Header> |
AbstractAuthenticationHandler.parseChallenges(Header[] headers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,Header> |
AbstractAuthenticationHandler.parseChallenges(Header[] headers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Queue<AuthOption> |
AuthenticationStrategyAdaptor.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context)
Deprecated.
|
java.util.Queue<AuthOption> |
AuthenticationStrategyImpl.select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
HttpContext context) |
AuthScheme |
AbstractAuthenticationHandler.selectScheme(java.util.Map<java.lang.String,Header> challenges,
HttpResponse response,
HttpContext context)
Deprecated.
|
HttpClientBuilder |
HttpClientBuilder.setDefaultHeaders(java.util.Collection<? extends Header> defaultHeaders)
Assigns default request header values.
|
Modifier and Type | Method and Description |
---|---|
Header |
BrowserCompatSpec.getVersionHeader()
Deprecated.
|
Header |
RFC2109Spec.getVersionHeader() |
Header |
NetscapeDraftSpec.getVersionHeader() |
Header |
RFC6265CookieSpec.getVersionHeader() |
Header |
IgnoreSpec.getVersionHeader() |
Header |
RFC2965Spec.getVersionHeader() |
Header |
DefaultCookieSpec.getVersionHeader() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Header> |
BrowserCompatSpec.formatCookies(java.util.List<Cookie> cookies)
Deprecated.
|
java.util.List<Header> |
RFC2109Spec.formatCookies(java.util.List<Cookie> cookies) |
java.util.List<Header> |
NetscapeDraftSpec.formatCookies(java.util.List<Cookie> cookies) |
java.util.List<Header> |
RFC6265CookieSpec.formatCookies(java.util.List<Cookie> cookies) |
java.util.List<Header> |
IgnoreSpec.formatCookies(java.util.List<Cookie> cookies) |
java.util.List<Header> |
DefaultCookieSpec.formatCookies(java.util.List<Cookie> cookies) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Cookie> |
BrowserCompatSpec.parse(Header header,
CookieOrigin origin)
Deprecated.
|
java.util.List<Cookie> |
RFC2109Spec.parse(Header header,
CookieOrigin origin) |
java.util.List<Cookie> |
NetscapeDraftSpec.parse(Header header,
CookieOrigin origin)
Parses the Set-Cookie value into an array of
Cookie s. |
java.util.List<Cookie> |
RFC6265CookieSpec.parse(Header header,
CookieOrigin origin) |
java.util.List<Cookie> |
IgnoreSpec.parse(Header header,
CookieOrigin origin) |
java.util.List<Cookie> |
RFC2965Spec.parse(Header header,
CookieOrigin origin) |
java.util.List<Cookie> |
DefaultCookieSpec.parse(Header header,
CookieOrigin origin) |
Modifier and Type | Method and Description |
---|---|
Header[] |
HttpResponseProxy.getAllHeaders() |
Header |
RequestEntityProxy.getContentEncoding() |
Header |
RequestEntityProxy.getContentType() |
Header |
HttpResponseProxy.getFirstHeader(java.lang.String name) |
Header[] |
HttpResponseProxy.getHeaders(java.lang.String name) |
Header |
HttpResponseProxy.getLastHeader(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
HttpResponseProxy.addHeader(Header header) |
void |
HttpResponseProxy.removeHeader(Header header) |
void |
HttpResponseProxy.setHeader(Header header) |
void |
HttpResponseProxy.setHeaders(Header[] headers) |
Modifier and Type | Method and Description |
---|---|
Header[] |
ChunkedInputStream.getFooters() |
static Header[] |
AbstractMessageParser.parseHeaders(SessionInputBuffer inbuffer,
int maxHeaderCount,
int maxLineLen,
LineParser parser)
Parses HTTP headers from the data receiver stream according to the generic
format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.
|
static Header[] |
AbstractMessageParser.parseHeaders(SessionInputBuffer inbuffer,
int maxHeaderCount,
int maxLineLen,
LineParser parser,
java.util.List<CharArrayBuffer> headerLines)
Parses HTTP headers from the data receiver stream according to the generic
format as given in Section 3.1 of RFC 822, RFC-2616 Section 4 and 19.3.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicHeader
Basic implementation of
Header . |
class |
BufferedHeader
This class represents a raw HTTP header whose content is parsed 'on demand'
only when the header value needs to be consumed.
|
Modifier and Type | Field and Description |
---|---|
protected Header[] |
BasicHeaderIterator.allHeaders
An array of headers to iterate over.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Header> |
BasicListHeaderIterator.allHeaders
A list of headers to iterate over.
|
Modifier and Type | Method and Description |
---|---|
Header[] |
HeaderGroup.getAllHeaders()
Gets all of the headers contained within this group.
|
Header[] |
AbstractHttpMessage.getAllHeaders() |
Header |
HeaderGroup.getCondensedHeader(java.lang.String name)
Gets a header representing all of the header values with the given name.
|
Header |
HeaderGroup.getFirstHeader(java.lang.String name)
Gets the first header with the given name.
|
Header |
AbstractHttpMessage.getFirstHeader(java.lang.String name) |
Header[] |
HeaderGroup.getHeaders(java.lang.String name)
Gets all of the headers with the given name.
|
Header[] |
AbstractHttpMessage.getHeaders(java.lang.String name) |
Header |
HeaderGroup.getLastHeader(java.lang.String name)
Gets the last header with the given name.
|
Header |
AbstractHttpMessage.getLastHeader(java.lang.String name) |
Header |
BasicListHeaderIterator.nextHeader()
Obtains the next header from this iteration.
|
Header |
BasicHeaderIterator.nextHeader()
Obtains the next header from this iteration.
|
Header |
BasicLineParser.parseHeader(CharArrayBuffer buffer) |
Header |
LineParser.parseHeader(CharArrayBuffer buffer)
Creates a header from a line.
|
static Header |
BasicLineParser.parseHeader(java.lang.String value,
LineParser parser) |
Modifier and Type | Method and Description |
---|---|
void |
HeaderGroup.addHeader(Header header)
Adds the given header to the group.
|
void |
AbstractHttpMessage.addHeader(Header header) |
protected void |
BasicLineFormatter.doFormatHeader(CharArrayBuffer buffer,
Header header)
Actually formats a header.
|
CharArrayBuffer |
BasicLineFormatter.formatHeader(CharArrayBuffer buffer,
Header header) |
CharArrayBuffer |
LineFormatter.formatHeader(CharArrayBuffer buffer,
Header header)
Formats a header.
|
static java.lang.String |
BasicLineFormatter.formatHeader(Header header,
LineFormatter formatter)
Formats a header.
|
void |
HeaderGroup.removeHeader(Header header)
Removes the given header.
|
void |
AbstractHttpMessage.removeHeader(Header header) |
void |
AbstractHttpMessage.setHeader(Header header) |
void |
HeaderGroup.setHeaders(Header[] headers)
Sets all of the headers contained within this group overriding any
existing headers.
|
void |
AbstractHttpMessage.setHeaders(Header[] headers) |
void |
HeaderGroup.updateHeader(Header header)
Replaces the first occurence of the header with the same name.
|
Constructor and Description |
---|
BasicHeaderIterator(Header[] headers,
java.lang.String name)
Creates a new header iterator.
|
Constructor and Description |
---|
BasicListHeaderIterator(java.util.List<Header> headers,
java.lang.String name)
Creates a new header iterator.
|