|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.uploader.NormalUploadState
An implementation of the UploadState interface for a normal upload situation, i.e., the real uploader. It should send the appropriate header information, followed by the actual file.
| Constructor Summary | |
NormalUploadState(HTTPUploader uploader,
StalledUploadWatchdog watchdog)
Constructs a new NormalUploadState, establishing all invariants. |
|
| Method Summary | |
boolean |
getCloseConnection()
Determines whether or not the connection this HTTPMessage was sent on should be terminated after sending. |
static float |
getUploadSpeed()
|
java.lang.String |
toString()
|
void |
writeMessageBody(java.io.OutputStream ostream)
Writes the message body for this message to the specified OutputStream. |
void |
writeMessageHeaders(java.io.OutputStream network)
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, wait, wait, wait |
| Constructor Detail |
public NormalUploadState(HTTPUploader uploader,
StalledUploadWatchdog watchdog)
| Method Detail |
public void writeMessageHeaders(java.io.OutputStream network)
throws java.io.IOException
HTTPMessage
writeMessageHeaders in interface HTTPMessagenetwork - the OutputStream to write to
java.io.IOException
public void writeMessageBody(java.io.OutputStream ostream)
throws java.io.IOException
HTTPMessage
writeMessageBody in interface HTTPMessageostream - the OutputStream to write to
java.io.IOExceptionpublic static float getUploadSpeed()
public boolean getCloseConnection()
HTTPMessage
getCloseConnection in interface HTTPMessagepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||