org.jboss.identity.federation.bindings.util
Class HTTPRedirectUtil

java.lang.Object
  extended by 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

Constructor Summary
HTTPRedirectUtil()
           
 
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
 

Constructor Detail

HTTPRedirectUtil

public HTTPRedirectUtil()
Method Detail

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 redirect
response - 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.