net.jxta.impl.peer
Class PeerInfoServiceImpl.PipQueryHandler
java.lang.Object
net.jxta.impl.peer.PeerInfoServiceImpl.PipQueryHandler
- All Implemented Interfaces:
- QueryHandler
- Enclosing class:
- PeerInfoServiceImpl
class PeerInfoServiceImpl.PipQueryHandler
- extends Object
- implements QueryHandler
Method Summary |
int |
processQuery(ResolverQueryMsg query)
Process the resolver query, and generate response
it is the responsibility of the handler to send the response
result = processIncomingQuery(query);
if (result ! |
void |
processResponse(ResolverResponseMsg response)
Called when messages are received by the ResolverService
it calls back this method to deal with received responses |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PeerInfoServiceImpl.PipQueryHandler
PeerInfoServiceImpl.PipQueryHandler()
processQuery
public int processQuery(ResolverQueryMsg query)
- Process the resolver query, and generate response
it is the responsibility of the handler to send the response
result = processIncomingQuery(query);
if (result != null) {
resolver.sendResponse(query.getSrc(), response);
return ResolverService.OK;
} else return ResolverService.Repropagate;
- Specified by:
processQuery
in interface QueryHandler
- Parameters:
query
- ResolverQueryMsg query
- Returns:
- int status,
OK
success, Repropagate
to indicate a re-propagation is needed.
processResponse
public void processResponse(ResolverResponseMsg response)
- Called when messages are received by the ResolverService
it calls back this method to deal with received responses
- Specified by:
processResponse
in interface QueryHandler
- Parameters:
response
- ResolverQueryMsg response