org.apache.http.nio
Interface NHttpMessageWriter

All Known Implementing Classes:
AbstractMessageWriter, HttpRequestWriter, HttpResponseWriter

public interface NHttpMessageWriter

Abstract HTTP message writer for non-blocking connections.

Since:
4.0
Version:
$Revision: 744541 $

Method Summary
 void reset()
          Resets the writer.
 void write(HttpMessage message)
          Serializes out the HTTP message head.
 

Method Detail

reset

void reset()
Resets the writer. The writer will be ready to start serializing another HTTP message.


write

void write(HttpMessage message)
           throws IOException,
                  HttpException
Serializes out the HTTP message head.

Parameters:
message - HTTP message.
Throws:
IOException - in case of an I/O error.
HttpException - in case the HTTP message is malformed or violates the HTTP protocol.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.