Class SimpleNHttpRequestHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void handle​(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, NHttpResponseTrigger trigger, org.apache.http.protocol.HttpContext context)
      Deprecated.
      Initiates processing of the request.
      abstract void handle​(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleNHttpRequestHandler

        public SimpleNHttpRequestHandler()
        Deprecated.
    • Method Detail

      • handle

        public final void handle​(org.apache.http.HttpRequest request,
                                 org.apache.http.HttpResponse response,
                                 NHttpResponseTrigger trigger,
                                 org.apache.http.protocol.HttpContext context)
                          throws org.apache.http.HttpException,
                                 java.io.IOException
        Deprecated.
        Description copied from interface: NHttpRequestHandler
        Initiates processing of the request. This method does not have to submit a response immediately. It can defer transmission of the HTTP response back to the client without blocking the I/O thread by delegating the process of handling the HTTP request to a worker thread. The worker thread in its turn can use the instance of NHttpResponseTrigger passed as a parameter to submit a response as at a later point of time once content of the response becomes available.
        Specified by:
        handle in interface NHttpRequestHandler
        Parameters:
        request - the HTTP request.
        response - the HTTP response.
        trigger - the response trigger.
        context - the HTTP execution context.
        Throws:
        org.apache.http.HttpException - in case of HTTP protocol violation or a processing problem.
        java.io.IOException - in case of an I/O error.
      • handle

        public abstract void handle​(org.apache.http.HttpRequest request,
                                    org.apache.http.HttpResponse response,
                                    org.apache.http.protocol.HttpContext context)
                             throws org.apache.http.HttpException,
                                    java.io.IOException
        Deprecated.
        Throws:
        org.apache.http.HttpException
        java.io.IOException