@ThreadSafe public class SdkJsonProtocolFactory extends Object implements SdkJsonMarshallerFactory
Constructor and Description |
---|
SdkJsonProtocolFactory(JsonClientMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
StructuredJsonGenerator |
createGenerator()
Returns the
SdkJsonGenerator to be used for marshalling the request. |
<T> ProtocolRequestMarshaller<T> |
createProtocolMarshaller(OperationInfo operationInfo,
T origRequest) |
<T> HttpResponseHandler<AmazonWebServiceResponse<T>> |
createResponseHandler(JsonOperationMetadata operationMetadata,
com.ibm.cloud.objectstorage.transform.Unmarshaller<T,com.ibm.cloud.objectstorage.transform.JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
String |
getContentType() |
public SdkJsonProtocolFactory(JsonClientMetadata metadata)
public StructuredJsonGenerator createGenerator()
SdkJsonMarshallerFactory
SdkJsonGenerator
to be used for marshalling the request.createGenerator
in interface SdkJsonMarshallerFactory
public String getContentType()
getContentType
in interface SdkJsonMarshallerFactory
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest)
public <T> HttpResponseHandler<AmazonWebServiceResponse<T>> createResponseHandler(JsonOperationMetadata operationMetadata, com.ibm.cloud.objectstorage.transform.Unmarshaller<T,com.ibm.cloud.objectstorage.transform.JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the appropriate response handler.public HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponsMetadata)
Copyright © 2024. All rights reserved.