com.limegroup.gnutella.http
Interface HTTPMessage


public interface HTTPMessage

This class defines the basic functionality of a class capable of writing an HTTP message.


Method Summary
 boolean getCloseConnection()
          Determines whether or not the connection this HTTPMessage was sent on should be terminated after sending.
 void writeMessageBody(java.io.OutputStream os)
          Writes the message body for this message to the specified OutputStream.
 void writeMessageHeaders(java.io.OutputStream os)
          Writes out the HTTP headers for this message to the specified OutputStream.
 

Method Detail

writeMessageHeaders

void writeMessageHeaders(java.io.OutputStream os)
                         throws java.io.IOException
Writes out the HTTP headers for this message to the specified OutputStream.

Parameters:
os - the OutputStream to write to
Throws:
java.io.IOException

writeMessageBody

void writeMessageBody(java.io.OutputStream os)
                      throws java.io.IOException
Writes the message body for this message to the specified OutputStream.

Parameters:
os - the OutputStream to write to
Throws:
java.io.IOException

getCloseConnection

boolean getCloseConnection()
Determines whether or not the connection this HTTPMessage was sent on should be terminated after sending.

Returns:
true if the connection should be closed, false otherwise.