Class RequestEncodingHandler

  • All Implemented Interfaces:
    HttpHandler

    public class RequestEncodingHandler
    extends java.lang.Object
    implements HttpHandler
    Handler that serves as the basis for request content encoding.

    This is not part of the HTTP spec, however there are some applications where it is useful.

    It behaves in a similar manner to EncodingHandler, however it deals with the requests content encoding.

    Author:
    Stuart Douglas
    • Constructor Detail

      • RequestEncodingHandler

        public RequestEncodingHandler​(HttpHandler next)
    • Method Detail

      • handleRequest

        public void handleRequest​(HttpServerExchange exchange)
                           throws java.lang.Exception
        Description copied from interface: HttpHandler
        Handle the request.
        Specified by:
        handleRequest in interface HttpHandler
        Parameters:
        exchange - the HTTP request/response exchange
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object