Package de.timroes.axmlrpc
Interface XMLRPCCallback
-
public interface XMLRPCCallback
The XMLRPCCallback interface must be implemented by a listener for an asynchronous call to a server method. When the server responds, the corresponding method on the listener is called.- Author:
- Tim Roes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(long id, XMLRPCException error)
This callback is called whenever an error occurs during the method call.void
onResponse(long id, java.lang.Object result)
This callback is called whenever the server successfully responds.void
onServerError(long id, XMLRPCServerException error)
This callback is called whenever the server returns an error.
-
-
-
Method Detail
-
onResponse
void onResponse(long id, java.lang.Object result)
This callback is called whenever the server successfully responds.- Parameters:
id
- The id as returned by the XMLRPCClient.asyncCall(..) method for this request.result
- The Object returned from the server.
-
onError
void onError(long id, XMLRPCException error)
This callback is called whenever an error occurs during the method call.- Parameters:
id
- The id as returned by the XMLRPCClient.asyncCall(..) method for this request.error
- The error occured.
-
onServerError
void onServerError(long id, XMLRPCServerException error)
This callback is called whenever the server returns an error.- Parameters:
id
- The id as returned by the XMLRPCClient.asyncCall(..) method for this request.error
- The error returned from the server.
-
-