Package org.apache.hc.core5.http.io
Interface HttpMessageParser<T extends MessageHeaders>
-
- Type Parameters:
T-MessageHeadersor 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 Tparse(SessionInputBuffer buffer, java.io.InputStream inputStream)Generates an instance ofMessageHeadersfrom the given input stream..
-
-
-
Method Detail
-
parse
T parse(SessionInputBuffer buffer, java.io.InputStream inputStream) throws java.io.IOException, HttpException
Generates an instance ofMessageHeadersfrom the given input stream..- Parameters:
buffer- Session input bufferinputStream- Input stream- Returns:
- HTTP message head or
nullif 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
-
-