public abstract class AbstractXmlRpcModule<S extends RpcRequest,T extends RpcResponse> extends Object implements RpcModule<S,T>
RpcModule
that uses JaxbUtils for marshaling and unmarshaling requests.Constructor and Description |
---|
AbstractXmlRpcModule(Class<S> requestClazz,
Class<T> responseClazz) |
Modifier and Type | Method and Description |
---|---|
String |
marshalRequest(S request)
Marshals the request to a string.
|
String |
marshalResponse(T response)
Marshals the response to a string.
|
S |
unmarshalRequest(String requestXml)
Unmarshals the request from a string.
|
T |
unmarshalResponse(String response)
Unmarshals the response from a string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createResponseWithException, getId
public String marshalRequest(S request)
RpcModule
marshalRequest
in interface RpcModule<S extends RpcRequest,T extends RpcResponse>
public S unmarshalRequest(String requestXml)
RpcModule
unmarshalRequest
in interface RpcModule<S extends RpcRequest,T extends RpcResponse>
public String marshalResponse(T response)
RpcModule
marshalResponse
in interface RpcModule<S extends RpcRequest,T extends RpcResponse>
public T unmarshalResponse(String response)
RpcModule
unmarshalResponse
in interface RpcModule<S extends RpcRequest,T extends RpcResponse>
Copyright © 2017. All rights reserved.