static class ProtobufHttpMessageConverter.ProtobufJavaFormatSupport extends java.lang.Object implements ProtobufHttpMessageConverter.ProtobufFormatSupport
ProtobufHttpMessageConverter.ProtobufFormatSupport
implementation used when
com.googlecode.protobuf.format.FormatFactory
is available.Modifier and Type | Field and Description |
---|---|
private ProtobufFormatter |
htmlFormatter |
private ProtobufFormatter |
jsonFormatter |
private ProtobufFormatter |
xmlFormatter |
Constructor and Description |
---|
ProtobufJavaFormatSupport() |
Modifier and Type | Method and Description |
---|---|
void |
merge(java.io.InputStream input,
java.nio.charset.Charset charset,
MediaType contentType,
ExtensionRegistry extensionRegistry,
Message.Builder builder) |
void |
print(Message message,
java.io.OutputStream output,
MediaType contentType,
java.nio.charset.Charset charset) |
MediaType[] |
supportedMediaTypes() |
boolean |
supportsWriteOnly(MediaType mediaType) |
private final ProtobufFormatter jsonFormatter
private final ProtobufFormatter xmlFormatter
private final ProtobufFormatter htmlFormatter
public MediaType[] supportedMediaTypes()
supportedMediaTypes
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
public boolean supportsWriteOnly(@Nullable MediaType mediaType)
supportsWriteOnly
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
public void merge(java.io.InputStream input, java.nio.charset.Charset charset, MediaType contentType, ExtensionRegistry extensionRegistry, Message.Builder builder) throws java.io.IOException, HttpMessageConversionException
merge
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException
HttpMessageConversionException
public void print(Message message, java.io.OutputStream output, MediaType contentType, java.nio.charset.Charset charset) throws java.io.IOException, HttpMessageConversionException
print
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException
HttpMessageConversionException