Class XContentElasticsearchExtension

java.lang.Object
org.elasticsearch.common.xcontent.XContentElasticsearchExtension
All Implemented Interfaces:
org.elasticsearch.common.xcontent.XContentBuilderExtension

public class XContentElasticsearchExtension extends Object implements org.elasticsearch.common.xcontent.XContentBuilderExtension
SPI extensions for Elasticsearch-specific classes (like the Lucene or Joda dependency classes) that need to be encoded by XContentBuilder in a specific way.
  • Field Details

    • DEFAULT_DATE_PRINTER

      public static final org.joda.time.format.DateTimeFormatter DEFAULT_DATE_PRINTER
    • DEFAULT_FORMATTER

      public static final DateFormatter DEFAULT_FORMATTER
    • LOCAL_TIME_FORMATTER

      public static final DateFormatter LOCAL_TIME_FORMATTER
    • OFFSET_TIME_FORMATTER

      public static final DateFormatter OFFSET_TIME_FORMATTER
  • Constructor Details

    • XContentElasticsearchExtension

      public XContentElasticsearchExtension()
  • Method Details

    • getXContentWriters

      public Map<Class<?>,org.elasticsearch.common.xcontent.XContentBuilder.Writer> getXContentWriters()
      Specified by:
      getXContentWriters in interface org.elasticsearch.common.xcontent.XContentBuilderExtension
    • getXContentHumanReadableTransformers

      public Map<Class<?>,org.elasticsearch.common.xcontent.XContentBuilder.HumanReadableTransformer> getXContentHumanReadableTransformers()
      Specified by:
      getXContentHumanReadableTransformers in interface org.elasticsearch.common.xcontent.XContentBuilderExtension
    • getDateTransformers

      public Map<Class<?>,Function<Object,Object>> getDateTransformers()
      Specified by:
      getDateTransformers in interface org.elasticsearch.common.xcontent.XContentBuilderExtension