Class AbstractRequestSerializer<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.AbstractRequestSerializer<RequestT,RequestResultT>
- Type Parameters:
RequestT
- The generic request type.RequestResultT
- The generic request result type.
- All Implemented Interfaces:
RequestSerializer<RequestT,
RequestResultT>
- Direct Known Subclasses:
SoapRemoteFunctionRequestSerializer
@Deprecated
public abstract class AbstractRequestSerializer<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
extends Object
implements RequestSerializer<RequestT,RequestResultT>
Deprecated.
This module will be discontinued, along with its classes and methods.
Common abstract class for serialization of queries and deserialization of request results. Handles exceptions
happened during serialization and deserialization.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal RequestResultT
deserialize
(SerializedRequestResult<RequestT> requestResult) Deprecated.Deserialize a request result.protected abstract RequestResultT
deserializeRequestResult
(SerializedRequestResult<RequestT> serializedRequestResult) Deprecated.Deserialize a request result.final SerializedRequest<RequestT>
Deprecated.Serialize a request.protected abstract SerializedRequest<RequestT>
serializeRequest
(RequestT request) Deprecated.Serialize a request.
-
Constructor Details
-
AbstractRequestSerializer
public AbstractRequestSerializer()Deprecated.
-
-
Method Details
-
serialize
@Nonnull public final SerializedRequest<RequestT> serialize(@Nonnull RequestT request) throws RequestSerializationException Deprecated.Description copied from interface:RequestSerializer
Serialize a request.- Specified by:
serialize
in interfaceRequestSerializer<RequestT extends Request<RequestT,
RequestResultT>, RequestResultT extends RequestResult<RequestT, RequestResultT>> - Parameters:
request
- The request to serialize.- Returns:
- The serialized request.
- Throws:
RequestSerializationException
- If there is an issue while serializing the request.
-
deserialize
@Nonnull public final RequestResultT deserialize(@Nonnull SerializedRequestResult<RequestT> requestResult) throws RequestSerializationException Deprecated.Description copied from interface:RequestSerializer
Deserialize a request result.- Specified by:
deserialize
in interfaceRequestSerializer<RequestT extends Request<RequestT,
RequestResultT>, RequestResultT extends RequestResult<RequestT, RequestResultT>> - Parameters:
requestResult
- The query result to deserialize.- Returns:
- The deserialized result object.
- Throws:
RequestSerializationException
- If there is an issue while deserializing the request.
-
serializeRequest
@Nonnull protected abstract SerializedRequest<RequestT> serializeRequest(@Nonnull RequestT request) throws Exception Deprecated.Serialize a request. Allows to generically throw an exception which is converted toRequestSerializationException
byserialize(Request)
.- Parameters:
request
- The request to serialize.- Returns:
- The serialized request.
- Throws:
Exception
- If there is an issue while serializing the request.
-
deserializeRequestResult
@Nonnull protected abstract RequestResultT deserializeRequestResult(@Nonnull SerializedRequestResult<RequestT> serializedRequestResult) throws Exception Deprecated.Deserialize a request result. Allows to generically throw an exception which is converted toRequestSerializationException
bydeserialize(SerializedRequestResult)
.- Parameters:
serializedRequestResult
- The request result payload to deserialize.- Returns:
- The deserialized request result.
- Throws:
Exception
- If there is an issue while serializing the request.
-