object Results extends Results with LegacyI18nSupport
- Alphabetic
- By Inheritance
- Results
- LegacyI18nSupport
- Results
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
ResultWithLang extends AnyRef
Adds convenient methods to handle the client-side language.
Adds convenient methods to handle the client-side language.
This class exists only for backward compatibility.
- Definition Classes
- LegacyI18nSupport
-
case class
EmptyContent() extends Product with Serializable
Empty result, i.e.
Empty result, i.e. nothing to send.
-
class
Status extends Result
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Accepted: Status
Generates a ‘202 ACCEPTED’ result.
Generates a ‘202 ACCEPTED’ result.
- Definition Classes
- Results
-
val
BadGateway: Status
Generates a ‘502 BAD_GATEWAY’ result.
Generates a ‘502 BAD_GATEWAY’ result.
- Definition Classes
- Results
-
val
BadRequest: Status
Generates a ‘400 BAD_REQUEST’ result.
Generates a ‘400 BAD_REQUEST’ result.
- Definition Classes
- Results
-
val
Conflict: Status
Generates a ‘409 CONFLICT’ result.
Generates a ‘409 CONFLICT’ result.
- Definition Classes
- Results
-
val
Continue: Result
Generates a ‘100 Continue’ result.
Generates a ‘100 Continue’ result.
- Definition Classes
- Results
-
val
Created: Status
Generates a ‘201 CREATED’ result.
Generates a ‘201 CREATED’ result.
- Definition Classes
- Results
-
val
EntityTooLarge: Status
Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.
Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.
- Definition Classes
- Results
-
val
ExpectationFailed: Status
Generates a ‘417 EXPECTATION_FAILED’ result.
Generates a ‘417 EXPECTATION_FAILED’ result.
- Definition Classes
- Results
-
val
FailedDependency: Status
Generates a ‘424 FAILED_DEPENDENCY’ result.
Generates a ‘424 FAILED_DEPENDENCY’ result.
- Definition Classes
- Results
-
val
Forbidden: Status
Generates a ‘403 FORBIDDEN’ result.
Generates a ‘403 FORBIDDEN’ result.
- Definition Classes
- Results
-
def
Found(url: String): Result
Generates a ‘302 FOUND’ simple result.
-
val
GatewayTimeout: Status
Generates a ‘504 GATEWAY_TIMEOUT’ result.
Generates a ‘504 GATEWAY_TIMEOUT’ result.
- Definition Classes
- Results
-
val
Gone: Status
Generates a ‘410 GONE’ result.
Generates a ‘410 GONE’ result.
- Definition Classes
- Results
-
val
HttpVersionNotSupported: Status
Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.
Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.
- Definition Classes
- Results
-
val
ImATeapot: Status
Generates a ‘418 IM_A_TEAPOT’ result.
Generates a ‘418 IM_A_TEAPOT’ result.
- Definition Classes
- Results
-
val
InsufficientStorage: Status
Generates a ‘507 INSUFFICIENT_STORAGE’ result.
Generates a ‘507 INSUFFICIENT_STORAGE’ result.
- Definition Classes
- Results
-
val
InternalServerError: Status
Generates a ‘500 INTERNAL_SERVER_ERROR’ result.
Generates a ‘500 INTERNAL_SERVER_ERROR’ result.
- Definition Classes
- Results
-
val
Locked: Status
Generates a ‘423 LOCKED’ result.
Generates a ‘423 LOCKED’ result.
- Definition Classes
- Results
-
val
MethodNotAllowed: Status
Generates a ‘405 METHOD_NOT_ALLOWED’ result.
Generates a ‘405 METHOD_NOT_ALLOWED’ result.
- Definition Classes
- Results
-
def
MovedPermanently(url: String): Result
Generates a ‘301 MOVED_PERMANENTLY’ simple result.
Generates a ‘301 MOVED_PERMANENTLY’ simple result.
- url
the URL to redirect to
- Definition Classes
- Results
-
val
MultiStatus: Status
Generates a ‘207 MULTI_STATUS’ result.
Generates a ‘207 MULTI_STATUS’ result.
- Definition Classes
- Results
-
val
NetworkAuthenticationRequired: Status
Generates a ‘511 NETWORK_AUTHENTICATION_REQUIRED’ result.
Generates a ‘511 NETWORK_AUTHENTICATION_REQUIRED’ result.
- Definition Classes
- Results
-
val
NoContent: Result
Generates a ‘204 NO_CONTENT’ result.
Generates a ‘204 NO_CONTENT’ result.
- Definition Classes
- Results
-
val
NonAuthoritativeInformation: Status
Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.
Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.
- Definition Classes
- Results
-
val
NotAcceptable: Status
Generates a ‘406 NOT_ACCEPTABLE’ result.
Generates a ‘406 NOT_ACCEPTABLE’ result.
- Definition Classes
- Results
-
val
NotFound: Status
Generates a ‘404 NOT_FOUND’ result.
Generates a ‘404 NOT_FOUND’ result.
- Definition Classes
- Results
-
val
NotImplemented: Status
Generates a ‘501 NOT_IMPLEMENTED’ result.
Generates a ‘501 NOT_IMPLEMENTED’ result.
- Definition Classes
- Results
-
val
NotModified: Result
Generates a ‘304 NOT_MODIFIED’ result.
Generates a ‘304 NOT_MODIFIED’ result.
- Definition Classes
- Results
-
val
Ok: Status
Generates a ‘200 OK’ result.
Generates a ‘200 OK’ result.
- Definition Classes
- Results
-
val
PartialContent: Status
Generates a ‘206 PARTIAL_CONTENT’ result.
Generates a ‘206 PARTIAL_CONTENT’ result.
- Definition Classes
- Results
-
val
PaymentRequired: Status
Generates a ‘402 PAYMENT_REQUIRED’ result.
Generates a ‘402 PAYMENT_REQUIRED’ result.
- Definition Classes
- Results
-
def
PermanentRedirect(url: String): Result
Generates a ‘308 PERMANENT_REDIRECT’ simple result.
Generates a ‘308 PERMANENT_REDIRECT’ simple result.
- url
the URL to redirect to
- Definition Classes
- Results
-
val
PreconditionFailed: Status
Generates a ‘412 PRECONDITION_FAILED’ result.
Generates a ‘412 PRECONDITION_FAILED’ result.
- Definition Classes
- Results
-
val
PreconditionRequired: Status
Generates a ‘428 PRECONDITION_REQUIRED’ result.
Generates a ‘428 PRECONDITION_REQUIRED’ result.
- Definition Classes
- Results
-
def
Redirect(call: Call, status: Int): Result
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
-
def
Redirect(call: Call): Result
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
-
def
Redirect(url: String, queryString: Map[String, Seq[String]] = Map.empty, status: Int = SEE_OTHER): Result
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
-
def
Redirect(url: String, status: Int): Result
Generates a redirect simple result.
Generates a redirect simple result.
- url
the URL to redirect to
- status
HTTP status
- Definition Classes
- Results
-
val
RequestHeaderFieldsTooLarge: Status
Generates a ‘431 REQUEST_HEADER_FIELDS_TOO_LARGE’ result.
Generates a ‘431 REQUEST_HEADER_FIELDS_TOO_LARGE’ result.
- Definition Classes
- Results
-
val
RequestTimeout: Status
Generates a ‘408 REQUEST_TIMEOUT’ result.
Generates a ‘408 REQUEST_TIMEOUT’ result.
- Definition Classes
- Results
-
val
ResetContent: Result
Generates a ‘205 RESET_CONTENT’ result.
Generates a ‘205 RESET_CONTENT’ result.
- Definition Classes
- Results
-
def
SeeOther(url: String): Result
Generates a ‘303 SEE_OTHER’ simple result.
-
val
ServiceUnavailable: Status
Generates a ‘503 SERVICE_UNAVAILABLE’ result.
Generates a ‘503 SERVICE_UNAVAILABLE’ result.
- Definition Classes
- Results
-
def
Status(code: Int): Status
Generates a simple result.
-
val
SwitchingProtocols: Result
Generates a ‘101 Switching Protocols’ result.
Generates a ‘101 Switching Protocols’ result.
- Definition Classes
- Results
-
def
TemporaryRedirect(url: String): Result
Generates a ‘307 TEMPORARY_REDIRECT’ simple result.
Generates a ‘307 TEMPORARY_REDIRECT’ simple result.
- url
the URL to redirect to
- Definition Classes
- Results
-
val
TooManyRequests: Status
Generates a ‘429 TOO_MANY_REQUESTS’ result.
Generates a ‘429 TOO_MANY_REQUESTS’ result.
- Definition Classes
- Results
-
val
Unauthorized: Status
Generates a ‘401 UNAUTHORIZED’ result.
Generates a ‘401 UNAUTHORIZED’ result.
- Definition Classes
- Results
-
val
UnprocessableEntity: Status
Generates a ‘422 UNPROCESSABLE_ENTITY’ result.
Generates a ‘422 UNPROCESSABLE_ENTITY’ result.
- Definition Classes
- Results
-
val
UnsupportedMediaType: Status
Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.
Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.
- Definition Classes
- Results
-
val
UriTooLong: Status
Generates a ‘414 REQUEST_URI_TOO_LONG’ result.
Generates a ‘414 REQUEST_URI_TOO_LONG’ result.
- Definition Classes
- Results
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentDispositionHeader(inline: Boolean, name: Option[String]): Map[String, String]
Creates a
Content-Disposition
header.
According to RFC 6266 (Section 4.2) there is no need to send the header"Content-Disposition: inline"
.Creates a
Content-Disposition
header.
According to RFC 6266 (Section 4.2) there is no need to send the header"Content-Disposition: inline"
. Therefore if the header generated by this method ends up being exactly that header (when passinginline = true
andNone
asname
), an empty Map ist returned.- inline
If the content should be rendered inline or as attachment.
- name
The name of the resource, usually displayed in a file download dialog.
- returns
a map with a
Content-Disposition
header entry or an empty map if explained conditions apply.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()