クラス ProtobufJsonFormatHttpMessageConverter
java.lang.ObjectSE
org.springframework.http.converter.AbstractHttpMessageConverter<com.google.protobuf.Message>
org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
org.springframework.http.converter.protobuf.ProtobufJsonFormatHttpMessageConverter
- 実装されているすべてのインターフェース:
- HttpMessageConverter<com.google.protobuf.Message>
JSON 処理に Protobuf 3 およびその公式ライブラリ 
"com.google.protobuf:protobuf-java-util" の使用を強制する ProtobufHttpMessageConverter のサブクラス。 最も重要なこととして、このクラスは、JsonFormat ユーティリティを介してカスタム JSON パーサーおよびプリンター構成を可能にします。特別なパーサーまたはプリンター構成が指定されていない場合は、代わりにデフォルトのバリアントが使用されます。
Protobuf 3.x および "com.google.protobuf:protobuf-java-util" 3.x が必要です。3.3 以上を推奨します。
- 導入:
- 5.0
- 作成者:
- Juergen Hoeller, Sebastien Deleuze
- 関連事項:
- JsonFormat.parser()
- JsonFormat.printer()
- ProtobufJsonFormatHttpMessageConverter(com.google.protobuf.util.JsonFormat.Parser, com.google.protobuf.util.JsonFormat.Printer)
 
- フィールドのサマリー- クラス org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter から継承されたフィールド- DEFAULT_CHARSET, PROTOBUF, X_PROTOBUF_MESSAGE_HEADER, X_PROTOBUF_SCHEMA_HEADER- クラス org.springframework.http.converter.AbstractHttpMessageConverter から継承されたフィールド- logger
- コンストラクターの概要コンストラクターコンストラクター説明- JsonFormat.Parser、- JsonFormat.Printer、- ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。- ProtobufJsonFormatHttpMessageConverter- (com.google.protobuf.util.JsonFormat.Parser parser, com.google.protobuf.util.JsonFormat.Printer printer) - JsonFormat.Parser、- JsonFormat.Printerの特定のインスタンス、- ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。- ProtobufJsonFormatHttpMessageConverter- (com.google.protobuf.util.JsonFormat.Parser parser, com.google.protobuf.util.JsonFormat.Printer printer, com.google.protobuf.ExtensionRegistry extensionRegistry) - JsonFormat.Parser、- JsonFormat.Printer、- ExtensionRegistryの特定のインスタンスを持つコンストラクター。
- メソッドのサマリー- クラス org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter から継承されたメソッド- canWrite, getDefaultContentType, readInternal, supports, supportsRepeatableWrites, writeInternal- クラス org.springframework.http.converter.AbstractHttpMessageConverter から継承されたメソッド- addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write- クラス java.lang.ObjectSE から継承されたメソッド- clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE- インターフェース org.springframework.http.converter.HttpMessageConverter から継承されたメソッド- getSupportedMediaTypes
- コンストラクターの詳細- ProtobufJsonFormatHttpMessageConverterpublic ProtobufJsonFormatHttpMessageConverter()- JsonFormat.Parser、- JsonFormat.Printer、- ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。
- ProtobufJsonFormatHttpMessageConverterpublic ProtobufJsonFormatHttpMessageConverter- (@Nullable com.google.protobuf.util.JsonFormat.Parser parser, @Nullable com.google.protobuf.util.JsonFormat.Printer printer) - JsonFormat.Parser、- JsonFormat.Printerの特定のインスタンス、- ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。
- ProtobufJsonFormatHttpMessageConverterpublic ProtobufJsonFormatHttpMessageConverter- (@Nullable com.google.protobuf.util.JsonFormat.Parser parser, @Nullable com.google.protobuf.util.JsonFormat.Printer printer, @Nullable com.google.protobuf.ExtensionRegistry extensionRegistry) - JsonFormat.Parser、- JsonFormat.Printer、- ExtensionRegistryの特定のインスタンスを持つコンストラクター。