OrigRequestT - Type of the original request object.ProtocolMarshaller, ProtocolRequestMarshaller<OrigRequestT>public class JsonProtocolMarshaller<OrigRequestT> extends Object implements ProtocolRequestMarshaller<OrigRequestT>
ProtocolMarshaller for JSON based services. This includes JSON-RPC and REST-JSON.| Constructor | Description |
|---|---|
JsonProtocolMarshaller(StructuredJsonGenerator jsonGenerator,
String contentType,
OperationInfo operationInfo,
OrigRequestT originalRequest) |
| Modifier and Type | Method | Description |
|---|---|---|
Request<OrigRequestT> |
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 JSON request object.
|
public JsonProtocolMarshaller(StructuredJsonGenerator jsonGenerator, String contentType, OperationInfo operationInfo, OrigRequestT originalRequest)
public void startMarshalling()
startMarshalling in interface ProtocolRequestMarshaller<OrigRequestT>public <V> void marshall(V val,
MarshallingInfo<V> marshallingInfo)
ProtocolMarshallerMarshallingInfo metadata.marshall in interface ProtocolMarshallerval - 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<OrigRequestT> finishMarshalling()
ProtocolRequestMarshallerRequest object that can be sent for execution. Must be the last
method called in the marshaller.finishMarshalling in interface ProtocolRequestMarshaller<OrigRequestT>Request object.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.