com.limegroup.gnutella.uploader
Class FreeloaderUploadState
java.lang.Object
com.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.
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 |
RESPONSE_PAGE
public static final java.lang.String RESPONSE_PAGE
- See Also:
- Constant Field Values
FreeloaderUploadState
public FreeloaderUploadState()
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.