OrigRequest
- Type of the original request object.public class RpcV2CborProtocolMarshaller<OrigRequest> extends Object implements ProtocolRequestMarshaller<OrigRequest>
ProtocolMarshaller
for RPCV2CBOR based services.Constructor and Description |
---|
RpcV2CborProtocolMarshaller(StructuredRpcV2CborGenerator rpcv2cborGenerator,
String contentType,
OperationInfo operationInfo,
OrigRequest originalRequest,
MarshallerRegistry.Builder marshallerRegistryOverrides,
EmptyBodyRpcV2CborMarshaller emptyBodyMarshaller,
boolean isAwsQueryCompatible) |
Modifier and Type | Method and Description |
---|---|
Request<OrigRequest> |
finishMarshalling()
Finializes the marshalling and produces a
Request object that can be sent for execution. |
<V> void |
marshall(V val,
MarshallingInfo<V> marshallingInfo)
Marshalls the value into the appropriate location based on the
MarshallingInfo metadata. |
void |
startMarshalling()
If there is not an explicit payload member then we need to start the implicit RPCV2CBOR request object.
|
static <T> RpcV2CborMarshaller<T> |
unsupportedMarshaller(MarshallingType<T> marshallingType) |
public RpcV2CborProtocolMarshaller(StructuredRpcV2CborGenerator rpcv2cborGenerator, String contentType, OperationInfo operationInfo, OrigRequest originalRequest, MarshallerRegistry.Builder marshallerRegistryOverrides, EmptyBodyRpcV2CborMarshaller emptyBodyMarshaller, boolean isAwsQueryCompatible)
public static <T> RpcV2CborMarshaller<T> unsupportedMarshaller(MarshallingType<T> marshallingType)
public void startMarshalling()
startMarshalling
in interface ProtocolRequestMarshaller<OrigRequest>
public <V> void marshall(V val, MarshallingInfo<V> marshallingInfo)
ProtocolMarshaller
MarshallingInfo
metadata.marshall
in interface ProtocolMarshaller
val
- Value to marshall. May be null if the location allows it (for example, members bound to the path
must never be null or empty).marshallingInfo
- Metadata about how and where to marshall the data. Must not be null.public Request<OrigRequest> finishMarshalling()
ProtocolRequestMarshaller
Request
object that can be sent for execution. Must be the last
method called in the marshaller.finishMarshalling
in interface ProtocolRequestMarshaller<OrigRequest>
Request
object.