org.apache.http.io
Interface HttpMessageWriter

All Known Implementing Classes:
AbstractMessageWriter, HttpRequestWriter, HttpResponseWriter

public interface HttpMessageWriter

Abstract message writer intended to serialize HTTP messages to an arbitrary data sink.

Since:
4.0

Method Summary
 void write(HttpMessage message)
          Serializes an instance of HttpMessage to the underlying data sink.
 

Method Detail

write

void write(HttpMessage message)
           throws IOException,
                  HttpException
Serializes an instance of HttpMessage to the underlying data sink.

Parameters:
message -
Throws:
IOException - in case of an I/O error
HttpException - in case of HTTP protocol violation


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.