public class Redirect extends Object
HttpServletResponse
.
See RFC 2616 for further details.HttpServletResponse.SC_MOVED_PERMANENTLY
,
HttpServletResponse.SC_FOUND
,
HttpServletResponse.SC_SEE_OTHER
,
HttpServletResponse.SC_TEMPORARY_REDIRECT
Modifier and Type | Method and Description |
---|---|
static void |
to(HttpServletResponse response,
Integer statusCode,
String target)
|
static void |
to(HttpServletResponse response,
Integer statusCode,
String origin,
String target)
|
public static void to(HttpServletResponse response, Integer statusCode, String target)
response
- the responsestatusCode
- the HTTP status-codetarget
- the redirect targetpublic static void to(HttpServletResponse response, Integer statusCode, String origin, String target)
response
- the responsestatusCode
- the HTTP status-codeorigin
- the (optional) origin of the request, only used for loggingtarget
- the redirect targetCopyright © 2011–2017 aiticon GmbH. All rights reserved.