org.jboss.identity.federation.bindings.util
Class HTTPRedirectUtil
java.lang.Object
org.jboss.identity.federation.bindings.util.HTTPRedirectUtil
public class HTTPRedirectUtil
- extends java.lang.Object
Utility Class for http/redirect
- Since:
- Dec 15, 2008
- Author:
- Anil.Saldhana@redhat.com
|
Method Summary |
static void |
sendRedirectForRequestor(java.lang.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(java.lang.String destination,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPRedirectUtil
public HTTPRedirectUtil()
sendRedirectForRequestor
public static void sendRedirectForRequestor(java.lang.String destination,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- 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
- Parameters:
destination - Destination URI where the response needs to redirectresponse - HttpServletResponse
- Throws:
java.io.IOException
sendRedirectForResponder
public static void sendRedirectForResponder(java.lang.String destination,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException- See Also:
sendRedirectForRequestor(String, HttpServletResponse)
Copyright © 2009 JBoss Inc.. All Rights Reserved.