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.
- Since:
- JXTA 1.0
- Version:
- $Revision: 1.11 $
- See Also:
QueryHandler,
ResolverService,
ResolverQueryMsg,
ResolverResponseMsg,
Service
|
Method Summary |
void |
sendQuery(java.lang.String peerId,
ResolverQueryMsg query)
For Services that wish to implement a ResolverService Service they must
implement this interface Sends query to the specified address. |
void |
sendResponse(java.lang.String destPeer,
ResolverResponseMsg response)
send a response to a peer. |
sendQuery
public void sendQuery(java.lang.String peerId,
ResolverQueryMsg query)
- For Services that wish to implement a ResolverService Service they must
implement this interface Sends query to the specified address.
If address is null the query is propagated
- Parameters:
peerId - Peer unicast, or propagatequery - The query to match.- Since:
- JXTA 1.0
sendResponse
public void sendResponse(java.lang.String destPeer,
ResolverResponseMsg response)
- send a response to a peer.
- Parameters:
destPeer - is the destination of the responseresponse - is the response to be sent