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