Class SendErrorPageHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class SendErrorPageHandler
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    A handler that sends the servlet's error page if the status code is greater than 399
    Author:
    Brad Wood
    • Constructor Summary

      Constructors 
      Constructor Description
      SendErrorPageHandler​(io.undertow.server.HttpHandler next)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      • Methods inherited from class java.lang.Object

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

      • SendErrorPageHandler

        public SendErrorPageHandler​(io.undertow.server.HttpHandler next)
        Construct a new instance.
        Parameters:
        next - The next handler to call if there is no error response
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception