Package com.amazonaws.protocol.json
Class SdkJsonProtocolFactory
- java.lang.Object
-
- com.amazonaws.protocol.json.SdkJsonProtocolFactory
-
@ThreadSafe public class SdkJsonProtocolFactory extends Object
Factory to generate the various JSON protocol handlers and generators depending on the wire protocol to be used for communicating with the AWS service.
-
-
Constructor Summary
Constructors Constructor Description SdkJsonProtocolFactory(JsonClientMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseHandler<AmazonServiceException>
createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Returns the error response handler for handling a error response.StructuredJsonGenerator
createGenerator()
Returns theSdkJsonGenerator
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 successfull response.
-
-
-
Constructor Detail
-
SdkJsonProtocolFactory
public SdkJsonProtocolFactory(JsonClientMetadata metadata)
-
-
Method Detail
-
createGenerator
public StructuredJsonGenerator createGenerator()
Returns theSdkJsonGenerator
to be used for marshalling the request.
-
createResponseHandler
public <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 successfull response.- Parameters:
operationMetadata
- Additional context information about an operation to create the appropriate response handler.
-
createErrorResponseHandler
public HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Returns the error response handler for handling a error response.
-
-