com.limegroup.gnutella.uploader
Class PushProxyUploadState
java.lang.Object
com.limegroup.gnutella.uploader.PushProxyUploadState
- All Implemented Interfaces:
- HTTPMessage
- public final class PushProxyUploadState
- extends java.lang.Object
- implements HTTPMessage
An implementaiton of the UploadState interface
when the request is to PushProxy
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 ostream)
Writes the message body for this message to the specified
OutputStream. |
void |
writeMessageHeaders(java.io.OutputStream ostream)
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 |
P_SERVER_ID
public static final java.lang.String P_SERVER_ID
- See Also:
- Constant Field Values
P_GUID
public static final java.lang.String P_GUID
- See Also:
- Constant Field Values
P_FILE
public static final java.lang.String P_FILE
- See Also:
- Constant Field Values
PushProxyUploadState
public PushProxyUploadState(HTTPUploader uploader)
writeMessageHeaders
public void writeMessageHeaders(java.io.OutputStream ostream)
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:
ostream
- the OutputStream to write to
- Throws:
java.io.IOException
writeMessageBody
public void writeMessageBody(java.io.OutputStream ostream)
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:
ostream
- 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.