com.limegroup.gnutella.uploader
Class FreeloaderUploadState

java.lang.Object
  extended bycom.limegroup.gnutella.uploader.FreeloaderUploadState
All Implemented Interfaces:
HTTPMessage

public class FreeloaderUploadState
extends java.lang.Object
implements HTTPMessage

Since the uploader is considered a freeloader, this ploads an html page to them with more information on Gnutella and with more information on obtaining a client.


Field Summary
static java.lang.String RESPONSE_PAGE
           
 
Constructor Summary
FreeloaderUploadState()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSE_PAGE

public static final java.lang.String RESPONSE_PAGE
See Also:
Constant Field Values
Constructor Detail

FreeloaderUploadState

public FreeloaderUploadState()
Method Detail

writeMessageHeaders

public void writeMessageHeaders(java.io.OutputStream os)
                         throws java.io.IOException
Description copied from interface: HTTPMessage
Writes out the HTTP headers for this message to the specified OutputStream.

Specified by:
writeMessageHeaders in interface HTTPMessage
Parameters:
os - the OutputStream to write to
Throws:
java.io.IOException

writeMessageBody

public void writeMessageBody(java.io.OutputStream os)
                      throws java.io.IOException
Description copied from interface: HTTPMessage
Writes the message body for this message to the specified OutputStream.

Specified by:
writeMessageBody in interface HTTPMessage
Parameters:
os - the OutputStream to write to
Throws:
java.io.IOException

getCloseConnection

public boolean getCloseConnection()
Description copied from interface: HTTPMessage
Determines whether or not the connection this HTTPMessage was sent on should be terminated after sending.

Specified by:
getCloseConnection in interface HTTPMessage
Returns:
true if the connection should be closed, false otherwise.