Class XmlMarshallerContext
- java.lang.Object
-
- software.amazon.awssdk.protocols.xml.internal.marshall.XmlMarshallerContext
-
public final class XmlMarshallerContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlMarshallerContext.BuilderBuilder for aXmlMarshallerContext.
-
Constructor Summary
Constructors Constructor Description XmlMarshallerContext(XmlMarshallerContext.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlMarshallerContext.Builderbuilder()voidmarshall(MarshallLocation marshallLocation, Object val)Convenience method to marshall a nested object (may be simple or structured) at the given location.<T> voidmarshall(MarshallLocation marshallLocation, T val, String paramName, SdkField<T> sdkField)Convenience method to marshall a nested object (may be simple or structured) at the given location.XmlMarshallerRegistrymarshallerRegistry()XmlProtocolMarshallerprotocolMarshaller()SdkHttpFullRequest.Builderrequest()XmlGeneratorxmlGenerator()
-
-
-
Constructor Detail
-
XmlMarshallerContext
public XmlMarshallerContext(XmlMarshallerContext.Builder builder)
-
-
Method Detail
-
xmlGenerator
public XmlGenerator xmlGenerator()
-
protocolMarshaller
public XmlProtocolMarshaller protocolMarshaller()
-
marshallerRegistry
public XmlMarshallerRegistry marshallerRegistry()
- Returns:
- Marshaller registry to obtain marshaller implementations for nested types (i.e. lists of objects or maps of string to string).
-
request
public SdkHttpFullRequest.Builder request()
- Returns:
- Mutable
SdkHttpFullRequest.Builderobject that can be used to add headers, query params, modify request URI, etc.
-
marshall
public void marshall(MarshallLocation marshallLocation, Object val)
Convenience method to marshall a nested object (may be simple or structured) at the given location.- Parameters:
marshallLocation- CurrentMarshallLocationval- Value to marshall.
-
marshall
public <T> void marshall(MarshallLocation marshallLocation, T val, String paramName, SdkField<T> sdkField)
Convenience method to marshall a nested object (may be simple or structured) at the given location.- Parameters:
marshallLocation- CurrentMarshallLocationval- Value to marshall.paramName- Name of parameter to marshall.sdkField-SdkFieldcontaining metadata about the member being marshalled.
-
builder
public static XmlMarshallerContext.Builder builder()
- Returns:
- Builder instance to construct a
XmlMarshallerContext.
-
-