play.mvc.results
Class Result

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by play.mvc.results.Result
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadRequest, Error, Forbidden, NoResult, NotFound, NotModified, Ok, Redirect, RedirectToStatic, RenderBinary, RenderHtml, RenderJson, RenderStatic, RenderTemplate, RenderText, RenderXml, Status, Unauthorized

public abstract class Result
extends java.lang.RuntimeException

Result support

See Also:
Serialized Form

Constructor Summary
Result()
           
Result(java.lang.String description)
           
 
Method Summary
abstract  void apply(Http.Request request, Http.Response response)
           
protected  void setContentTypeIfNotSet(Http.Response response, java.lang.String contentType)
           
 
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
 

Constructor Detail

Result

public Result()

Result

public Result(java.lang.String description)
Method Detail

apply

public abstract void apply(Http.Request request,
                           Http.Response response)

setContentTypeIfNotSet

protected void setContentTypeIfNotSet(Http.Response response,
                                      java.lang.String contentType)


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