public abstract class BaseSdkStructuredJsonFactory extends Object implements SdkStructuredJsonFactory
| Modifier and Type | Method and Description |
|---|---|
SdkJsonErrorResponseHandler |
createErrorResponseHandler(List<SdkJsonErrorUnmarshaller> errorUnmarshallers)
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)
StructuredJsonFactoryStructuredJsonGenerator to be used for marshalling the request.createWriter in interface StructuredJsonFactorycontentType - Content type to send for requests.public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
StructuredJsonFactorycreateResponseHandler in interface StructuredJsonFactoryoperationMetadata - Additional context information about an operation to create the
appropriate response handler.public SdkJsonErrorResponseHandler createErrorResponseHandler(List<SdkJsonErrorUnmarshaller> errorUnmarshallers)
SdkStructuredJsonFactorycreateErrorResponseHandler in interface SdkStructuredJsonFactoryerrorUnmarshallers - Response unmarshallers to unamrshall the error responses.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.