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.
|
org.apache.http.util |
Core utility classes.
|
Modifier and Type | Method and Description |
---|---|
HeaderElement[] |
Header.getElements()
Parses the value.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.get(HttpEntity entity)
Extracts
Content-Type value from HttpEntity exactly as
specified by the Content-Type header of the entity. |
static ContentType |
ContentType.getLenientOrDefault(HttpEntity entity)
Extracts
Content-Type value from HttpEntity or returns the default value
ContentType.DEFAULT_TEXT if not explicitly specified or incorrect (could not be parsed). |
static ContentType |
ContentType.getOrDefault(HttpEntity entity)
Extracts
Content-Type value from HttpEntity or returns the default value
ContentType.DEFAULT_TEXT if not explicitly specified. |
static ContentType |
ContentType.parse(String s)
Parses textual representation of
Content-Type value. |
Modifier and Type | Method and Description |
---|---|
protected HttpMessage |
HttpResponseParser.parseHead(SessionInputBuffer sessionBuffer)
Deprecated.
|
protected HttpMessage |
HttpRequestParser.parseHead(SessionInputBuffer sessionBuffer)
Deprecated.
|
protected HttpRequest |
DefaultHttpRequestParser.parseHead(SessionInputBuffer sessionBuffer) |
protected abstract T |
AbstractMessageParser.parseHead(SessionInputBuffer sessionBuffer)
Subclasses must override this method to generate an instance of
HttpMessage based on the initial input from the session buffer. |
protected HttpResponse |
DefaultHttpResponseParser.parseHead(SessionInputBuffer sessionBuffer) |
Modifier and Type | Method and Description |
---|---|
protected int |
BasicTokenIterator.findNext(int pos)
Determines the next token.
|
HeaderElement[] |
BufferedHeader.getElements() |
HeaderElement[] |
BasicHeader.getElements() |
Object |
BasicTokenIterator.next()
Returns the next token.
|
String |
BasicTokenIterator.nextToken()
Obtains the next token from this iteration.
|
HeaderElement[] |
HeaderValueParser.parseElements(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a header value into elements.
|
static HeaderElement[] |
BasicHeaderValueParser.parseElements(String value,
HeaderValueParser parser)
Parses elements with the given parser.
|
Header |
LineParser.parseHeader(CharArrayBuffer buffer)
Creates a header from a line.
|
Header |
BasicLineParser.parseHeader(CharArrayBuffer buffer) |
static Header |
BasicLineParser.parseHeader(String value,
LineParser parser) |
HeaderElement |
HeaderValueParser.parseHeaderElement(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a single header element.
|
static HeaderElement |
BasicHeaderValueParser.parseHeaderElement(String value,
HeaderValueParser parser)
Parses an element with the given parser.
|
NameValuePair |
HeaderValueParser.parseNameValuePair(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a name=value specification, where the = and value are optional.
|
static NameValuePair |
BasicHeaderValueParser.parseNameValuePair(String value,
HeaderValueParser parser)
Parses a name-value-pair with the given parser.
|
NameValuePair[] |
HeaderValueParser.parseParameters(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a list of name-value pairs.
|
static NameValuePair[] |
BasicHeaderValueParser.parseParameters(String value,
HeaderValueParser parser)
Parses parameters with the given parser.
|
ProtocolVersion |
LineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor)
Parses the textual representation of a protocol version.
|
ProtocolVersion |
BasicLineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor) |
static ProtocolVersion |
BasicLineParser.parseProtocolVersion(String value,
LineParser parser) |
RequestLine |
LineParser.parseRequestLine(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a request line.
|
RequestLine |
BasicLineParser.parseRequestLine(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a request line.
|
static RequestLine |
BasicLineParser.parseRequestLine(String value,
LineParser parser) |
StatusLine |
LineParser.parseStatusLine(CharArrayBuffer buffer,
ParserCursor cursor)
Parses a status line.
|
StatusLine |
BasicLineParser.parseStatusLine(CharArrayBuffer buffer,
ParserCursor cursor) |
static StatusLine |
BasicLineParser.parseStatusLine(String value,
LineParser parser) |
Constructor and Description |
---|
BufferedHeader(CharArrayBuffer buffer)
Creates a new header from a buffer.
|
Modifier and Type | Method and Description |
---|---|
static String |
EntityUtils.getContentCharSet(HttpEntity entity)
Deprecated.
(4.1.3) use
ContentType.getOrDefault(HttpEntity) |
static String |
EntityUtils.getContentMimeType(HttpEntity entity)
Deprecated.
(4.1.3) use
ContentType.getOrDefault(HttpEntity) |
static String |
EntityUtils.toString(HttpEntity entity)
Read the contents of an entity and return it as a String.
|
static String |
EntityUtils.toString(HttpEntity entity,
Charset defaultCharset)
Get the entity content as a String, using the provided default character set
if none is found in the entity.
|
static String |
EntityUtils.toString(HttpEntity entity,
String defaultCharset)
Get the entity content as a String, using the provided default character set
if none is found in the entity.
|
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.