public abstract class SdkStructuredJsonFactoryImpl extends Object
SdkStructuredPlainJsonFactory.SDK_JSON_FACTORY
and SdkStructuredCborFactory.SDK_CBOR_FACTORY
.Constructor and Description |
---|
SdkStructuredJsonFactoryImpl(com.fasterxml.jackson.core.JsonFactory jsonFactory,
Map<Class<?>,com.amazonaws.transform.Unmarshaller<?,com.amazonaws.transform.JsonUnmarshallerContext>> unmarshallers) |
Modifier and Type | Method and Description |
---|---|
JsonErrorResponseHandler |
createErrorResponseHandler(List<com.amazonaws.transform.JsonErrorUnmarshaller> errorUnmarshallers,
String customErrorCodeFieldName)
Returns the error response handler for handling a error response.
|
<T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
com.amazonaws.transform.Unmarshaller<T,com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successfull response.
|
protected abstract StructuredJsonGenerator |
createWriter(com.fasterxml.jackson.core.JsonFactory jsonFactory,
String contentType) |
StructuredJsonGenerator |
createWriter(String contentType)
Returns the
StructuredJsonGenerator to be used for marshalling the request. |
public StructuredJsonGenerator createWriter(String contentType)
StructuredJsonGenerator
to be used for marshalling the request.contentType
- Content type to send for requests.protected abstract StructuredJsonGenerator createWriter(com.fasterxml.jackson.core.JsonFactory jsonFactory, String contentType)
public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, com.amazonaws.transform.Unmarshaller<T,com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the
appropriate response handler.public JsonErrorResponseHandler createErrorResponseHandler(List<com.amazonaws.transform.JsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)
errorUnmarshallers
- Response unmarshallers to unamrshall the error responses.Copyright © 2016. All rights reserved.