play.api.mvc

Results

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
Learn more about member selection
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. final def !=(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. val Accepted: Status

    Generates a ‘202 ACCEPTED’ result.

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

  8. val BadGateway: Status

    Generates a ‘502 BAD_GATEWAY’ result.

  9. val BadRequest: Status

    Generates a ‘400 BAD_REQUEST’ result.

  10. val Conflict: Status

    Generates a ‘409 CONFLICT’ result.

  11. val Created: Status

    Generates a ‘201 CREATED’ result.

  12. val EntityTooLarge: Status

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

  13. val ExpectationFailed: Status

    Generates a ‘417 EXPECTATION_FAILED’ result.

  14. val FailedDependency: Status

    Generates a ‘424 FAILED_DEPENDENCY’ result.

  15. val Forbidden: Status

    Generates a ‘403 FORBIDDEN’ result.

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

    Generates a ‘302 FOUND’ simple result.

    Generates a ‘302 FOUND’ simple result.

    url

    the URL to redirect to

  17. val GatewayTimeout: Status

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

  18. val Gone: Status

    Generates a ‘410 GONE’ result.

  19. val HttpVersionNotSupported: Status

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

  20. val InsufficientStorage: Status

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

  21. val InternalServerError: Status

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

  22. val Locked: Status

    Generates a ‘423 LOCKED’ result.

  23. val MethodNotAllowed: Status

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

  24. 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

  25. val MultiStatus: Status

    Generates a ‘207 MULTI_STATUS’ result.

  26. val NoContent: SimpleResult[EmptyContent]

    Generates a ‘204 NO_CONTENT’ result.

  27. val NonAuthoritativeInformation: Status

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

  28. val NotAcceptable: Status

    Generates a ‘406 NOT_ACCEPTABLE’ result.

  29. val NotFound: Status

    Generates a ‘404 NOT_FOUND’ result.

  30. val NotImplemented: Status

    Generates a ‘501 NOT_IMPLEMENTED’ result.

  31. val NotModified: SimpleResult[EmptyContent]

    Generates a ‘304 NOT_MODIFIED’ result.

  32. val Ok: Status

    Generates a ‘200 OK’ result.

  33. val PartialContent: Status

    Generates a ‘206 PARTIAL_CONTENT’ result.

  34. val PreconditionFailed: Status

    Generates a ‘412 PRECONDITION_FAILED’ result.

  35. 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

  36. 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

  37. 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

  38. val RequestTimeout: Status

    Generates a ‘408 REQUEST_TIMEOUT’ result.

  39. val ResetContent: SimpleResult[EmptyContent]

    Generates a ‘205 RESET_CONTENT’ result.

  40. 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

  41. val ServiceUnavailable: Status

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

  42. def Status(code: Int): Status

    Generates a simple result.

    Generates a simple result.

    code

    the status code

  43. 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

  44. val TooManyRequest: Status

    Generates a ‘429 TOO_MANY_REQUEST’ result.

  45. val Unauthorized: Status

    Generates a ‘401 UNAUTHORIZED’ result.

  46. val UnprocessableEntity: Status

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

  47. val UnsupportedMediaType: Status

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

  48. val UriTooLong: Status

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

  49. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  50. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  58. final def notify(): Unit

    Definition Classes
    AnyRef
  59. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  61. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped