LimeWire Consolidated API

com.limegroup.gnutella
Interface PushEndpointFactory

All Known Implementing Classes:
PushEndpointFactoryImpl

public interface PushEndpointFactory


Method Summary
 PushEndpoint createForSelf()
          Gets the endpoint for the self.
 PushEndpoint createFromBytes(DataInputStream dais)
          Constructs a PushEndpoint from binary representation and also updates all other cached PushEndpoint instances that are cached with the set of read proxies.
 PushEndpoint createPushEndpoint(byte[] guid)
          creates a PushEndpoint without any proxies.
 PushEndpoint createPushEndpoint(byte[] guid, Set<? extends IpPort> proxies)
           
 PushEndpoint createPushEndpoint(byte[] guid, Set<? extends IpPort> proxies, byte features, int version)
           
 PushEndpoint createPushEndpoint(byte[] guid, Set<? extends IpPort> proxies, byte features, int version, IpPort addr)
           
 PushEndpoint createPushEndpoint(String httpString)
          creates a PushEndpoint from a String passed in http header exchange.
 

Method Detail

createForSelf

PushEndpoint createForSelf()
Gets the endpoint for the self.


createPushEndpoint

PushEndpoint createPushEndpoint(byte[] guid)
creates a PushEndpoint without any proxies. not very useful but can happen.


createPushEndpoint

PushEndpoint createPushEndpoint(byte[] guid,
                                Set<? extends IpPort> proxies)
Parameters:
guid - the client guid
proxies - the push proxies for that host, can be empty, see IpPort.EMPTY_SET.

createPushEndpoint

PushEndpoint createPushEndpoint(byte[] guid,
                                Set<? extends IpPort> proxies,
                                byte features,
                                int version)
Parameters:
guid - the client guid
proxies - the push proxies for that host

createPushEndpoint

PushEndpoint createPushEndpoint(byte[] guid,
                                Set<? extends IpPort> proxies,
                                byte features,
                                int version,
                                IpPort addr)
Parameters:
guid - the client guid
proxies - the push proxies for that host

createPushEndpoint

PushEndpoint createPushEndpoint(String httpString)
                                throws IOException
creates a PushEndpoint from a String passed in http header exchange.

Throws:
IOException

createFromBytes

PushEndpoint createFromBytes(DataInputStream dais)
                             throws BadPacketException,
                                    IOException
Constructs a PushEndpoint from binary representation and also updates all other cached PushEndpoint instances that are cached with the set of read proxies.

Throws:
BadPacketException
IOException

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.