Uses of Class
org.apache.http.ParseException
Packages that use ParseException
Package
Description
Core HTTP component APIs and primitives.
Core HTTP entity implementations.
Default implementations of message parses and writers
for synchronous, blocking communication.
Default implementations of message parses and writers
for asynchronous, even driven communication.
Core HTTP message components, message element parser
and writer APIs and their default implementations.
Core utility classes.
-
Uses of ParseException in org.apache.http
Methods in org.apache.http that throw ParseException -
Uses of ParseException in org.apache.http.entity
Methods in org.apache.http.entity that throw ParseExceptionModifier and TypeMethodDescriptionstatic ContentType
ContentType.get
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
exactly as specified by theContent-Type
header of the entity.static ContentType
ContentType.getLenientOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueContentType.DEFAULT_TEXT
if not explicitly specified or incorrect (could not be parsed).static ContentType
ContentType.getOrDefault
(HttpEntity entity) ExtractsContent-Type
value fromHttpEntity
or returns the default valueContentType.DEFAULT_TEXT
if not explicitly specified.static ContentType
Parses textual representation ofContent-Type
value. -
Uses of ParseException in org.apache.http.impl.io
Methods in org.apache.http.impl.io that throw ParseExceptionModifier and TypeMethodDescriptionprotected abstract T
AbstractMessageParser.parseHead
(SessionInputBuffer sessionBuffer) Subclasses must override this method to generate an instance ofHttpMessage
based on the initial input from the session buffer.protected HttpRequest
DefaultHttpRequestParser.parseHead
(SessionInputBuffer sessionBuffer) protected HttpResponse
DefaultHttpResponseParser.parseHead
(SessionInputBuffer sessionBuffer) protected HttpMessage
HttpRequestParser.parseHead
(SessionInputBuffer sessionBuffer) Deprecated.protected HttpMessage
HttpResponseParser.parseHead
(SessionInputBuffer sessionBuffer) Deprecated. -
Uses of ParseException in org.apache.http.impl.nio.codecs
Methods in org.apache.http.impl.nio.codecs that throw ParseExceptionModifier and TypeMethodDescriptionprotected abstract T
AbstractMessageParser.createMessage
(CharArrayBuffer buffer) CreatesHttpMessage
instance based on the content of the input buffer containing the first line of the incoming HTTP message.protected HttpRequest
DefaultHttpRequestParser.createMessage
(CharArrayBuffer buffer) protected HttpResponse
DefaultHttpResponseParser.createMessage
(CharArrayBuffer buffer) protected HttpMessage
HttpRequestParser.createMessage
(CharArrayBuffer buffer) Deprecated.protected HttpMessage
HttpResponseParser.createMessage
(CharArrayBuffer buffer) Deprecated.private void
AbstractMessageParser.parseHeadLine()
-
Uses of ParseException in org.apache.http.message
Methods in org.apache.http.message that throw ParseExceptionModifier and TypeMethodDescriptionprotected int
BasicTokenIterator.findNext
(int pos) Determines the next token.BasicHeader.getElements()
BufferedHeader.getElements()
final Object
BasicTokenIterator.next()
Returns the next token.BasicTokenIterator.nextToken()
Obtains the next token from this iteration.static HeaderElement[]
BasicHeaderValueParser.parseElements
(String value, HeaderValueParser parser) Parses elements with the given parser.HeaderValueParser.parseElements
(CharArrayBuffer buffer, ParserCursor cursor) Parses a header value into elements.static Header
BasicLineParser.parseHeader
(String value, LineParser parser) BasicLineParser.parseHeader
(CharArrayBuffer buffer) LineParser.parseHeader
(CharArrayBuffer buffer) Creates a header from a line.static HeaderElement
BasicHeaderValueParser.parseHeaderElement
(String value, HeaderValueParser parser) Parses an element with the given parser.HeaderValueParser.parseHeaderElement
(CharArrayBuffer buffer, ParserCursor cursor) Parses a single header element.static NameValuePair
BasicHeaderValueParser.parseNameValuePair
(String value, HeaderValueParser parser) Parses a name-value-pair with the given parser.HeaderValueParser.parseNameValuePair
(CharArrayBuffer buffer, ParserCursor cursor) Parses a name=value specification, where the = and value are optional.static NameValuePair[]
BasicHeaderValueParser.parseParameters
(String value, HeaderValueParser parser) Parses parameters with the given parser.HeaderValueParser.parseParameters
(CharArrayBuffer buffer, ParserCursor cursor) Parses a list of name-value pairs.static ProtocolVersion
BasicLineParser.parseProtocolVersion
(String value, LineParser parser) BasicLineParser.parseProtocolVersion
(CharArrayBuffer buffer, ParserCursor cursor) LineParser.parseProtocolVersion
(CharArrayBuffer buffer, ParserCursor cursor) Parses the textual representation of a protocol version.static RequestLine
BasicLineParser.parseRequestLine
(String value, LineParser parser) BasicLineParser.parseRequestLine
(CharArrayBuffer buffer, ParserCursor cursor) Parses a request line.LineParser.parseRequestLine
(CharArrayBuffer buffer, ParserCursor cursor) Parses a request line.static StatusLine
BasicLineParser.parseStatusLine
(String value, LineParser parser) BasicLineParser.parseStatusLine
(CharArrayBuffer buffer, ParserCursor cursor) LineParser.parseStatusLine
(CharArrayBuffer buffer, ParserCursor cursor) Parses a status line.Constructors in org.apache.http.message that throw ParseExceptionModifierConstructorDescriptionBufferedHeader
(CharArrayBuffer buffer) Creates a new header from a buffer. -
Uses of ParseException in org.apache.http.util
Methods in org.apache.http.util that throw ParseExceptionModifier and TypeMethodDescriptionstatic String
EntityUtils.getContentCharSet
(HttpEntity entity) Deprecated.static String
EntityUtils.getContentMimeType
(HttpEntity entity) Deprecated.(4.1.3) useContentType.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, String 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, Charset defaultCharset) Get the entity content as a String, using the provided default character set if none is found in the entity.
ContentType.getOrDefault(HttpEntity)