Class ValidatingDispatcher

  • All Implemented Interfaces:
    org.elasticsearch.http.HttpServerTransport.Dispatcher

    public class ValidatingDispatcher
    extends Object
    implements org.elasticsearch.http.HttpServerTransport.Dispatcher
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidatingDispatcher​(org.elasticsearch.common.util.concurrent.ThreadContext threadContext, org.elasticsearch.http.HttpServerTransport.Dispatcher originalDispatcher, org.elasticsearch.common.settings.Settings settings, Path configPath, SslExceptionHandler errorHandler)  
    • Constructor Detail

      • ValidatingDispatcher

        public ValidatingDispatcher​(org.elasticsearch.common.util.concurrent.ThreadContext threadContext,
                                    org.elasticsearch.http.HttpServerTransport.Dispatcher originalDispatcher,
                                    org.elasticsearch.common.settings.Settings settings,
                                    Path configPath,
                                    SslExceptionHandler errorHandler)
    • Method Detail

      • dispatchRequest

        public void dispatchRequest​(org.elasticsearch.rest.RestRequest request,
                                    org.elasticsearch.rest.RestChannel channel,
                                    org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
        Specified by:
        dispatchRequest in interface org.elasticsearch.http.HttpServerTransport.Dispatcher
      • dispatchBadRequest

        public void dispatchBadRequest​(org.elasticsearch.rest.RestChannel channel,
                                       org.elasticsearch.common.util.concurrent.ThreadContext threadContext,
                                       Throwable cause)
        Specified by:
        dispatchBadRequest in interface org.elasticsearch.http.HttpServerTransport.Dispatcher
      • checkRequest

        protected void checkRequest​(org.elasticsearch.rest.RestRequest request,
                                    org.elasticsearch.rest.RestChannel channel)