public abstract class AbstractRequestSerializer<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>> extends Object implements RequestSerializer<RequestT,RequestResultT>
Constructor and Description |
---|
AbstractRequestSerializer() |
Modifier and Type | Method and Description |
---|---|
RequestResultT |
deserialize(SerializedRequestResult<RequestT> requestResult)
Deserialize a request result.
|
protected abstract RequestResultT |
deserializeRequestResult(SerializedRequestResult<RequestT> serializedRequestResult)
Deserialize a request result.
|
SerializedRequest<RequestT> |
serialize(RequestT request)
Serialize a request.
|
protected abstract SerializedRequest<RequestT> |
serializeRequest(RequestT request)
Serialize a request.
|
@Nonnull public final SerializedRequest<RequestT> serialize(@Nonnull RequestT request) throws RequestSerializationException
RequestSerializationException
.serialize
in interface RequestSerializer<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
RequestSerializationException
- If there is an issue while serializing the request.@Nonnull public final RequestResultT deserialize(@Nonnull SerializedRequestResult<RequestT> requestResult) throws RequestSerializationException
RequestSerializationException
.deserialize
in interface RequestSerializer<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
RequestSerializationException
- If there is an issue while deserializing the request.@Nonnull protected abstract SerializedRequest<RequestT> serializeRequest(@Nonnull RequestT request) throws Exception
RequestSerializationException
by serialize(Request)
.Exception
- If there is an issue while serializing the request.@Nonnull protected abstract RequestResultT deserializeRequestResult(@Nonnull SerializedRequestResult<RequestT> serializedRequestResult) throws Exception
RequestSerializationException
by deserialize(SerializedRequestResult)
.Exception
- If there is an issue while serializing the request.Copyright © 2019 SAP SE. All rights reserved.