public class JsonMarshallerContext extends Object
JsonMarshaller.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonMarshallerContext.Builder
Builder for a
JsonMarshallerContext. |
| Modifier and Type | Method and Description |
|---|---|
static JsonMarshallerContext.Builder |
builder () |
EmptyBodyJsonMarshaller |
emptyBodyJsonMarshaller () |
StructuredJsonGenerator |
jsonGenerator () |
void |
marshall (MarshallLocation marshallLocation,
Object val)
Convenience method to marshall a nested object (may be simple or structured) at the given location.
|
void |
marshall (MarshallLocation marshallLocation,
Object val,
MarshallingInfo marshallingInfo)
Convenience method to marshall a nested object (may be simple or structured) at the given location.
|
void |
marshall (MarshallLocation marshallLocation,
Object val,
String paramName) |
MarshallerRegistry |
marshallerRegistry () |
ProtocolMarshaller |
protocolHandler () |
Request<?> |
request () |
public StructuredJsonGenerator jsonGenerator()
public ProtocolMarshaller protocolHandler()
ProtocolMarshaller that can be used to call back out to marshall structured data (i.e.
lists of objects).public MarshallerRegistry marshallerRegistry()
public Request<?> request()
Request object that can be used to add headers, query params, modify request URI, etc.public EmptyBodyJsonMarshaller emptyBodyJsonMarshaller()
public void marshall(MarshallLocation marshallLocation, Object val)
marshallLocation - Current MarshallLocation val - Value to marshall.public void marshall(MarshallLocation marshallLocation, Object val, MarshallingInfo marshallingInfo)
marshallLocation - Current MarshallLocation val - Value to marshall.marshallingInfo - Name of parameter to marshall.public void marshall(MarshallLocation marshallLocation, Object val, String paramName)
public static JsonMarshallerContext.Builder builder()
JsonMarshallerContext.