T
- Type of the original request object.public class JsonProtocolMarshallerBuilder<T> extends Object
ProtocolMarshaller
for JSON based services.Constructor and Description |
---|
JsonProtocolMarshallerBuilder() |
Modifier and Type | Method and Description |
---|---|
ProtocolRequestMarshaller<T> |
build() |
JsonProtocolMarshallerBuilder<T> |
contentType(String contentType) |
JsonProtocolMarshallerBuilder<T> |
jsonGenerator(StructuredJsonGenerator jsonGenerator) |
<MarshallT> |
marshallerOverride(MarshallLocation marshallLocation,
MarshallingType<MarshallT> marshallingType,
StructuredJsonMarshaller<MarshallT> marshaller)
Registers an override for the marshaller registry.
|
JsonProtocolMarshallerBuilder<T> |
operationInfo(OperationInfo operationInfo) |
JsonProtocolMarshallerBuilder<T> |
originalRequest(T originalRequest) |
JsonProtocolMarshallerBuilder<T> |
sendExplicitNullForPayload(boolean sendExplicitNullForPayload) |
static <T> JsonProtocolMarshallerBuilder<T> |
standard() |
public static <T> JsonProtocolMarshallerBuilder<T> standard()
public JsonProtocolMarshallerBuilder<T> jsonGenerator(StructuredJsonGenerator jsonGenerator)
public JsonProtocolMarshallerBuilder<T> contentType(String contentType)
public JsonProtocolMarshallerBuilder<T> operationInfo(OperationInfo operationInfo)
public JsonProtocolMarshallerBuilder<T> sendExplicitNullForPayload(boolean sendExplicitNullForPayload)
sendExplicitNullForPayload
- True if an explicit JSON null should be sent as the body when the
payload member is null. See NullAsEmptyBodyProtocolRequestMarshaller
.public JsonProtocolMarshallerBuilder<T> originalRequest(T originalRequest)
public <MarshallT> JsonProtocolMarshallerBuilder<T> marshallerOverride(MarshallLocation marshallLocation, MarshallingType<MarshallT> marshallingType, StructuredJsonMarshaller<MarshallT> marshaller)
MarshallT
- Type of thing being marshalled.marshallLocation
- Location to override marshaller for.marshallingType
- Type to override marshaller for.marshaller
- Marshaller to use for the given location and type.public ProtocolRequestMarshaller<T> build()
Copyright © 2019. All rights reserved.