クラス 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
- 関連事項:
ネストされたクラスの要約
クラス ProtobufHttpMessageConverter から継承されたネストクラス / インターフェース
ProtobufHttpMessageConverter.ProtobufFormatDelegateフィールドのサマリー
クラス ProtobufHttpMessageConverter から継承されたフィールド
DEFAULT_CHARSET, PLUS_PROTOBUF, PROTOBUF, X_PROTOBUF_MESSAGE_HEADER, X_PROTOBUF_SCHEMA_HEADERクラス AbstractHttpMessageConverter から継承されたフィールド
loggerコンストラクターの概要
コンストラクターコンストラクター説明JsonFormat.Parser、JsonFormat.Printer、ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。ProtobufJsonFormatHttpMessageConverter(@Nullable com.google.protobuf.util.JsonFormat.Parser parser, @Nullable com.google.protobuf.util.JsonFormat.Printer printer) JsonFormat.Parser、JsonFormat.Printerの特定のインスタンス、ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。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の特定のインスタンスを持つコンストラクター。方法の概要
クラス ProtobufHttpMessageConverter から継承されたメソッド
canWrite, getDefaultContentType, readInternal, supports, supportsRepeatableWrites, writeInternalクラス AbstractHttpMessageConverter から継承されたメソッド
addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, writeクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース HttpMessageConverter から継承されたメソッド
getSupportedMediaTypes
コンストラクターの詳細
ProtobufJsonFormatHttpMessageConverter
public ProtobufJsonFormatHttpMessageConverter()JsonFormat.Parser、JsonFormat.Printer、ExtensionRegistryのデフォルトインスタンスを持つコンストラクター。ProtobufJsonFormatHttpMessageConverter
ProtobufJsonFormatHttpMessageConverter
public 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の特定のインスタンスを持つコンストラクター。