public final class Rpc extends Object
<query/> element in the jabber:iq:rpc namespace.
This class is immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Rpc.MethodCall
The implementation of a RPC method call.
|
static class |
Rpc.MethodResponse
The implementation of a method response.
|
| Modifier and Type | Method and Description |
|---|---|
Rpc.MethodCall |
getMethodCall()
Gets the method call.
|
Rpc.MethodResponse |
getMethodResponse()
Gets the method response.
|
static Rpc |
ofFaultResponse(int faultCode,
String faultString)
Creates a method response with a fault.
|
static Rpc |
ofMethodCall(String methodName,
Value... parameters)
Creates a method call with a list of parameters.
|
static Rpc |
ofMethodResponse(Value value)
Creates a method response.
|
String |
toString() |
public static final String NAMESPACE
public static Rpc ofMethodCall(String methodName, Value... parameters)
methodName - The method name.parameters - The parameters.public static Rpc ofMethodResponse(Value value)
value - The return value.public static Rpc ofFaultResponse(int faultCode, String faultString)
faultCode - The fault code.faultString - The fault string.public final Rpc.MethodCall getMethodCall()
public final Rpc.MethodResponse getMethodResponse()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.