public class RpcV2CborMarshallerContext extends Object
RpcV2CborMarshaller
.Modifier and Type | Class and Description |
---|---|
static class |
RpcV2CborMarshallerContext.Builder
Builder for a
RpcV2CborMarshallerContext . |
Modifier and Type | Method and Description |
---|---|
static RpcV2CborMarshallerContext.Builder |
builder() |
EmptyBodyRpcV2CborMarshaller |
emptyBodyRpcV2CborMarshaller() |
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() |
StructuredRpcV2CborGenerator |
rpcv2cborGenerator() |
public StructuredRpcV2CborGenerator rpcv2cborGenerator()
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 EmptyBodyRpcV2CborMarshaller emptyBodyRpcV2CborMarshaller()
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 RpcV2CborMarshallerContext.Builder builder()
RpcV2CborMarshallerContext
.