Class AwsXmlProtocolFactory
java.lang.Object
software.amazon.awssdk.protocols.xml.AwsXmlProtocolFactory
- Direct Known Subclasses:
AwsS3ProtocolFactory
Factory to generate the various protocol handlers and generators to be used for
communicating with REST/XML services.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final OperationMetadataAttribute
<String> Some services like Route53 specifies the location for the request shape.static final OperationMetadataAttribute
<String> Attribute for configuring the XML namespace to include in the xmlns attribute of the root element. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
<T extends AwsResponse>
HttpResponseHandler<Response<T>> createCombinedResponseHandler
(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) createProtocolMarshaller
(OperationInfo operationInfo) Creates an instance ofXmlProtocolMarshaller
to be used for marshalling the request.<T extends SdkPojo>
HttpResponseHandler<T> createResponseHandler
(Function<SdkHttpFullResponse, SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) <T extends SdkPojo>
HttpResponseHandler<T> createResponseHandler
(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata)
-
Field Details
-
XML_NAMESPACE_ATTRIBUTE
Attribute for configuring the XML namespace to include in the xmlns attribute of the root element. -
ROOT_MARSHALL_LOCATION_ATTRIBUTE
Some services like Route53 specifies the location for the request shape. This should be the root of the generated xml document. Other services Cloudfront, s3 don't specify location param for the request shape. For them, this value will be null.
-
-
Method Details
-
createProtocolMarshaller
Creates an instance ofXmlProtocolMarshaller
to be used for marshalling the request.- Parameters:
operationInfo
- Info required to marshall the request
-
createResponseHandler
public <T extends SdkPojo> HttpResponseHandler<T> createResponseHandler(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) -
createResponseHandler
public <T extends SdkPojo> HttpResponseHandler<T> createResponseHandler(Function<SdkHttpFullResponse, SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) -
createErrorResponseHandler
-
createCombinedResponseHandler
public <T extends AwsResponse> HttpResponseHandler<Response<T>> createCombinedResponseHandler(Supplier<SdkPojo> pojoSupplier, XmlOperationMetadata staxOperationMetadata) -
builder
-