public class HTTPRedirectUtil extends Object
| Constructor and Description |
|---|
HTTPRedirectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendRedirectForRequestor(String destination,
javax.servlet.http.HttpServletResponse response)
Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding
headers
for cache-control and Pragma
|
static void |
sendRedirectForResponder(String destination,
javax.servlet.http.HttpServletResponse response) |
public static void sendRedirectForRequestor(String destination, javax.servlet.http.HttpServletResponse response) throws IOException
destination - Destination URI where the response needs to redirectresponse - HttpServletResponseIOExceptionpublic static void sendRedirectForResponder(String destination, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionsendRedirectForRequestor(String, HttpServletResponse)Copyright © 2014 JBoss Inc.. All Rights Reserved.