@ThreadSafe public class SdkJsonProtocolFactory extends Object implements SdkJsonMarshallerFactory
Constructor and Description |
---|
SdkJsonProtocolFactory(JsonClientMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
StructuredJsonGenerator |
createGenerator()
Returns the
SdkJsonGenerator to be used for marshalling the request. |
<T> HttpResponseHandler<AmazonWebServiceResponse<T>> |
createResponseHandler(JsonOperationMetadata operationMetadata,
com.amazonaws.transform.Unmarshaller<T,com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
String |
getContentType() |
public SdkJsonProtocolFactory(JsonClientMetadata metadata)
public StructuredJsonGenerator createGenerator()
SdkJsonMarshallerFactory
SdkJsonGenerator
to be used for marshalling the request.createGenerator
in interface SdkJsonMarshallerFactory
public String getContentType()
getContentType
in interface SdkJsonMarshallerFactory
public <T> HttpResponseHandler<AmazonWebServiceResponse<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 HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Copyright © 2017. All rights reserved.