public interface SdkStructuredJsonFactory
SdkStructuredPlainJsonFactory
and SdkStructuredCborFactory
Modifier and Type | Method and Description |
---|---|
JsonErrorResponseHandler |
createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers,
String customErrorCodeFieldName)
Returns the error response handler for handling a error response.
|
<T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successfull response.
|
StructuredJsonGenerator |
createWriter(String contentType)
Returns the
StructuredJsonGenerator to be used for marshalling the request. |
StructuredJsonGenerator createWriter(String contentType)
StructuredJsonGenerator
to be used for marshalling the request.contentType
- Content type to send for requests.<T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the
appropriate response handler.JsonErrorResponseHandler createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)
errorUnmarshallers
- Response unmarshallers to unamrshall the error responses.Copyright © 2018. All rights reserved.