public final class ApiGatewayProtocolFactoryImpl extends Object
Constructor | Description |
---|---|
ApiGatewayProtocolFactoryImpl(JsonClientMetadata metadata) |
Modifier and Type | Method | Description |
---|---|---|
HttpResponseHandler<SdkBaseException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata) |
Creates a response handler for handling a error response (non 2xx response).
|
<T> ProtocolRequestMarshaller<T> |
createProtocolMarshaller(OperationInfo operationInfo,
T origRequest) |
|
<T extends BaseResult> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller) |
Creates a response handler to be used for handling a successful response.
|
String |
getContentType() |
public ApiGatewayProtocolFactoryImpl(JsonClientMetadata metadata)
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest)
public String getContentType()
public <T extends BaseResult> HttpResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the appropriate response handler.public HttpResponseHandler<SdkBaseException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.