Class ServletFilterUtil


  • public final class ServletFilterUtil
    extends Object
    Utility for Servlet Filters.
    • Method Detail

      • isInternalRedirect

        public static boolean isInternalRedirect​(javax.servlet.http.HttpServletRequest request)
        Returns true if the response for this request is a request dispatcher redirect. That is, the request is kept inside the servlet container. This has nothing to do with HTTP 3xx status messages.

        Filters can act upon this to not perform their logic in this case.

      • markAsInternalRedirect

        public static void markAsInternalRedirect​(javax.servlet.http.HttpServletRequest request)
        Mark the request as having a response with a redirect.
      • unmarkAsInternalRedirect

        public static void unmarkAsInternalRedirect​(javax.servlet.http.HttpServletRequest request)
        Remove the mark (if any) that the request is a redirect.