public class SdkJsonProtocolFactory extends Object
SdkJsonGenerator or SdkCborGenerator depending on the
 wire protocol to be used for communicating with the AWS service.| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_CONTENT_TYPEDeprecated.  | 
| static com.fasterxml.jackson.core.JsonFactory | DEFAULT_FACTORYDeprecated.  | 
| static Map<Class<?>,com.amazonaws.transform.Unmarshaller<?,com.amazonaws.transform.JsonUnmarshallerContext>> | DEFAULT_SCALAR_UNMARSHALLERSDeprecated.  | 
| Constructor and Description | 
|---|
| SdkJsonProtocolFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static JsonErrorResponseHandlerV2 | createErrorResponseHandler(List<com.amazonaws.transform.JsonErrorUnmarshallerV2> errorUnmarshallers,
                          boolean supportsCbor)Returns the error response handler for handling a error response. | 
| static JsonResponseHandler | createResponseHandler(com.amazonaws.transform.Unmarshaller<?,com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller,
                     boolean supportsCbor)Returns the response handler to be used for handling a successfull response. | 
| static StructuredJsonGenerator | createWriter(boolean supportsCbor,
            String protocolVersion)Returns the  SdkJsonGeneratorto be used for marshalling the request. | 
@Deprecated public static final com.fasterxml.jackson.core.JsonFactory DEFAULT_FACTORY
@Deprecated public static final String DEFAULT_CONTENT_TYPE
@Deprecated public static final Map<Class<?>,com.amazonaws.transform.Unmarshaller<?,com.amazonaws.transform.JsonUnmarshallerContext>> DEFAULT_SCALAR_UNMARSHALLERS
public static StructuredJsonGenerator createWriter(boolean supportsCbor, String protocolVersion)
SdkJsonGenerator to be used for marshalling the request.supportsCbor - true if cbor protocol is used; false otherwiseprotocolVersion - AWS JSON/CBOR protocol version.public static JsonResponseHandler createResponseHandler(com.amazonaws.transform.Unmarshaller<?,com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller, boolean supportsCbor)
responseUnmarshaller - response unmarshaller to unmarshall the specific response
                             object.supportsCbor - true if cbor protocol is used; false otherwisepublic static JsonErrorResponseHandlerV2 createErrorResponseHandler(List<com.amazonaws.transform.JsonErrorUnmarshallerV2> errorUnmarshallers, boolean supportsCbor)
errorUnmarshallers - response unmarshallers to unamrshall the error responses.supportsCbor - true if cbor protocol is used; false otherwiseCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.