Package rocks.xmpp.extensions.rpc
Interface RpcHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RpcHandler
Handles an inbound remote procedure call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Value
process(Jid requester, String methodName, List<Value> parameters)
Processes the remote procedure call.
-
-
-
Method Detail
-
process
Value process(Jid requester, String methodName, List<Value> parameters) throws RpcException, StanzaErrorException
Processes the remote procedure call.- Parameters:
requester
- The requester.methodName
- The method name.parameters
- The parameter list.- Returns:
- The result.
- Throws:
RpcException
- If this exception is thrown, an application-level error (fault) is returned in the XML-RPC structure.StanzaErrorException
- If this exception is thrown, a stanza error is returned to the caller.
-
-