RequestT
- The type of the requestExceptionT
- the type of the exception@ThreadSafe public abstract class BaseJsonProtocolFactory<RequestT extends SdkRequest,ExceptionT extends SdkServiceException> extends Object
Constructor and Description |
---|
BaseJsonProtocolFactory(JsonClientMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
abstract HttpResponseHandler<ExceptionT> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
<T extends RequestT> |
createProtocolMarshaller(OperationInfo operationInfo,
T origRequest) |
abstract <T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
public BaseJsonProtocolFactory(JsonClientMetadata metadata)
public <T extends RequestT> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest)
public abstract HttpResponseHandler<ExceptionT> createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
public abstract <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the appropriate response handler.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.