play.api.mvc

Results

trait Results extends AnyRef

Helper utilities to generate results.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Results
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Status extends SimpleResult[EmptyContent]

    Generates default SimpleResult from a content type, headers and content.

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val Accepted : Status

    Generates a ‘202 ACCEPTED’ result.

  7. def Async (promise: Promise[Result]): AsyncResult

  8. val BadRequest : Status

    Generates a ‘400 BAD_REQUEST’ result.

  9. val Conflict : Status

    Generates a ‘409 CONFLICT’ result.

  10. val Created : Status

    Generates a ‘201 CREATED’ result.

  11. val EntityTooLarge : Status

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

  12. val ExpectationFailed : Status

    Generates a ‘417 EXPECTATION_FAILED’ result.

  13. val Forbidden : Status

    Generates a ‘403 FORBIDDEN’ result.

  14. def Found (url: String): SimpleResult[EmptyContent]

    Generates a ‘302 FOUND’ simple result.

    Generates a ‘302 FOUND’ simple result.

    url

    the URL to redirect to

  15. val Gone : Status

    Generates a ‘410 GONE’ result.

  16. val InternalServerError : Status

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

  17. val MethodNotAllowed : Status

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

  18. def MovedPermanently (url: String): SimpleResult[EmptyContent]

    Generates a ‘301 MOVED_PERMANENTLY’ simple result.

    Generates a ‘301 MOVED_PERMANENTLY’ simple result.

    url

    the URL to redirect to

  19. val NoContent : SimpleResult[EmptyContent]

    Generates a ‘204 NO_CONTENT’ result.

  20. val NonAuthoritativeInformation : Status

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

  21. val NotAcceptable : Status

    Generates a ‘406 NOT_ACCEPTABLE’ result.

  22. val NotFound : Status

    Generates a ‘404 NOT_FOUND’ result.

  23. val NotImplemented : Status

    Generates a ‘501 NOT_IMPLEMENTED’ result.

  24. val NotModified : SimpleResult[EmptyContent]

    Generates a ‘304 NOT_MODIFIED’ result.

  25. val Ok : Status

    Generates a ‘200 OK’ result.

  26. val PartialContent : Status

    Generates a ‘206 PARTIAL_CONTENT’ result.

  27. val PreconditionFailed : Status

    Generates a ‘412 PRECONDITION_FAILED’ result.

  28. def Redirect (call: Call): SimpleResult[EmptyContent]

    Generates a redirect simple result.

    Generates a redirect simple result.

    call

    Call defining the URL to redirect to, which typically comes from the reverse router

  29. def Redirect (url: String, queryString: Map[String, Seq[String]] = Map.empty, status: Int = SEE_OTHER): SimpleResult[EmptyContent]

    Generates a redirect simple result.

    Generates a redirect simple result.

    url

    the URL to redirect to

    queryString

    queryString parameters to add to the queryString

    status

    HTTP status

  30. def Redirect (url: String, status: Int): SimpleResult[EmptyContent]

    Generates a redirect simple result.

    Generates a redirect simple result.

    url

    the URL to redirect to

    status

    HTTP status

  31. val RequestTimeout : Status

    Generates a ‘408 REQUEST_TIMEOUT’ result.

  32. val ResetContent : SimpleResult[EmptyContent]

    Generates a ‘205 RESET_CONTENT’ result.

  33. def SeeOther (url: String): SimpleResult[EmptyContent]

    Generates a ‘303 SEE_OTHER’ simple result.

    Generates a ‘303 SEE_OTHER’ simple result.

    url

    the URL to redirect to

  34. val ServiceUnavailable : Status

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

  35. def Status (code: Int): Status

    Generates a simple result.

    Generates a simple result.

    code

    the status code

  36. def TemporaryRedirect (url: String): SimpleResult[EmptyContent]

    Generates a ‘307 TEMPORARY_REDIRECT’ simple result.

    Generates a ‘307 TEMPORARY_REDIRECT’ simple result.

    url

    the URL to redirect to

  37. val TooManyRequest : Status

    Generates a ‘429 TOO_MANY_REQUEST’ result.

  38. val Unauthorized : Status

    Generates a ‘401 UNAUTHORIZED’ result.

  39. val UnsupportedMediaType : Status

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

  40. val UriTooLong : Status

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

  41. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  42. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  44. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  45. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  46. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  47. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  48. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  49. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  50. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  51. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  52. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  53. def toString (): String

    Definition Classes
    AnyRef → Any
  54. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  55. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  56. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any