public final class Rpc
extends java.lang.Object
The implementation of the <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 | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
jabber:iq:rpc
|
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,
java.lang.String faultString)
Creates a method response with a fault.
|
static Rpc |
ofMethodCall(java.lang.String methodName,
Value... parameters)
Creates a method call with a list of parameters.
|
static Rpc |
ofMethodResponse(Value value)
Creates a method response.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
jabber:iq:rpc
public static Rpc ofMethodCall(java.lang.String methodName, Value... parameters)
Creates a method call with a list of parameters.
methodName
- The method name.parameters
- The parameters.public static Rpc ofMethodResponse(Value value)
Creates a method response.
value
- The return value.public static Rpc ofFaultResponse(int faultCode, java.lang.String faultString)
Creates a method response with a fault.
faultCode
- The fault code.faultString
- The fault string.public final Rpc.MethodCall getMethodCall()
Gets the method call.
public final Rpc.MethodResponse getMethodResponse()
Gets the method response.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.