|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.uploader.AbstractUploader
com.limegroup.gnutella.uploader.HTTPUploader
public class HTTPUploader
Maintains state for an HTTP upload.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.limegroup.gnutella.Uploader |
|---|
Uploader.UploadStatus |
| Nested classes/interfaces inherited from interface org.limewire.io.IpPort |
|---|
IpPort.IpComparator, IpPort.IpPortComparator |
| Nested classes/interfaces inherited from interface org.limewire.io.Address |
|---|
Address.EventType |
| Field Summary |
|---|
| Fields inherited from interface com.limegroup.gnutella.Uploader |
|---|
BITTORRENT_UPLOAD |
| Fields inherited from interface org.limewire.io.Connectable |
|---|
COMPARATOR, EMPTY_LIST, EMPTY_SET |
| Fields inherited from interface org.limewire.io.IpPort |
|---|
IP_COMPARATOR |
| Constructor Summary | |
|---|---|
HTTPUploader(String fileName,
HTTPUploadSession session)
|
|
HTTPUploader(String fileName,
HTTPUploadSession session,
TcpBandwidthStatistics tcpBandwidthStatistics)
|
|
| Method Summary | |
|---|---|
boolean |
containedRangeRequest()
|
AltLocTracker |
getAltLocTracker()
|
InetAddress |
getConnectedHost()
|
File |
getFile()
Returns the file backing this uploader. |
org.apache.http.HttpResponse |
getLastResponse()
|
String |
getMethod()
|
int |
getNumUploadConnections()
Returns the number of connections we are currently uplaoding to. |
PushEndpoint |
getPushEndpoint()
|
URN |
getRequestedURN()
Returns the content URN that the client asked for. |
long |
getStartTime()
Returns the time when the upload of content was started. |
long |
getUploadBegin()
Returns the index of the first byte of the file to upload. |
long |
getUploadEnd()
Returns the exclusive index of the last byte to upload. |
URN |
getUrn()
Returns the URN for the file backing this uploader. |
boolean |
isBrowseHostEnabled()
returns true if browse host is enabled, false if it is not. |
boolean |
isPartial()
|
boolean |
isVisible()
|
void |
reinitialize()
Reinitializes this uploader for a new request. |
void |
setContainedRangeRequest(boolean containedRangeRequest)
|
void |
setFile(File file)
|
void |
setFileDesc(FileDesc fd)
Sets the file that is being uploaded. |
void |
setLastResponse(org.apache.http.HttpResponse lastResponse)
|
void |
setMethod(String method)
|
void |
setPushEndpoint(PushEndpoint pushEndpoint)
|
void |
setRequestedURN(URN requestedURN)
|
void |
setStartTime(long startTime)
|
void |
setSupportsQueueing(boolean supportsQueueing)
|
void |
setUploadBegin(long uploadBegin)
|
void |
setUploadEnd(long uploadEnd)
|
void |
setVisible(boolean visible)
|
void |
stop()
Stops this upload. |
boolean |
supportsQueueing()
|
boolean |
validateRange()
Validates the byte range to upload. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.limegroup.gnutella.Uploader |
|---|
amountUploaded, getCustomIconDescriptor, getFileDesc, getFileName, getFileSize, getGnutellaPort, getHost, getIndex, getLastTransferState, getQueuePosition, getState, getTotalAmountUploaded, getUploadType, getUserAgent, isInactive |
| Methods inherited from interface com.limegroup.gnutella.BandwidthTracker |
|---|
getAverageBandwidth, getMeasuredBandwidth, measureBandwidth |
| Methods inherited from interface org.limewire.io.Connectable |
|---|
isTLSCapable |
| Methods inherited from interface org.limewire.io.IpPort |
|---|
getAddress, getInetAddress, getInetSocketAddress, getPort |
| Methods inherited from interface org.limewire.io.Address |
|---|
equals, getAddressDescription, hashCode |
| Constructor Detail |
|---|
public HTTPUploader(String fileName,
HTTPUploadSession session)
public HTTPUploader(String fileName,
HTTPUploadSession session,
TcpBandwidthStatistics tcpBandwidthStatistics)
| Method Detail |
|---|
public void reinitialize()
AbstractUploader
reinitialize in class AbstractUploaderpublic void setFileDesc(FileDesc fd)
AbstractUploader
setFileDesc in class AbstractUploaderfd - the file being uploadedpublic void setFile(File file)
public InetAddress getConnectedHost()
public void stop()
Uploader
stop in interface Uploaderpublic long getUploadBegin()
public long getUploadEnd()
public boolean containedRangeRequest()
public boolean validateRange()
public URN getRequestedURN()
public void setRequestedURN(URN requestedURN)
public boolean supportsQueueing()
public void setSupportsQueueing(boolean supportsQueueing)
public AltLocTracker getAltLocTracker()
public void setUploadBegin(long uploadBegin)
public void setUploadEnd(long uploadEnd)
public void setContainedRangeRequest(boolean containedRangeRequest)
public long getStartTime()
public void setStartTime(long startTime)
public boolean isPartial()
public boolean isVisible()
public void setVisible(boolean visible)
public String getMethod()
public void setMethod(String method)
public void setLastResponse(org.apache.http.HttpResponse lastResponse)
public org.apache.http.HttpResponse getLastResponse()
public boolean isBrowseHostEnabled()
Uploader
isBrowseHostEnabled in interface UploaderisBrowseHostEnabled in class AbstractUploaderpublic void setPushEndpoint(PushEndpoint pushEndpoint)
public PushEndpoint getPushEndpoint()
public File getFile()
Uploader
getFile in interface Uploaderpublic URN getUrn()
Uploader
getUrn in interface Uploaderpublic int getNumUploadConnections()
Uploader
getNumUploadConnections in interface Uploader
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||