static class ProtobufHttpMessageConverter.ProtobufJavaFormatSupport extends java.lang.Object implements ProtobufHttpMessageConverter.ProtobufFormatSupport
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
merge
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException
public void print(Message message, java.io.OutputStream output, MediaType contentType, java.nio.charset.Charset charset) throws java.io.IOException
print
in interface ProtobufHttpMessageConverter.ProtobufFormatSupport
java.io.IOException