Class FilterRestHandler

java.lang.Object
org.elasticsearch.rest.FilterRestHandler
All Implemented Interfaces:
RestHandler
Direct Known Subclasses:
DeprecationRestHandler

public abstract class FilterRestHandler extends Object implements RestHandler
  • Constructor Details

    • FilterRestHandler

      protected FilterRestHandler(RestHandler delegate)
  • Method Details

    • getDelegate

      protected RestHandler getDelegate()
    • getConcreteRestHandler

      public RestHandler getConcreteRestHandler()
      Description copied from interface: RestHandler
      Returns the concrete RestHandler for this RestHandler. That is, if this is a delegating RestHandler it returns the delegate. Otherwise it returns itself.
      Specified by:
      getConcreteRestHandler in interface RestHandler
      Returns:
      The underlying RestHandler
    • routes

      public List<RestHandler.Route> routes()
      Description copied from interface: RestHandler
      The list of RestHandler.Routes that this RestHandler is responsible for handling.
      Specified by:
      routes in interface RestHandler
    • allowSystemIndexAccessByDefault

      public boolean allowSystemIndexAccessByDefault()
      Description copied from interface: RestHandler
      Controls whether requests handled by this class are allowed to to access system indices by default.
      Specified by:
      allowSystemIndexAccessByDefault in interface RestHandler
      Returns:
      true if requests handled by this class should be allowed to access system indices.
    • canTripCircuitBreaker

      public boolean canTripCircuitBreaker()
      Specified by:
      canTripCircuitBreaker in interface RestHandler
    • supportsBulkContent

      public boolean supportsBulkContent()
      Description copied from interface: RestHandler
      Indicates if the RestHandler supports bulk content. A bulk request contains multiple objects delineated by XContent.bulkSeparator(). If a handler returns true this will affect the types of content that can be sent to this endpoint.
      Specified by:
      supportsBulkContent in interface RestHandler
    • mediaTypesValid

      public boolean mediaTypesValid(RestRequest request)
      Specified by:
      mediaTypesValid in interface RestHandler