Package org.apache.http.io
Interface HttpMessageParser<T extends HttpMessage>
-
- Type Parameters:
T
-HttpMessage
or a subclass
- All Known Implementing Classes:
AbstractMessageParser
,DefaultHttpRequestParser
,DefaultHttpResponseParser
,DefaultHttpResponseParser
,DefaultResponseParser
,HttpRequestParser
,HttpResponseParser
public interface HttpMessageParser<T extends HttpMessage>
Abstract message parser intended to build HTTP messages from an arbitrary data source.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
parse()
Generates an instance ofHttpMessage
from the underlying data source.
-
-
-
Method Detail
-
parse
T parse() throws java.io.IOException, HttpException
Generates an instance ofHttpMessage
from the underlying data source.- Returns:
- HTTP message
- Throws:
java.io.IOException
- in case of an I/O errorHttpException
- in case of HTTP protocol violation
-
-