public abstract class AbstractLscXmlRpcObject extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTHENTICATION_ERROR |
static int |
BAD_PROTOCOL_VERSION |
static int |
BAD_SERVICE_NAME |
static String |
LSC_XMLRPC_PROTOCOL_VERSION |
static String |
LSC_XMLRPC_SERVICE_NAME |
static int |
RESULT_SUCCESS |
static int |
UNHANDLED_ERROR |
Constructor and Description |
---|
AbstractLscXmlRpcObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
decodeBooleanResult(Object[] result)
Parse the response to get a boolean result
|
List<Object> |
decodeObjectListResult(Object[] result)
Parse the response to get the parameters as an objects list
|
List<String> |
decodeStringListResult(Object[] result)
Parse the response to get the parameters as a String list
|
Object |
encodeAttributeValue(Attribute attribute) |
Object |
encodeMap(List<Attribute> attributes) |
Object[] |
encodeRequest(Object... parameters) |
List<Object> |
encodeResult(int code,
Object... parameters)
Encode a list of parameters starting with the result code, followed by the
protocol version and ending by the parameters as an embedded array
|
String |
getErrorMessage()
Error message accessor
|
public static final String LSC_XMLRPC_PROTOCOL_VERSION
public static final String LSC_XMLRPC_SERVICE_NAME
public static int RESULT_SUCCESS
public static int AUTHENTICATION_ERROR
public static int UNHANDLED_ERROR
public static int BAD_SERVICE_NAME
public static int BAD_PROTOCOL_VERSION
public List<Object> encodeResult(int code, Object... parameters)
code
- the result codeparameters
- the parameters to embedpublic String getErrorMessage()
public List<String> decodeStringListResult(Object[] result)
result
- the responsepublic List<Object> decodeObjectListResult(Object[] result)
result
- the responsepublic boolean decodeBooleanResult(Object[] result)
result
- the requestCopyright © 2005-2024 LSC project. All Rights Reserved.