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

另请参见:
序列化表格

字段摘要
 int code
           
 java.lang.String url
           
 
构造方法摘要
Redirect(java.lang.String url)
           
Redirect(java.lang.String url, boolean permanent)
           
Redirect(java.lang.String url, int code)
           
 
方法摘要
 void apply(Http.Request request, Http.Response response)
           
 
从类 play.mvc.results.Result 继承的方法
getEncoding, setContentTypeIfNotSet
 
从类 play.utils.FastRuntimeException 继承的方法
fillInStackTrace
 
从类 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