play.mvc.results
类 Redirect
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
play.utils.FastRuntimeException
play.mvc.results.Result
play.mvc.results.Redirect
- 所有已实现的接口:
- java.io.Serializable
public class Redirect
- extends Result
302 Redirect
- 另请参见:
- 序列化表格
构造方法摘要 |
Redirect(java.lang.String url)
|
Redirect(java.lang.String url,
boolean permanent)
|
Redirect(java.lang.String url,
int code)
|
从类 java.lang.Throwable 继承的方法 |
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
url
public java.lang.String url
code
public int code
Redirect
public Redirect(java.lang.String url)
Redirect
public Redirect(java.lang.String url,
boolean permanent)
Redirect
public Redirect(java.lang.String url,
int code)
apply
public void apply(Http.Request request,
Http.Response response)
- 指定者:
- 类
Result
中的 apply
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly