public class HTTPRedirectUtil extends Object
Constructor and Description |
---|
HTTPRedirectUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
sendRedirectForRequestor(String destination,
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,
HttpServletResponse response) |
public static void sendRedirectForRequestor(String destination, HttpServletResponse response) throws IOException
destination
- Destination URI where the response needs to redirectresponse
- HttpServletResponseIOException
public static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException
IOException
sendRedirectForRequestor(String, HttpServletResponse)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.