Class ThriftDataFormat

    • Constructor Detail

      • ThriftDataFormat

        public ThriftDataFormat()
      • ThriftDataFormat

        public ThriftDataFormat​(String instanceClass)
      • ThriftDataFormat

        public ThriftDataFormat​(String instanceClass,
                                String contentTypeFormat)
    • Method Detail

      • getInstanceClass

        public String getInstanceClass()
      • setInstanceClass

        public void setInstanceClass​(String instanceClass)
        Name of class to use when unmarshalling
      • setContentTypeFormat

        public void setContentTypeFormat​(String contentTypeFormat)
        Defines a content type format in which thrift message will be serialized/deserialized from(to) the Java been. The format can either be native or json for either native binary thrift, json or simple json fields representation. The default value is binary.
      • getContentTypeFormat

        public String getContentTypeFormat()
      • getContentTypeHeader

        public String getContentTypeHeader()
        Description copied from interface: ContentTypeHeaderAware
        Whether the data format should set the Content-Type header with the type from the data format.

        For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSON etc.

        Specified by:
        getContentTypeHeader in interface ContentTypeHeaderAware
      • setContentTypeHeader

        public void setContentTypeHeader​(String contentTypeHeader)
        Description copied from interface: ContentTypeHeaderAware
        Whether the data format should set the Content-Type header with the type from the data format.

        For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSON etc.

        Specified by:
        setContentTypeHeader in interface ContentTypeHeaderAware
      • getDefaultInstance

        public Object getDefaultInstance()
      • setDefaultInstance

        public void setDefaultInstance​(Object defaultInstance)