Name

EndpointProtocol

Synopsis

Endpoints embody one or more protocols, each of which is represented by an object that implements this interface. An endpoint with multiple protocols can be used to bridge different network interfaces (though the use of endpoints is usually transparent to JXTA developers). Endpoint protocols can be retrieved from the getEndpointProtocols( ) method of the endpoint service.

public interface EndpointProtocol {
// Public Instance Methods
   public abstract boolean allowOverLoad();  
   public abstract boolean allowRouting();  
   public abstract EndpointMessenger getMessenger(EndpointAddress dest) throws IOException; 
   public abstract String getProtocolName();  
   public abstract EndpointAddress getPublicAddress();  
   public abstract boolean isConnectionOriented();  
   public abstract boolean ping(EndpointAddress addr);  
   public abstract void propagate(Message msg, String serviceName, String serviceParams, String prunePeer)
       throws IOException;
}

Passed To

EndpointService.{addEndpointProtocol(), removeEndpointProtocol()}

Returned By

EndpointService.getEndpointProtocolByName()

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.