LimeWire Consolidated API

com.limegroup.gnutella
Interface RemoteFileDesc

All Superinterfaces:
FileDetails, HostDetails, RemoteFileDetails
All Known Implementing Classes:
RemoteFileDescImpl, XMPPRemoteFileDesc

public interface RemoteFileDesc
extends RemoteFileDetails

A reference to a single file on a remote machine. In this respect RemoteFileDesc is similar to a URL, but it contains Gnutella- specific data as well, such as the server's 16-byte GUID.


Field Summary
static String BOGUS_IP
          bogus IP we assign to RFDs whose real ip is unknown
static List<RemoteFileDesc> EMPTY_LIST
          Typed reference to an empty list of RemoteFileDescs.
 
Method Summary
 Address getAddress()
           
 org.apache.http.auth.Credentials getCredentials()
          Returns credentials needed for downloading this file from the remote side
 SecureMessage.Status getSecureStatus()
           
 float getSpamRating()
           
 String getUrlPath()
          Returns the url encoded HTTP request path.
 boolean isAltLocCapable()
           
 boolean isFromAlternateLocation()
          Determines whether or not this RemoteFileDesc was created from an alternate location.
 boolean isMe(byte[] myClientGUID)
           
 boolean isSpam()
           
 void setSecureStatus(SecureMessage.Status secureStatus)
           
 void setSpamRating(float rating)
           
 RemoteHostMemento toMemento()
          Returns a memento that can be used for serializing this object.
 
Methods inherited from interface com.limegroup.gnutella.FileDetails
getCreationTime, getFileName, getIndex, getSHA1Urn, getSize, getUrns, getXMLDocument
 
Methods inherited from interface com.limegroup.gnutella.HostDetails
getClientGUID, getQuality, getSpeed, getVendor, isBrowseHostEnabled, isHTTP11, isReplyToMulticast, setHTTP11
 

Field Detail

BOGUS_IP

static final String BOGUS_IP
bogus IP we assign to RFDs whose real ip is unknown

See Also:
Constant Field Values

EMPTY_LIST

static final List<RemoteFileDesc> EMPTY_LIST
Typed reference to an empty list of RemoteFileDescs.

Method Detail

isMe

boolean isMe(byte[] myClientGUID)
Returns:
whether this rfd points to myself.

isFromAlternateLocation

boolean isFromAlternateLocation()
Determines whether or not this RemoteFileDesc was created from an alternate location.


getUrlPath

String getUrlPath()
Returns the url encoded HTTP request path.


getCredentials

org.apache.http.auth.Credentials getCredentials()
Returns credentials needed for downloading this file from the remote side

Returns:
null if no credentials are needed

isAltLocCapable

boolean isAltLocCapable()
Returns:
true if I am not a multicast host and have a hash. also, if I am firewalled I must have at least one push proxy, otherwise my port and address need to be valid.

setSpamRating

void setSpamRating(float rating)

getSpamRating

float getSpamRating()

getSecureStatus

SecureMessage.Status getSecureStatus()

setSecureStatus

void setSecureStatus(SecureMessage.Status secureStatus)

toMemento

RemoteHostMemento toMemento()
Returns a memento that can be used for serializing this object.


isSpam

boolean isSpam()

getAddress

Address getAddress()

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.