public final class RedirectUtil extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Common point to generate a proper "Location" header for redirects.
public static String toRedirectURL(HttpServletRequest request, String location)
request- the request the redirect should be based on (needed when relative locations are provided, so that server name, scheme, port can be built out properly)
location- the location URL to redirect to (can be a relative path)
Copyright © 1995–2017 Webtide. All rights reserved.