public final class RedirectUtil
extends java.lang.Object
Constructor | Description |
---|---|
RedirectUtil() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
toRedirectURL(javax.servlet.http.HttpServletRequest request,
java.lang.String location) |
Common point to generate a proper "Location" header for redirects.
|
public static java.lang.String toRedirectURL(javax.servlet.http.HttpServletRequest request, java.lang.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–2018 Webtide. All rights reserved.