public final class ServletFilterUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isInternalRedirect(javax.servlet.http.HttpServletRequest request)
Returns
true 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.
|
public static boolean isInternalRedirect(javax.servlet.http.HttpServletRequest request)
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.
public static void markAsInternalRedirect(javax.servlet.http.HttpServletRequest request)
public static void unmarkAsInternalRedirect(javax.servlet.http.HttpServletRequest request)