Class AwsQueryProtocolFactory
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.AwsQueryProtocolFactory
-
- Direct Known Subclasses:
AwsEc2ProtocolFactory
public class AwsQueryProtocolFactory extends Object
Protocol factory for the AWS/Query protocol.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsQueryProtocolFactory.Builder<SubclassT extends AwsQueryProtocolFactory.Builder>
Builder forAwsQueryProtocolFactory
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsQueryProtocolFactory.Builder
builder()
HttpResponseHandler<AwsServiceException>
createErrorResponseHandler()
ProtocolMarshaller<SdkHttpFullRequest>
createProtocolMarshaller(OperationInfo operationInfo)
Creates a new marshaller for the given request.<T extends AwsResponse>
HttpResponseHandler<T>createResponseHandler(Supplier<SdkPojo> pojoSupplier)
Creates the success response handler to unmarshall the response into a POJO.
-
-
-
Method Detail
-
createProtocolMarshaller
public final ProtocolMarshaller<SdkHttpFullRequest> createProtocolMarshaller(OperationInfo operationInfo)
Creates a new marshaller for the given request.- Parameters:
operationInfo
- Object containing metadata about the operation.- Returns:
- New
ProtocolMarshaller
.
-
createResponseHandler
public final <T extends AwsResponse> HttpResponseHandler<T> createResponseHandler(Supplier<SdkPojo> pojoSupplier)
Creates the success response handler to unmarshall the response into a POJO.- Type Parameters:
T
- Type being unmarshalled.- Parameters:
pojoSupplier
- Supplier of the POJO builder we are unmarshalling into.- Returns:
- New
HttpResponseHandler
for success responses.
-
createErrorResponseHandler
public final HttpResponseHandler<AwsServiceException> createErrorResponseHandler()
- Returns:
- A
HttpResponseHandler
that will unmarshall the service exceptional response into a modeled exception or the service base exception.
-
builder
public static AwsQueryProtocolFactory.Builder builder()
- Returns:
- New Builder instance.
-
-