src.groovy.org.codehaus.groovy.grails.plugins.springsecurity
Class RedirectUtils

Fixes this redirect bug.

author:
Tsuyoshi Yamamoto

Field Summary
 PortResolver RESOLVER
           
 
Constructor Summary
RedirectUtils()
           
 
Method Summary
static String buildRedirectUrl(HttpServletRequest request, HttpServletResponse response, String url)
           Build a redirect url.
static void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url)
           Send a redirect.
 

Constructor Detail

RedirectUtils

RedirectUtils()


Method Detail

buildRedirectUrl

public static String buildRedirectUrl(HttpServletRequest request, HttpServletResponse response, String url)
Build a redirect url.
param:
request the request
param:
response the response
param:
url the target url to redirect to
return:
the url
throws:
IOException if there's a problem


sendRedirect

public static void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url)
Send a redirect.
param:
request the request
param:
response the response
param:
url the target url to redirect to
throws:
IOException if there's a problem