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.
|
| Constructor and Description |
|---|
Rpc(Rpc.MethodResponse.Fault fault)
Creates a method response with a fault.
|
Rpc(String methodName,
Value... parameters)
Creates a method call with a list of parameters.
|
Rpc(Value value)
Creates a method response.
|
| Modifier and Type | Method and Description |
|---|---|
Rpc.MethodCall |
getMethodCall()
Gets the method call.
|
Rpc.MethodResponse |
getMethodResponse()
Gets the method response.
|
public static final String NAMESPACE
public Rpc(String methodName, Value... parameters)
methodName - The method name.parameters - The parameters.public Rpc(Value value)
value - The return value.public Rpc(Rpc.MethodResponse.Fault fault)
fault - The fault.public final Rpc.MethodCall getMethodCall()
public final Rpc.MethodResponse getMethodResponse()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.