Class JacksonXContent

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.XContent

    public class JacksonXContent
    extends Object
    implements org.elasticsearch.common.xcontent.XContent
    • Constructor Summary

      Constructors 
      Constructor Description
      JacksonXContent()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.elasticsearch.common.xcontent.XContentGenerator createGenerator​(OutputStream os, Set<String> includes, Set<String> excludes)  
      org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler, byte[] data)  
      org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler, byte[] data, int offset, int length)  
      org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler, InputStream is)  
      org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler, Reader reader)  
      org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler, String content)  
      byte streamSeparator()  
      static com.fasterxml.jackson.databind.JsonNode toJsonNode​(org.elasticsearch.common.xcontent.ToXContent toXContent)  
      static com.fasterxml.jackson.databind.JsonNode toJsonNode​(org.elasticsearch.common.xcontent.ToXContent toXContent, org.elasticsearch.common.xcontent.ToXContent.Params params)  
      org.elasticsearch.common.xcontent.XContentType type()  
      • Methods inherited from interface org.elasticsearch.common.xcontent.XContent

        createGenerator
    • Constructor Detail

      • JacksonXContent

        public JacksonXContent()
    • Method Detail

      • toJsonNode

        public static com.fasterxml.jackson.databind.JsonNode toJsonNode​(org.elasticsearch.common.xcontent.ToXContent toXContent)
                                                                  throws IOException
        Throws:
        IOException
      • toJsonNode

        public static com.fasterxml.jackson.databind.JsonNode toJsonNode​(org.elasticsearch.common.xcontent.ToXContent toXContent,
                                                                         org.elasticsearch.common.xcontent.ToXContent.Params params)
                                                                  throws IOException
        Throws:
        IOException
      • type

        public org.elasticsearch.common.xcontent.XContentType type()
        Specified by:
        type in interface org.elasticsearch.common.xcontent.XContent
      • streamSeparator

        public byte streamSeparator()
        Specified by:
        streamSeparator in interface org.elasticsearch.common.xcontent.XContent
      • createGenerator

        public org.elasticsearch.common.xcontent.XContentGenerator createGenerator​(OutputStream os,
                                                                                   Set<String> includes,
                                                                                   Set<String> excludes)
                                                                            throws IOException
        Specified by:
        createGenerator in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException
      • createParser

        public org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                             org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler,
                                                                             String content)
                                                                      throws IOException
        Specified by:
        createParser in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException
      • createParser

        public org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                             org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler,
                                                                             InputStream is)
                                                                      throws IOException
        Specified by:
        createParser in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException
      • createParser

        public org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                             org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler,
                                                                             byte[] data)
                                                                      throws IOException
        Specified by:
        createParser in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException
      • createParser

        public org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                             org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler,
                                                                             byte[] data,
                                                                             int offset,
                                                                             int length)
                                                                      throws IOException
        Specified by:
        createParser in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException
      • createParser

        public org.elasticsearch.common.xcontent.XContentParser createParser​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                             org.elasticsearch.common.xcontent.DeprecationHandler deprecationHandler,
                                                                             Reader reader)
                                                                      throws IOException
        Specified by:
        createParser in interface org.elasticsearch.common.xcontent.XContent
        Throws:
        IOException