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 Details

  • Method Details

    • 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:
      unmarshall in interface XmlErrorUnmarshaller
      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