Package com.amazonaws.protocol.json
Class SdkJsonProtocolFactory
java.lang.Object
com.amazonaws.protocol.json.SdkJsonProtocolFactory
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorResponseHandler
(JsonErrorResponseMetadata errorResponsMetadata) Returns the error response handler for handling a error response.Returns theSdkJsonGenerator
to be used for marshalling the request.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 Details
-
SdkJsonProtocolFactory
-
-
Method Details
-
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.
-