Object

play.core.j

JavaResults

Related Doc: package j

Permalink

object JavaResults extends Results with DefaultWriteables with DefaultContentTypeOfs

Java compatible Results

Source
JavaResults.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JavaResults
  2. DefaultContentTypeOfs
  3. DefaultWriteables
  4. LowPriorityWriteables
  5. Results
  6. AnyRef
  7. 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.

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

    Definition Classes
    Results

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.

    Generates a ‘202 ACCEPTED’ result.

    Definition Classes
    Results
  5. val BadGateway: Status

    Permalink

    Generates a ‘502 BAD_GATEWAY’ result.

    Generates a ‘502 BAD_GATEWAY’ result.

    Definition Classes
    Results
  6. val BadRequest: Status

    Permalink

    Generates a ‘400 BAD_REQUEST’ result.

    Generates a ‘400 BAD_REQUEST’ result.

    Definition Classes
    Results
  7. val Conflict: Status

    Permalink

    Generates a ‘409 CONFLICT’ result.

    Generates a ‘409 CONFLICT’ result.

    Definition Classes
    Results
  8. val Created: Status

    Permalink

    Generates a ‘201 CREATED’ result.

    Generates a ‘201 CREATED’ result.

    Definition Classes
    Results
  9. val EntityTooLarge: Status

    Permalink

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

    Definition Classes
    Results
  10. val ExpectationFailed: Status

    Permalink

    Generates a ‘417 EXPECTATION_FAILED’ result.

    Generates a ‘417 EXPECTATION_FAILED’ result.

    Definition Classes
    Results
  11. val FailedDependency: Status

    Permalink

    Generates a ‘424 FAILED_DEPENDENCY’ result.

    Generates a ‘424 FAILED_DEPENDENCY’ result.

    Definition Classes
    Results
  12. val Forbidden: Status

    Permalink

    Generates a ‘403 FORBIDDEN’ result.

    Generates a ‘403 FORBIDDEN’ result.

    Definition Classes
    Results
  13. def Found(url: String): Result

    Permalink

    Generates a ‘302 FOUND’ simple result.

    Generates a ‘302 FOUND’ simple result.

    url

    the URL to redirect to

    Definition Classes
    Results
  14. val GatewayTimeout: Status

    Permalink

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

    Definition Classes
    Results
  15. val Gone: Status

    Permalink

    Generates a ‘410 GONE’ result.

    Generates a ‘410 GONE’ result.

    Definition Classes
    Results
  16. val HttpVersionNotSupported: Status

    Permalink

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

    Definition Classes
    Results
  17. val InsufficientStorage: Status

    Permalink

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

    Definition Classes
    Results
  18. val InternalServerError: Status

    Permalink

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

    Definition Classes
    Results
  19. val Locked: Status

    Permalink

    Generates a ‘423 LOCKED’ result.

    Generates a ‘423 LOCKED’ result.

    Definition Classes
    Results
  20. val MethodNotAllowed: Status

    Permalink

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

    Definition Classes
    Results
  21. 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

    Definition Classes
    Results
  22. val MultiStatus: Status

    Permalink

    Generates a ‘207 MULTI_STATUS’ result.

    Generates a ‘207 MULTI_STATUS’ result.

    Definition Classes
    Results
  23. val NoContent: Result

    Permalink

    Generates a ‘204 NO_CONTENT’ result.

    Generates a ‘204 NO_CONTENT’ result.

    Definition Classes
    Results
  24. val NonAuthoritativeInformation: Status

    Permalink

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

    Definition Classes
    Results
  25. val NotAcceptable: Status

    Permalink

    Generates a ‘406 NOT_ACCEPTABLE’ result.

    Generates a ‘406 NOT_ACCEPTABLE’ result.

    Definition Classes
    Results
  26. val NotFound: Status

    Permalink

    Generates a ‘404 NOT_FOUND’ result.

    Generates a ‘404 NOT_FOUND’ result.

    Definition Classes
    Results
  27. val NotImplemented: Status

    Permalink

    Generates a ‘501 NOT_IMPLEMENTED’ result.

    Generates a ‘501 NOT_IMPLEMENTED’ result.

    Definition Classes
    Results
  28. val NotModified: Result

    Permalink

    Generates a ‘304 NOT_MODIFIED’ result.

    Generates a ‘304 NOT_MODIFIED’ result.

    Definition Classes
    Results
  29. val Ok: Status

    Permalink

    Generates a ‘200 OK’ result.

    Generates a ‘200 OK’ result.

    Definition Classes
    Results
  30. val PartialContent: Status

    Permalink

    Generates a ‘206 PARTIAL_CONTENT’ result.

    Generates a ‘206 PARTIAL_CONTENT’ result.

    Definition Classes
    Results
  31. val PaymentRequired: Status

    Permalink

    Generates a ‘402 PAYMENT_REQUIRED’ result.

    Generates a ‘402 PAYMENT_REQUIRED’ result.

    Definition Classes
    Results
  32. 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

    Definition Classes
    Results
  33. val PreconditionFailed: Status

    Permalink

    Generates a ‘412 PRECONDITION_FAILED’ result.

    Generates a ‘412 PRECONDITION_FAILED’ result.

    Definition Classes
    Results
  34. 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

    Definition Classes
    Results
  35. 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

    Definition Classes
    Results
  36. 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

    Definition Classes
    Results
  37. 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

    Definition Classes
    Results
  38. val RequestTimeout: Status

    Permalink

    Generates a ‘408 REQUEST_TIMEOUT’ result.

    Generates a ‘408 REQUEST_TIMEOUT’ result.

    Definition Classes
    Results
  39. val ResetContent: Result

    Permalink

    Generates a ‘205 RESET_CONTENT’ result.

    Generates a ‘205 RESET_CONTENT’ result.

    Definition Classes
    Results
  40. 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

    Definition Classes
    Results
  41. val ServiceUnavailable: Status

    Permalink

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

    Definition Classes
    Results
  42. def Status(code: Int): Status

    Permalink

    Generates a simple result.

    Generates a simple result.

    code

    the status code

    Definition Classes
    Results
  43. 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

    Definition Classes
    Results
  44. val TooManyRequests: Status

    Permalink

    Generates a ‘429 TOO_MANY_REQUESTS’ result.

    Generates a ‘429 TOO_MANY_REQUESTS’ result.

    Definition Classes
    Results
  45. val Unauthorized: Status

    Permalink

    Generates a ‘401 UNAUTHORIZED’ result.

    Generates a ‘401 UNAUTHORIZED’ result.

    Definition Classes
    Results
  46. val UnprocessableEntity: Status

    Permalink

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

    Definition Classes
    Results
  47. val UnsupportedMediaType: Status

    Permalink

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

    Definition Classes
    Results
  48. val UriTooLong: Status

    Permalink

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

    Definition Classes
    Results
  49. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  50. def chunked(file: Path, chunkSize: Int): Source[ByteString, Any]

    Permalink
  51. def chunked(file: File, chunkSize: Int): Source[ByteString, Any]

    Permalink
  52. def chunked(stream: InputStream, chunkSize: Int): Source[ByteString, _]

    Permalink
  53. def chunked[A](onConnected: Consumer[Channel[A]], onDisconnected: Runnable): Enumerator[A]

    Permalink
  54. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def contentBody(content: Content): String

    Permalink
  56. def contentTypeOfBytes(mimeType: String): ContentTypeOf[ByteString]

    Permalink
  57. implicit def contentTypeOf_ByteArray: ContentTypeOf[Array[Byte]]

    Permalink

    Default content type for byte array (application/application/octet-stream).

    Default content type for byte array (application/application/octet-stream).

    Definition Classes
    DefaultContentTypeOfs
  58. implicit def contentTypeOf_ByteString: ContentTypeOf[ByteString]

    Permalink

    Default content type for byte array (application/application/octet-stream).

    Default content type for byte array (application/application/octet-stream).

    Definition Classes
    DefaultContentTypeOfs
  59. implicit def contentTypeOf_EmptyContent: ContentTypeOf[EmptyContent]

    Permalink

    Default content type for empty responses (no content type).

    Default content type for empty responses (no content type).

    Definition Classes
    DefaultContentTypeOfs
  60. implicit def contentTypeOf_Html(implicit codec: Codec): ContentTypeOf[Html]

    Permalink

    Default content type for Html values (text/html).

    Default content type for Html values (text/html).

    Definition Classes
    DefaultContentTypeOfs
  61. implicit def contentTypeOf_JavaScript(implicit codec: Codec): ContentTypeOf[JavaScript]

    Permalink

    Default content type for JavaScript values.

    Default content type for JavaScript values.

    Definition Classes
    DefaultContentTypeOfs
  62. implicit def contentTypeOf_JsValue(implicit codec: Codec): ContentTypeOf[JsValue]

    Permalink

    Default content type for JsValue values (application/json).

    Default content type for JsValue values (application/json).

    Definition Classes
    DefaultContentTypeOfs
  63. implicit def contentTypeOf_NodeBuffer(implicit codec: Codec): ContentTypeOf[NodeBuffer]

    Permalink

    Default content type for NodeBuffer values (application/xml).

    Default content type for NodeBuffer values (application/xml).

    Definition Classes
    DefaultContentTypeOfs
  64. implicit def contentTypeOf_NodeSeq[C <: NodeSeq](implicit codec: Codec): ContentTypeOf[C]

    Permalink

    Default content type for NodeSeq values (application/xml).

    Default content type for NodeSeq values (application/xml).

    Definition Classes
    DefaultContentTypeOfs
  65. implicit def contentTypeOf_String(implicit codec: Codec): ContentTypeOf[String]

    Permalink

    Default content type for String values (text/plain).

    Default content type for String values (text/plain).

    Definition Classes
    DefaultContentTypeOfs
  66. implicit def contentTypeOf_Txt(implicit codec: Codec): ContentTypeOf[Txt]

    Permalink

    Default content type for Txt values (text/plain).

    Default content type for Txt values (text/plain).

    Definition Classes
    DefaultContentTypeOfs
  67. implicit def contentTypeOf_Xml(implicit codec: Codec): ContentTypeOf[Xml]

    Permalink

    Default content type for Xml values (application/xml).

    Default content type for Xml values (application/xml).

    Definition Classes
    DefaultContentTypeOfs
  68. implicit def contentTypeOf_urlEncodedForm(implicit codec: Codec): ContentTypeOf[Map[String, Seq[String]]]

    Permalink

    Default content type for Map[String, Seq[String]]] values (application/x-www-form-urlencoded).

    Default content type for Map[String, Seq[String]]] values (application/x-www-form-urlencoded).

    Definition Classes
    DefaultContentTypeOfs
  69. def empty: EmptyContent

    Permalink
  70. def emptyHeaders: Map[String, String]

    Permalink
  71. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  80. def sendFile(status: api.mvc.Results.Status, file: File, inline: Boolean, filename: String): Result

    Permalink
  81. def sendPath(status: api.mvc.Results.Status, path: Path, inline: Boolean, filename: String): Result

    Permalink
  82. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  84. implicit val wByteArray: Writeable[Array[Byte]]

    Permalink

    Straightforward Writeable for Array[Byte] values.

    Straightforward Writeable for Array[Byte] values.

    Definition Classes
    DefaultWriteables
  85. implicit val wBytes: Writeable[ByteString]

    Permalink

    Straightforward Writeable for ByteString values.

    Straightforward Writeable for ByteString values.

    Definition Classes
    DefaultWriteables
  86. implicit def wString(implicit codec: Codec): Writeable[String]

    Permalink

    Straightforward Writeable for String values.

    Straightforward Writeable for String values.

    Definition Classes
    DefaultWriteables
  87. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. def writeBytes(contentType: String): Writeable[ByteString]

    Permalink
  91. def writeBytes: Writeable[Array[Byte]]

    Permalink
  92. def writeContent(mimeType: String)(implicit codec: Codec): Writeable[Content]

    Permalink
  93. def writeEmptyContent: Writeable[EmptyContent]

    Permalink
  94. def writeString(implicit codec: Codec): Writeable[String]

    Permalink
  95. def writeString(mimeType: String)(implicit codec: Codec): Writeable[String]

    Permalink
  96. implicit def writeableOf_Content[C <: Content](implicit codec: Codec, ct: ContentTypeOf[C]): Writeable[C]

    Permalink

    Writeable for play.twirl.api.Content values.

    Writeable for play.twirl.api.Content values.

    Definition Classes
    LowPriorityWriteables
  97. implicit val writeableOf_EmptyContent: Writeable[EmptyContent]

    Permalink

    Writeable for empty responses.

    Writeable for empty responses.

    Definition Classes
    DefaultWriteables
  98. implicit def writeableOf_JsValue(implicit codec: Codec): Writeable[JsValue]

    Permalink

    Writeable for JsValue values - Json

    Writeable for JsValue values - Json

    Definition Classes
    DefaultWriteables
  99. implicit def writeableOf_NodeBuffer(implicit codec: Codec): Writeable[NodeBuffer]

    Permalink

    Writeable for NodeBuffer values - literal Scala XML.

    Writeable for NodeBuffer values - literal Scala XML.

    Definition Classes
    DefaultWriteables
  100. implicit def writeableOf_NodeSeq[C <: NodeSeq](implicit codec: Codec): Writeable[C]

    Permalink

    Writeable for NodeSeq values - literal Scala XML.

    Writeable for NodeSeq values - literal Scala XML.

    Definition Classes
    DefaultWriteables
  101. implicit def writeableOf_XmlContent(implicit codec: Codec, ct: ContentTypeOf[Xml]): Writeable[Xml]

    Permalink

    Writeable for play.twirl.api.Xml values.

    Writeable for play.twirl.api.Xml values. Trims surrounding whitespace.

    Definition Classes
    DefaultWriteables
  102. implicit def writeableOf_urlEncodedForm(implicit codec: Codec): Writeable[Map[String, Seq[String]]]

    Permalink

    Writeable for urlEncodedForm values

    Writeable for urlEncodedForm values

    Definition Classes
    DefaultWriteables

Deprecated Value Members

  1. val TooManyRequest: Status

    Permalink

    Generates a ‘429 TOO_MANY_REQUEST’ result.

    Generates a ‘429 TOO_MANY_REQUEST’ result.

    Definition Classes
    Results
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use TooManyRequests instead

Inherited from DefaultContentTypeOfs

Inherited from DefaultWriteables

Inherited from LowPriorityWriteables

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped