|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.altlocs.AlternateLocationFactoryImpl
public class AlternateLocationFactoryImpl
| Constructor Summary | |
|---|---|
AlternateLocationFactoryImpl(NetworkManager networkManager,
PushEndpointFactory pushEndpointFactory,
ApplicationServices applicationServices,
ConnectionServices connectionServices,
NetworkInstanceUtils networkInstanceUtils,
IpPortForSelf ipPortForSelf)
|
|
| Method Summary | |
|---|---|
AlternateLocation |
create(RemoteFileDesc rfd)
Creates a new AlternateLocation for the data stored in a RemoteFileDesc. |
AlternateLocation |
create(String location,
URN urn)
Constructs a new AlternateLocation instance based on the specified string argument and URN. |
AlternateLocation |
create(String location,
URN urn,
boolean tlsCapable)
Constructs a new AlternateLocation instance based on the specified string argument and URN. |
AlternateLocation |
create(URN urn)
Creates a new AlternateLocation for a file stored locally with the specified URN. |
AlternateLocation |
createDirectAltLoc(IpPort ipp,
URN urn)
Creates a new direct AlternateLocation |
AlternateLocation |
createDirectDHTAltLoc(IpPort ipp,
URN urn,
long fileSize,
byte[] ttroot)
Creates a new direct AlternateLocation from information that was found in the DHT |
AlternateLocation |
createPushAltLoc(PushEndpoint pe,
URN urn)
Creates a new push AlternateLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public AlternateLocationFactoryImpl(NetworkManager networkManager,
PushEndpointFactory pushEndpointFactory,
ApplicationServices applicationServices,
ConnectionServices connectionServices,
NetworkInstanceUtils networkInstanceUtils,
IpPortForSelf ipPortForSelf)
| Method Detail |
|---|
public AlternateLocation create(URN urn)
AlternateLocationFactory
create in interface AlternateLocationFactoryurn - the URN of the locally stored file
public AlternateLocation create(RemoteFileDesc rfd)
throws IOException
AlternateLocationFactory
create in interface AlternateLocationFactoryrfd - the RemoteFileDesc to use in creating the
AlternateLocation
IOException
public AlternateLocation createPushAltLoc(PushEndpoint pe,
URN urn)
AlternateLocationFactory
createPushAltLoc in interface AlternateLocationFactory
public AlternateLocation createDirectDHTAltLoc(IpPort ipp,
URN urn,
long fileSize,
byte[] ttroot)
throws IOException
AlternateLocationFactory
createDirectDHTAltLoc in interface AlternateLocationFactoryIOException
public AlternateLocation createDirectAltLoc(IpPort ipp,
URN urn)
throws IOException
AlternateLocationFactory
createDirectAltLoc in interface AlternateLocationFactoryIOException
public AlternateLocation create(String location,
URN urn,
boolean tlsCapable)
throws IOException
AlternateLocationFactory
create in interface AlternateLocationFactorylocation - a string containing one of the following:
"http://my.address.com:port#/uri-res/N2R?urn:sha:SHA1LETTERS" or
"1.2.3.4[:6346]" or
http representation of a PushEndpoint.
If the first is given, then the SHA1 in the string MUST match
the SHA1 given.tlsCapable - if the alternate location is capable of receiving
TLS connections. valid only if the location was
not a full URL.
IOException
public AlternateLocation create(String location,
URN urn)
throws IOException
AlternateLocationFactory
create in interface AlternateLocationFactorylocation - a string containing one of the following:
"http://my.address.com:port#/uri-res/N2R?urn:sha:SHA1LETTERS" or
"1.2.3.4[:6346]" or
http representation of a PushEndpoint.
If the first is given, then the SHA1 in the string MUST match
the SHA1 given.
IOException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||