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 - HttpServletResponseIOExceptionpublic static void sendRedirectForResponder(String destination, HttpServletResponse response) throws IOException
IOExceptionsendRedirectForRequestor(String, HttpServletResponse)Copyright © 2018 JBoss by Red Hat. All rights reserved.