| Package | Description |
|---|---|
| org.apache.http |
Core HTTP component APIs and primitives.
|
| org.apache.http.entity |
Core HTTP entity implementations.
|
| 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 | Description |
|---|---|---|
interface |
FormattedHeader |
An HTTP header which is already formatted.
|
| Modifier and Type | Method | 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 | 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 | Field | Description |
|---|---|---|
protected Header |
AbstractHttpEntity.contentEncoding |
|
protected Header |
AbstractHttpEntity.contentType |
| Modifier and Type | Method | 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 | 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 | 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 | Description |
|---|---|---|
class |
BasicHeader |
Implements a basic
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 | Description |
|---|---|---|
protected Header[] |
BasicHeaderIterator.allHeaders |
An array of headers to iterate over.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<Header> |
BasicListHeaderIterator.allHeaders |
A list of headers to iterate over.
|
| Modifier and Type | Method | Description |
|---|---|---|
Header[] |
AbstractHttpMessage.getAllHeaders() |
|
Header[] |
HeaderGroup.getAllHeaders() |
Gets all of the headers contained within this group.
|
Header |
HeaderGroup.getCondensedHeader(java.lang.String name) |
Gets a header representing all of the header values with the given name.
|
Header |
AbstractHttpMessage.getFirstHeader(java.lang.String name) |
|
Header |
HeaderGroup.getFirstHeader(java.lang.String name) |
Gets the first header with the given name.
|
Header[] |
AbstractHttpMessage.getHeaders(java.lang.String name) |
|
Header[] |
HeaderGroup.getHeaders(java.lang.String name) |
Gets all of the headers with the given name.
|
Header |
AbstractHttpMessage.getLastHeader(java.lang.String name) |
|
Header |
HeaderGroup.getLastHeader(java.lang.String name) |
Gets the last header with the given name.
|
Header |
BasicHeaderIterator.nextHeader() |
Obtains the next header from this iteration.
|
Header |
BasicListHeaderIterator.nextHeader() |
Obtains the next header from this iteration.
|
static Header |
BasicLineParser.parseHeader(java.lang.String value,
LineParser parser) |
|
Header |
BasicLineParser.parseHeader(CharArrayBuffer buffer) |
|
Header |
LineParser.parseHeader(CharArrayBuffer buffer) |
Creates a header from a line.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractHttpMessage.addHeader(Header header) |
|
void |
HeaderGroup.addHeader(Header header) |
Adds the given header to the group.
|
protected void |
BasicLineFormatter.doFormatHeader(CharArrayBuffer buffer,
Header header) |
Actually formats a header.
|
static java.lang.String |
BasicLineFormatter.formatHeader(Header header,
LineFormatter formatter) |
Formats a header.
|
CharArrayBuffer |
BasicLineFormatter.formatHeader(CharArrayBuffer buffer,
Header header) |
|
CharArrayBuffer |
LineFormatter.formatHeader(CharArrayBuffer buffer,
Header header) |
Formats a header.
|
void |
AbstractHttpMessage.removeHeader(Header header) |
|
void |
HeaderGroup.removeHeader(Header header) |
Removes the given header.
|
void |
AbstractHttpMessage.setHeader(Header header) |
|
void |
AbstractHttpMessage.setHeaders(Header[] headers) |
|
void |
HeaderGroup.setHeaders(Header[] headers) |
Sets all of the headers contained within this group overriding any
existing headers.
|
void |
HeaderGroup.updateHeader(Header header) |
Replaces the first occurence of the header with the same name.
|
| Constructor | Description |
|---|---|
BasicHeaderIterator(Header[] headers,
java.lang.String name) |
Creates a new header iterator.
|
| Constructor | Description |
|---|---|
BasicListHeaderIterator(java.util.List<Header> headers,
java.lang.String name) |
Creates a new header iterator.
|