Class QueryProtocolUnmarshaller
- java.lang.Object
-
- software.amazon.awssdk.protocols.query.internal.unmarshall.QueryProtocolUnmarshaller
-
- All Implemented Interfaces:
XmlErrorUnmarshaller
public final class QueryProtocolUnmarshaller extends Object implements XmlErrorUnmarshaller
Unmarshaller implementation for AWS/Query and EC2 services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryProtocolUnmarshaller.Builder
Builder forQueryProtocolUnmarshaller
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryProtocolUnmarshaller.Builder
builder()
<TypeT extends SdkPojo>
Pair<TypeT,Map<String,String>>unmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response)
<TypeT extends SdkPojo>
TypeTunmarshall(SdkPojo sdkPojo, XmlElement resultRoot, SdkHttpFullResponse response)
This method is also used to unmarshall exceptions.
-
-
-
Method Detail
-
unmarshall
public <TypeT extends SdkPojo> Pair<TypeT,Map<String,String>> 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:
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
-
builder
public static QueryProtocolUnmarshaller.Builder builder()
- Returns:
- New
QueryProtocolUnmarshaller.Builder
instance.
-
-