类 JsonProtoModule

  • 所有已实现的接口:
    com.fasterxml.jackson.core.Versioned, Serializable

    public class JsonProtoModule
    extends com.fasterxml.jackson.databind.module.SimpleModule
    JsonProtoModule can be registered into an ObjectMapper to enable the serialization and deserialization of ProtoBuf objects from/to JSON.

    Right now this module only provides (de)serialization for the Any ProtoBuf type, as this is the only ProtoBuf object which we're currently exposing through the REST API.

    另请参阅:
    序列化表格
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      protected class  JsonProtoModule.AnyDeserializer
      AnyDeserializer converts the custom JSON representation of an Any value into its original form.
      protected class  JsonProtoModule.AnySerializer
      AnySerializer converts a ProtoBuf Any object into its JSON representation.
      • 从类继承的嵌套类/接口 com.fasterxml.jackson.databind.Module

        com.fasterxml.jackson.databind.Module.SetupContext
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static String NAME  
      • 从类继承的字段 com.fasterxml.jackson.databind.module.SimpleModule

        _abstractTypes, _deserializerModifier, _deserializers, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version
    • 方法概要

      • 从类继承的方法 com.fasterxml.jackson.databind.module.SimpleModule

        addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, version
    • 构造器详细资料

      • JsonProtoModule

        public JsonProtoModule()