Class XmlProtocolUnmarshaller
- java.lang.Object
-
- software.amazon.awssdk.protocols.xml.internal.unmarshall.XmlProtocolUnmarshaller
-
- All Implemented Interfaces:
XmlErrorUnmarshaller
public final class XmlProtocolUnmarshaller extends Object implements XmlErrorUnmarshaller
-
-
Field Summary
Fields Modifier and Type Field Description static StringToValueConverter.StringToValue<Instant>INSTANT_STRING_TO_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlProtocolUnmarshallercreate()<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 Detail
-
INSTANT_STRING_TO_VALUE
public static final StringToValueConverter.StringToValue<Instant> INSTANT_STRING_TO_VALUE
-
-
Method Detail
-
create
public static XmlProtocolUnmarshaller create()
-
unmarshall
public <TypeT extends SdkPojo> TypeT unmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response)
-
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:
unmarshallin interfaceXmlErrorUnmarshaller
-
-