public class Redirect extends Result
Constructor and Description |
---|
Redirect(java.lang.String url) |
Redirect(java.lang.String url,
boolean permanent) |
Redirect(java.lang.String url,
int code) |
Redirect(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters)
Redirects to a given URL with the parameters specified in a
Map |
Modifier and Type | Method and Description |
---|---|
void |
apply(Http.Request request,
Http.Response response) |
int |
getCode() |
java.lang.String |
getUrl() |
getEncoding, setContentTypeIfNotSet
fillInStackTrace
public Redirect(java.lang.String url)
public Redirect(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters)
Map
url
- The URL to redirect to as a String
parameters
- Parameters to be included at the end of the URL as a HTTP GET. This is a map whose entries are written out as key1=value1&key2=value2 etc..public Redirect(java.lang.String url, boolean permanent)
public Redirect(java.lang.String url, int code)
public void apply(Http.Request request, Http.Response response)
public java.lang.String getUrl()
public int getCode()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly