Class HttpStatusRequestRejectedHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestRejectedException requestRejectedException)
      Handles an request rejected failure.
      • Methods inherited from class java.lang.Object

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

      • HttpStatusRequestRejectedHandler

        public HttpStatusRequestRejectedHandler()
        Constructs an instance which uses 400 as response code.
      • HttpStatusRequestRejectedHandler

        public HttpStatusRequestRejectedHandler​(int httpError)
        Constructs an instance which uses a configurable http code as response.
        httpError - http status code to use
    • Method Detail

      • handle

        public void handle​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           RequestRejectedException requestRejectedException)
        Description copied from interface: RequestRejectedHandler
        Handles an request rejected failure.
        Specified by:
        handle in interface RequestRejectedHandler
        request - that resulted in an RequestRejectedException
        response - so that the user agent can be advised of the failure
        requestRejectedException - that caused the invocation
        Throws: - in the event of an IOException