Class XmlProtocolUnmarshaller
java.lang.Object
software.amazon.awssdk.protocols.xml.internal.unmarshall.XmlProtocolUnmarshaller
- All Implemented Interfaces:
XmlErrorUnmarshaller
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlProtocolUnmarshaller
create()
<TypeT extends SdkPojo>
TypeTunmarshall
(SdkPojo sdkPojo, SdkHttpFullResponse response) <TypeT extends SdkPojo>
TypeTunmarshall
(SdkPojo sdkPojo, XmlElement resultRoot, SdkHttpFullResponse response) This method is also used to unmarshall exceptions.
-
Field Details
-
INSTANT_STRING_TO_VALUE
-
-
Method Details
-
create
-
unmarshall
-
unmarshall
public <TypeT extends SdkPojo> TypeT unmarshall(SdkPojo sdkPojo, XmlElement resultRoot, SdkHttpFullResponse response) This method is also used to unmarshall exceptions. We use this since we've already parsed the XML and the result root is in a different location depending on the protocol/service.- Specified by:
unmarshall
in interfaceXmlErrorUnmarshaller
- Type Parameters:
TypeT
- Type being unmarshalled.- Parameters:
sdkPojo
- Builder for exception class to unmarshall.resultRoot
- Parsed XML document of response.response
- HTTP response.- Returns:
- Unmarshalled exception
-