play.mvc.results
Class Redirect

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by play.mvc.results.Result
                  extended by play.mvc.results.Redirect
All Implemented Interfaces:
java.io.Serializable

public class Redirect
extends Result

302 Redirect

See Also:
Serialized Form

Field Summary
 int code
           
 
Constructor Summary
Redirect(java.lang.String url)
           
Redirect(java.lang.String url, boolean permanent)
           
Redirect(java.lang.String url, int code)
           
 
Method Summary
 void apply(Http.Request request, Http.Response response)
           
 
Methods inherited from class play.mvc.results.Result
setContentTypeIfNotSet
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code

public int code
Constructor Detail

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)
Method Detail

apply

public void apply(Http.Request request,
                  Http.Response response)
Specified by:
apply in class Result


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly