Class ServletFilterUtil
- java.lang.Object
-
- org.hawaiiframework.logging.web.filter.ServletFilterUtil
-
public final class ServletFilterUtil extends Object
Utility for Servlet Filters.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isInternalRedirect(javax.servlet.http.HttpServletRequest request)
Returnstrue
if the response for this request is a request dispatcher redirect.static void
markAsInternalRedirect(javax.servlet.http.HttpServletRequest request)
Mark the request as having a response with a redirect.static void
unmarkAsInternalRedirect(javax.servlet.http.HttpServletRequest request)
Remove the mark (if any) that the request is a redirect.
-
-
-
Method Detail
-
isInternalRedirect
public static boolean isInternalRedirect(javax.servlet.http.HttpServletRequest request)
Returnstrue
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.
-
-