public final class ApiGatewayProtocolFactoryImpl extends Object implements SdkJsonMarshallerFactory
| Constructor and Description |
|---|
ApiGatewayProtocolFactoryImpl(JsonClientMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponseHandler<SdkBaseException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
StructuredJsonGenerator |
createGenerator() |
<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 StructuredJsonGenerator createGenerator()
createGenerator in interface SdkJsonMarshallerFactorypublic String getContentType()
getContentType in interface SdkJsonMarshallerFactorypublic <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest)
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 © 2019. All rights reserved.