public abstract class BaseAwsStructuredJsonFactory extends Object implements AwsStructuredJsonFactory
AwsStructuredPlainJsonFactory.SDK_JSON_FACTORY
and AwsStructuredCborFactory.SDK_CBOR_FACTORY
.Modifier and Type | Method and Description |
---|---|
AwsJsonErrorResponseHandler |
createErrorResponseHandler(List<AwsJsonErrorUnmarshaller> 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 successful response.
|
StructuredJsonGenerator |
createWriter(String contentType)
Returns the
StructuredJsonGenerator to be used for marshalling the request. |
public StructuredJsonGenerator createWriter(String contentType)
StructuredJsonFactory
StructuredJsonGenerator
to be used for marshalling the request.createWriter
in interface StructuredJsonFactory
contentType
- Content type to send for requests.public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
StructuredJsonFactory
createResponseHandler
in interface StructuredJsonFactory
operationMetadata
- Additional context information about an operation to create the
appropriate response handler.public AwsJsonErrorResponseHandler createErrorResponseHandler(List<AwsJsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)
AwsStructuredJsonFactory
createErrorResponseHandler
in interface AwsStructuredJsonFactory
errorUnmarshallers
- Response unmarshallers to unamrshall the error responses.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.