RequestT
- The type of the requestExceptionT
- the type of the exception@ThreadSafe public abstract class BaseJsonProtocolFactory<RequestT extends SdkRequest,ExceptionT extends SdkServiceException> extends Object
Modifier and Type | Field and Description |
---|---|
protected JsonClientMetadata |
jsonClientMetadata |
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).
|
protected abstract StructuredJsonGenerator |
createGenerator(OperationInfo operationInfo) |
<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.
|
protected abstract String |
getContentType() |
protected boolean |
isCborEnabled() |
protected boolean |
isIonBinaryEnabled() |
protected boolean |
isIonEnabled() |
protected final JsonClientMetadata jsonClientMetadata
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.protected abstract String getContentType()
protected abstract StructuredJsonGenerator createGenerator(OperationInfo operationInfo)
protected final boolean isCborEnabled()
protected final boolean isIonEnabled()
protected final boolean isIonBinaryEnabled()
Copyright © 2018. All rights reserved.