Package org.craftercms.security.utils
Class RedirectUtils
java.lang.Object
org.craftercms.security.utils.RedirectUtils
Utility class for redirection.
- Author:
- avasquez
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RedirectUtils
public RedirectUtils()
-
-
Method Details
-
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
-