Package org.apache.http.io
Interface HttpMessageWriter<T extends HttpMessage>
-
- All Known Implementing Classes:
AbstractMessageWriter,DefaultHttpRequestWriter,DefaultHttpResponseWriter,HttpRequestWriter,HttpResponseWriter
public interface HttpMessageWriter<T extends HttpMessage>Abstract message writer intended to serialize HTTP messages to an arbitrary data sink.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(T message)Serializes an instance ofHttpMessageto the underlying data sink.
-
-
-
Method Detail
-
write
void write(T message) throws java.io.IOException, HttpException
Serializes an instance ofHttpMessageto the underlying data sink.- Parameters:
message- HTTP message- Throws:
java.io.IOException- in case of an I/O errorHttpException- in case of HTTP protocol violation
-
-