Package org.apache.hc.core5.http.io
Interface HttpMessageParser<T extends MessageHeaders>
-
- Type Parameters:
T
-MessageHeaders
or a subclass
- All Known Implementing Classes:
AbstractMessageParser
,DefaultHttpRequestParser
,DefaultHttpResponseParser
public interface HttpMessageParser<T extends MessageHeaders>
Message parser intended to build HTTP message head from an input stream.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
parse(SessionInputBuffer buffer, java.io.InputStream inputStream)
Generates an instance ofMessageHeaders
from the given input stream..
-
-
-
Method Detail
-
parse
T parse(SessionInputBuffer buffer, java.io.InputStream inputStream) throws java.io.IOException, HttpException
Generates an instance ofMessageHeaders
from the given input stream..- Parameters:
buffer
- Session input bufferinputStream
- Input stream- Returns:
- HTTP message head or
null
if the input stream has been closed by the opposite endpoint. - Throws:
java.io.IOException
- in case of an I/O errorHttpException
- in case of HTTP protocol violation
-
-