Spring Security Framework

org.springframework.security.util
Class RedirectUtils

java.lang.Object
  extended by org.springframework.security.util.RedirectUtils

public abstract class RedirectUtils
extends Object

Version:
$Id$
Author:
Luke Taylor

Method Summary
static void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url, boolean useRelativeContext)
          Encapsulates the redirect logic used in classes like AbstractProcessingFilter and LogoutFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendRedirect

public static final void sendRedirect(HttpServletRequest request,
                                      HttpServletResponse response,
                                      String url,
                                      boolean useRelativeContext)
                               throws IOException
Encapsulates the redirect logic used in classes like AbstractProcessingFilter and LogoutFilter.

Parameters:
request - the incoming request
response - the response to redirect
url - the target url to redirect to
useRelativeContext - if true, causes any redirection URLs to be calculated minus the protocol and context path.
Throws:
IOException
See Also:
AbstractProcessingFilter.setUseRelativeContext(boolean)

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.