Project JXTA

net.jxta.resolver
Interface GenericResolver

All Known Subinterfaces:
ResolverService

public interface GenericResolver

This interface specifies the resolver service that handles resolve requests of a specific given type. The resolver service is part of the JXTA core peer group services.

See Also:
QueryHandler, ResolverService, ResolverQueryMsg, ResolverResponseMsg, ResolverSrdiMsg, Service

Method Summary
 void sendQuery(String peerId, ResolverQueryMsg query)
          For Services that wish to implement a ResolverService they must implement this interface Sends query to the specified address.
 void sendResponse(String destPeer, ResolverResponseMsg response)
          send a response to a peer.
 void sendSrdi(String destPeer, ResolverSrdiMsg srdi)
          send a srdi message to a peer.
 

Method Detail

sendQuery

void sendQuery(String peerId,
               ResolverQueryMsg query)
For Services that wish to implement a ResolverService they must implement this interface Sends query to the specified address. If address is null the query is propagated

Parameters:
peerId - Peer unicast, or propagate
query - The query to match.

sendResponse

void sendResponse(String destPeer,
                  ResolverResponseMsg response)
send a response to a peer.

Parameters:
destPeer - is the destination of the response
response - is the response to be sent

sendSrdi

void sendSrdi(String destPeer,
              ResolverSrdiMsg srdi)
send a srdi message to a peer.

Parameters:
destPeer - is the destination of the srdi message
srdi - is the srdi message to be sent

JXTA J2SE