Package org.craftercms.security.utils
Class RedirectUtils
- java.lang.Object
-
- org.craftercms.security.utils.RedirectUtils
-
public class RedirectUtils extends Object
Utility class for redirection.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description RedirectUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
redirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
Redirects to the specified URL.
-
-
-
Method Detail
-
redirect
public static void redirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url) throws IOException
Redirects to the specified URL. If the URL starts with '/', the request context path is added.- Parameters:
request
- the requestresponse
- the responseurl
- the URL to redirect to- Throws:
IOException
-
-