Uses of Interface
org.apache.http.Header
| Package | Description |
|---|---|
| org.apache.http |
The core interfaces and classes of the HTTP components.
|
| org.apache.http.auth |
The API for client-side HTTP authentication against a server,
commonly referred to as HttpAuth.
|
| org.apache.http.client |
The API for client-side HTTP communication and
entry point to the HttpClient module.
|
| org.apache.http.client.params |
Parameters for configuring HttpClient.
|
| org.apache.http.cookie |
The API for client-side state management via cookies,
commonly referred to as HttpCookie.
|
| org.apache.http.entity |
Representations for HTTP message entities.
|
| org.apache.http.impl.auth | |
| org.apache.http.impl.client | |
| org.apache.http.impl.cookie | |
| org.apache.http.impl.io |
Default implementations for interfaces in
org.apache.http.io. |
| org.apache.http.message |
A selection of HTTP
message
implementations. |
-
Uses of Header in org.apache.http
Subinterfaces of Header in org.apache.http Modifier and Type Interface Description interfaceFormattedHeaderAn HTTP header which is already formatted.Methods in org.apache.http that return Header Modifier and Type Method Description Header[]HttpMessage. getAllHeaders()Returns all the headers of this message.HeaderHttpEntity. getContentEncoding()Obtains the Content-Encoding header, if known.HeaderHttpEntity. getContentType()Obtains the Content-Type header, if known.HeaderHttpMessage. getFirstHeader(String name)Returns the first header with a specified name of this message.Header[]HttpMessage. getHeaders(String name)Returns all the headers with a specified name of this message.HeaderHttpMessage. getLastHeader(String name)Returns the last header with a specified name of this message.HeaderHeaderIterator. nextHeader()Obtains the next header from this iteration.Methods in org.apache.http with parameters of type Header Modifier and Type Method Description voidHttpMessage. addHeader(Header header)Adds a header to this message.voidHttpMessage. removeHeader(Header header)Removes a header from this message.voidHttpMessage. setHeader(Header header)Overwrites the first header with the same name.voidHttpMessage. setHeaders(Header[] headers)Overwrites all the headers in the message. -
Uses of Header in org.apache.http.auth
Methods in org.apache.http.auth that return Header Modifier and Type Method Description HeaderAuthScheme. authenticate(Credentials credentials, HttpRequest request)Produces an authorization string for the given set ofCredentials.Methods in org.apache.http.auth with parameters of type Header Modifier and Type Method Description voidAuthScheme. processChallenge(Header header)Processes the given challenge token. -
Uses of Header in org.apache.http.client
Methods in org.apache.http.client that return types with arguments of type Header Modifier and Type Method Description Map<String,Header>AuthenticationHandler. getChallenges(HttpResponse response, HttpContext context)Method parameters in org.apache.http.client with type arguments of type Header Modifier and Type Method Description AuthSchemeAuthenticationHandler. selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) -
Uses of Header in org.apache.http.client.params
Method parameters in org.apache.http.client.params with type arguments of type Header Modifier and Type Method Description voidClientParamBean. setDefaultHeaders(Collection<Header> headers) -
Uses of Header in org.apache.http.cookie
Methods in org.apache.http.cookie that return Header Modifier and Type Method Description HeaderCookieSpec. getVersionHeader()Returns a request header identifying what version of the state management specification is understood.Methods in org.apache.http.cookie that return types with arguments of type Header Modifier and Type Method Description List<Header>CookieSpec. formatCookies(List<Cookie> cookies)Create "Cookie" headers for an array of Cookies.Methods in org.apache.http.cookie with parameters of type Header Modifier and Type Method Description List<Cookie>CookieSpec. parse(Header header, CookieOrigin origin)Parse the "Set-Cookie" Header into an array of Cookies. -
Uses of Header in org.apache.http.entity
Fields in org.apache.http.entity declared as Header Modifier and Type Field Description protected HeaderAbstractHttpEntity. contentEncodingThe Content-Encoding header.protected HeaderAbstractHttpEntity. contentTypeThe Content-Type header.Methods in org.apache.http.entity that return Header Modifier and Type Method Description HeaderAbstractHttpEntity. getContentEncoding()Obtains the Content-Encoding header.HeaderHttpEntityWrapper. getContentEncoding()HeaderAbstractHttpEntity. getContentType()Obtains the Content-Type header.HeaderHttpEntityWrapper. getContentType()Methods in org.apache.http.entity with parameters of type Header Modifier and Type Method Description voidAbstractHttpEntity. setContentEncoding(Header contentEncoding)Specifies the Content-Encoding header.voidAbstractHttpEntity. setContentType(Header contentType)Specifies the Content-Type header. -
Uses of Header in org.apache.http.impl.auth
Methods in org.apache.http.impl.auth that return Header Modifier and Type Method Description static HeaderBasicScheme. authenticate(Credentials credentials, String charset, boolean proxy)Returns a basic Authorization header value for the givenCredentialsand charset.HeaderBasicScheme. authenticate(Credentials credentials, HttpRequest request)Produces basic authorization header for the given set ofCredentials.HeaderDigestScheme. authenticate(Credentials credentials, HttpRequest request)Produces a digest authorization string for the given set ofCredentials, method name and URI.HeaderNTLMScheme. authenticate(Credentials credentials, HttpRequest request)Methods in org.apache.http.impl.auth with parameters of type Header Modifier and Type Method Description voidAuthSchemeBase. processChallenge(Header header)Processes the given challenge token.voidBasicScheme. processChallenge(Header header)Processes the Basic challenge.voidDigestScheme. processChallenge(Header header)Processes the Digest challenge. -
Uses of Header in org.apache.http.impl.client
Methods in org.apache.http.impl.client that return types with arguments of type Header Modifier and Type Method Description Map<String,Header>DefaultProxyAuthenticationHandler. getChallenges(HttpResponse response, HttpContext context)Map<String,Header>DefaultTargetAuthenticationHandler. getChallenges(HttpResponse response, HttpContext context)protected Map<String,Header>AbstractAuthenticationHandler. parseChallenges(Header[] headers)Methods in org.apache.http.impl.client with parameters of type Header Modifier and Type Method Description protected Map<String,Header>AbstractAuthenticationHandler. parseChallenges(Header[] headers)Method parameters in org.apache.http.impl.client with type arguments of type Header Modifier and Type Method Description AuthSchemeAbstractAuthenticationHandler. selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) -
Uses of Header in org.apache.http.impl.cookie
Methods in org.apache.http.impl.cookie that return Header Modifier and Type Method Description HeaderBestMatchSpec. getVersionHeader()HeaderBrowserCompatSpec. getVersionHeader()HeaderNetscapeDraftSpec. getVersionHeader()HeaderRFC2109Spec. getVersionHeader()HeaderRFC2965Spec. getVersionHeader()Methods in org.apache.http.impl.cookie that return types with arguments of type Header Modifier and Type Method Description List<Header>BestMatchSpec. formatCookies(List<Cookie> cookies)List<Header>BrowserCompatSpec. formatCookies(List<Cookie> cookies)List<Header>NetscapeDraftSpec. formatCookies(List<Cookie> cookies)List<Header>RFC2109Spec. formatCookies(List<Cookie> cookies)Methods in org.apache.http.impl.cookie with parameters of type Header Modifier and Type Method Description List<Cookie>BestMatchSpec. parse(Header header, CookieOrigin origin)List<Cookie>BrowserCompatSpec. parse(Header header, CookieOrigin origin)List<Cookie>NetscapeDraftSpec. parse(Header header, CookieOrigin origin)Parses the Set-Cookie value into an array of Cookies.List<Cookie>RFC2109Spec. parse(Header header, CookieOrigin origin)List<Cookie>RFC2965Spec. parse(Header header, CookieOrigin origin) -
Uses of Header in org.apache.http.impl.io
Methods in org.apache.http.impl.io that return Header Modifier and Type Method 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. -
Uses of Header in org.apache.http.message
Classes in org.apache.http.message that implement Header Modifier and Type Class Description classBasicHeaderRepresents an HTTP header field.classBufferedHeaderThis class represents a raw HTTP header whose content is parsed 'on demand' only when the header value needs to be consumed.Fields in org.apache.http.message declared as Header Modifier and Type Field Description protected Header[]BasicHeaderIterator. allHeadersAn array of headers to iterate over.Methods in org.apache.http.message that return Header Modifier and Type Method Description Header[]AbstractHttpMessage. getAllHeaders()Header[]HeaderGroup. getAllHeaders()Gets all of the headers contained within this group.HeaderHeaderGroup. getCondensedHeader(String name)Gets a header representing all of the header values with the given name.HeaderAbstractHttpMessage. getFirstHeader(String name)HeaderHeaderGroup. getFirstHeader(String name)Gets the first header with the given name.Header[]AbstractHttpMessage. getHeaders(String name)Header[]HeaderGroup. getHeaders(String name)Gets all of the headers with the given name.HeaderAbstractHttpMessage. getLastHeader(String name)HeaderHeaderGroup. getLastHeader(String name)Gets the last header with the given name.HeaderBasicHeaderIterator. nextHeader()Obtains the next header from this iteration.HeaderBasicListHeaderIterator. nextHeader()Obtains the next header from this iteration.static HeaderBasicLineParser. parseHeader(String value, LineParser parser)HeaderBasicLineParser. parseHeader(CharArrayBuffer buffer)HeaderLineParser. parseHeader(CharArrayBuffer buffer)Creates a header from a line.Methods in org.apache.http.message with parameters of type Header Modifier and Type Method Description voidAbstractHttpMessage. addHeader(Header header)voidHeaderGroup. addHeader(Header header)Adds the given header to the group.protected voidBasicLineFormatter. doFormatHeader(CharArrayBuffer buffer, Header header)Actually formats a header.static StringBasicLineFormatter. formatHeader(Header header, LineFormatter formatter)Formats a header.CharArrayBufferBasicLineFormatter. formatHeader(CharArrayBuffer buffer, Header header)CharArrayBufferLineFormatter. formatHeader(CharArrayBuffer buffer, Header header)Formats a header.voidAbstractHttpMessage. removeHeader(Header header)voidHeaderGroup. removeHeader(Header header)Removes the given header.voidAbstractHttpMessage. setHeader(Header header)voidAbstractHttpMessage. setHeaders(Header[] headers)voidHeaderGroup. setHeaders(Header[] headers)Sets all of the headers contained within this group overriding any existing headers.voidHeaderGroup. updateHeader(Header header)Replaces the first occurence of the header with the same name.Constructors in org.apache.http.message with parameters of type Header Constructor Description BasicHeaderIterator(Header[] headers, String name)Creates a new header iterator.