Trait/Object

play.api.mvc

Results

Related Docs: object Results | package mvc

Permalink

trait Results extends AnyRef

Helper utilities to generate results.

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

Type Members

  1. class Status extends Result

    Permalink

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Accepted: Status

    Permalink

    Generates a ‘202 ACCEPTED’ result.

  5. val BadGateway: Status

    Permalink

    Generates a ‘502 BAD_GATEWAY’ result.

  6. val BadRequest: Status

    Permalink

    Generates a ‘400 BAD_REQUEST’ result.

  7. val Conflict: Status

    Permalink

    Generates a ‘409 CONFLICT’ result.

  8. val Continue: Result

    Permalink

    Generates a ‘100 Continue’ result.

  9. val Created: Status

    Permalink

    Generates a ‘201 CREATED’ result.

  10. val EntityTooLarge: Status

    Permalink

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

  11. val ExpectationFailed: Status

    Permalink

    Generates a ‘417 EXPECTATION_FAILED’ result.

  12. val FailedDependency: Status

    Permalink

    Generates a ‘424 FAILED_DEPENDENCY’ result.

  13. val Forbidden: Status

    Permalink

    Generates a ‘403 FORBIDDEN’ result.

  14. def Found(url: String): Result

    Permalink

    Generates a ‘302 FOUND’ simple result.

    Generates a ‘302 FOUND’ simple result.

    url

    the URL to redirect to

  15. val GatewayTimeout: Status

    Permalink

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

  16. val Gone: Status

    Permalink

    Generates a ‘410 GONE’ result.

  17. val HttpVersionNotSupported: Status

    Permalink

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

  18. val ImATeapot: Status

    Permalink

    Generates a ‘418 IM_A_TEAPOT’ result.

  19. val InsufficientStorage: Status

    Permalink

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

  20. val InternalServerError: Status

    Permalink

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

  21. val Locked: Status

    Permalink

    Generates a ‘423 LOCKED’ result.

  22. val MethodNotAllowed: Status

    Permalink

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

  23. def MovedPermanently(url: String): Result

    Permalink

    Generates a ‘301 MOVED_PERMANENTLY’ simple result.

    Generates a ‘301 MOVED_PERMANENTLY’ simple result.

    url

    the URL to redirect to

  24. val MultiStatus: Status

    Permalink

    Generates a ‘207 MULTI_STATUS’ result.

  25. val NoContent: Result

    Permalink

    Generates a ‘204 NO_CONTENT’ result.

  26. val NonAuthoritativeInformation: Status

    Permalink

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

  27. val NotAcceptable: Status

    Permalink

    Generates a ‘406 NOT_ACCEPTABLE’ result.

  28. val NotFound: Status

    Permalink

    Generates a ‘404 NOT_FOUND’ result.

  29. val NotImplemented: Status

    Permalink

    Generates a ‘501 NOT_IMPLEMENTED’ result.

  30. val NotModified: Result

    Permalink

    Generates a ‘304 NOT_MODIFIED’ result.

  31. val Ok: Status

    Permalink

    Generates a ‘200 OK’ result.

  32. val PartialContent: Status

    Permalink

    Generates a ‘206 PARTIAL_CONTENT’ result.

  33. val PaymentRequired: Status

    Permalink

    Generates a ‘402 PAYMENT_REQUIRED’ result.

  34. def PermanentRedirect(url: String): Result

    Permalink

    Generates a ‘308 PERMANENT_REDIRECT’ simple result.

    Generates a ‘308 PERMANENT_REDIRECT’ simple result.

    url

    the URL to redirect to

  35. val PreconditionFailed: Status

    Permalink

    Generates a ‘412 PRECONDITION_FAILED’ result.

  36. def Redirect(call: Call, status: Int): Result

    Permalink

    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

    status

    HTTP status for redirect, such as SEE_OTHER, MOVED_TEMPORARILY or MOVED_PERMANENTLY

  37. def Redirect(call: Call): Result

    Permalink

    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

  38. def Redirect(url: String, queryString: Map[String, Seq[String]] = Map.empty, status: Int = SEE_OTHER): Result

    Permalink

    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 for redirect, such as SEE_OTHER, MOVED_TEMPORARILY or MOVED_PERMANENTLY

  39. def Redirect(url: String, status: Int): Result

    Permalink

    Generates a redirect simple result.

    Generates a redirect simple result.

    url

    the URL to redirect to

    status

    HTTP status

  40. val RequestTimeout: Status

    Permalink

    Generates a ‘408 REQUEST_TIMEOUT’ result.

  41. val ResetContent: Result

    Permalink

    Generates a ‘205 RESET_CONTENT’ result.

  42. def SeeOther(url: String): Result

    Permalink

    Generates a ‘303 SEE_OTHER’ simple result.

    Generates a ‘303 SEE_OTHER’ simple result.

    url

    the URL to redirect to

  43. val ServiceUnavailable: Status

    Permalink

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

  44. def Status(code: Int): Status

    Permalink

    Generates a simple result.

    Generates a simple result.

    code

    the status code

  45. val SwitchingProtocols: Result

    Permalink

    Generates a ‘101 Switching Protocols’ result.

  46. def TemporaryRedirect(url: String): Result

    Permalink

    Generates a ‘307 TEMPORARY_REDIRECT’ simple result.

    Generates a ‘307 TEMPORARY_REDIRECT’ simple result.

    url

    the URL to redirect to

  47. val TooManyRequests: Status

    Permalink

    Generates a ‘429 TOO_MANY_REQUESTS’ result.

  48. val Unauthorized: Status

    Permalink

    Generates a ‘401 UNAUTHORIZED’ result.

  49. val UnprocessableEntity: Status

    Permalink

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

  50. val UnsupportedMediaType: Status

    Permalink

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

  51. val UriTooLong: Status

    Permalink

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

  52. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  53. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  55. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  58. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  59. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. val TooManyRequest: Status

    Permalink

    Generates a ‘429 TOO_MANY_REQUEST’ result.

    Generates a ‘429 TOO_MANY_REQUEST’ result.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Use TooManyRequests instead

Inherited from AnyRef

Inherited from Any

Ungrouped