net.jxta.search.peer
Interface RouterClient.ResponseCallback

Enclosing class:
RouterClient

public static interface RouterClient.ResponseCallback

Implementations of this interface should be passed to RouterClient.search.


Method Summary
 void exception(java.lang.String uuid, java.lang.Exception exception)
          Called by the router client when an exception is encountered while communicating with the router or interpreting the router's response.
 void response(java.lang.String uuid, ProviderInfo[] providerChain, java.io.InputStream responseStream)
          Called by the router client when a response is received for a query with the given uuid.
 

Method Detail

response

public void response(java.lang.String uuid,
                     ProviderInfo[] providerChain,
                     java.io.InputStream responseStream)
Called by the router client when a response is received for a query with the given uuid.

exception

public void exception(java.lang.String uuid,
                      java.lang.Exception exception)
Called by the router client when an exception is encountered while communicating with the router or interpreting the router's response.