Packages

c

play.api.mvc

MessagesAbstractController

abstract class MessagesAbstractController extends MessagesBaseController

An abstract controller class that returns a MessagesRequest as the default Action.

An abstract implementation of MessagesBaseController to make it slightly easier to use.

class MyController @Inject()(cc: MessagesControllerComponents) extends MessagesAbstractController(cc) {
  def index = Action { implicit request: MessagesRequest[AnyContent] =>
    Ok(views.html.formTemplate(form)) // twirl template with form builders
  }
}
Source
MessagesRequest.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MessagesAbstractController
  2. MessagesBaseController
  3. BaseControllerHelpers
  4. ControllerHelpers
  5. RequestImplicits
  6. Rendering
  7. RequestExtractors
  8. AcceptExtractors
  9. ContentTypes
  10. HeaderNames
  11. Status
  12. HttpProtocol
  13. Results
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MessagesAbstractController(controllerComponents: MessagesControllerComponents)
    Annotations
    @Inject()

Type Members

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

  1. object Accepts

    Common extractors to check if a request accepts JSON, Html, etc.

    Common extractors to check if a request accepts JSON, Html, etc. Example of use:

    request match {
      case Accepts.Json() => Ok(toJson(value))
      case _ => Ok(views.html.show(value))
    }
    Definition Classes
    AcceptExtractors
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val ACCEPT: String
    Definition Classes
    HeaderNames
  6. val ACCEPTED: Int
    Definition Classes
    Status
  7. val ACCEPT_CHARSET: String
    Definition Classes
    HeaderNames
  8. val ACCEPT_ENCODING: String
    Definition Classes
    HeaderNames
  9. val ACCEPT_LANGUAGE: String
    Definition Classes
    HeaderNames
  10. val ACCEPT_RANGES: String
    Definition Classes
    HeaderNames
  11. val ACCESS_CONTROL_ALLOW_CREDENTIALS: String
    Definition Classes
    HeaderNames
  12. val ACCESS_CONTROL_ALLOW_HEADERS: String
    Definition Classes
    HeaderNames
  13. val ACCESS_CONTROL_ALLOW_METHODS: String
    Definition Classes
    HeaderNames
  14. val ACCESS_CONTROL_ALLOW_ORIGIN: String
    Definition Classes
    HeaderNames
  15. val ACCESS_CONTROL_EXPOSE_HEADERS: String
    Definition Classes
    HeaderNames
  16. val ACCESS_CONTROL_MAX_AGE: String
    Definition Classes
    HeaderNames
  17. val ACCESS_CONTROL_REQUEST_HEADERS: String
    Definition Classes
    HeaderNames
  18. val ACCESS_CONTROL_REQUEST_METHOD: String
    Definition Classes
    HeaderNames
  19. val AGE: String
    Definition Classes
    HeaderNames
  20. val ALLOW: String
    Definition Classes
    HeaderNames
  21. val AUTHORIZATION: String
    Definition Classes
    HeaderNames
  22. val Accepted: Status

    Generates a ‘202 ACCEPTED’ result.

    Generates a ‘202 ACCEPTED’ result.

    Definition Classes
    Results
  23. def Action: ActionBuilder[MessagesRequest, AnyContent]
    Definition Classes
    MessagesBaseController
  24. val BAD_GATEWAY: Int
    Definition Classes
    Status
  25. val BAD_REQUEST: Int
    Definition Classes
    Status
  26. val BINARY: String

    Content-Type of binary data.

    Content-Type of binary data.

    Definition Classes
    ContentTypes
  27. val BadGateway: Status

    Generates a ‘502 BAD_GATEWAY’ result.

    Generates a ‘502 BAD_GATEWAY’ result.

    Definition Classes
    Results
  28. val BadRequest: Status

    Generates a ‘400 BAD_REQUEST’ result.

    Generates a ‘400 BAD_REQUEST’ result.

    Definition Classes
    Results
  29. val CACHE_CONTROL: String
    Definition Classes
    HeaderNames
  30. val CACHE_MANIFEST: String

    Content-Type of application cache.

    Content-Type of application cache.

    Definition Classes
    ContentTypes
  31. val CHUNKED: String
    Definition Classes
    HttpProtocol
  32. val CONFLICT: Int
    Definition Classes
    Status
  33. val CONNECTION: String
    Definition Classes
    HeaderNames
  34. val CONTENT_DISPOSITION: String
    Definition Classes
    HeaderNames
  35. val CONTENT_ENCODING: String
    Definition Classes
    HeaderNames
  36. val CONTENT_LANGUAGE: String
    Definition Classes
    HeaderNames
  37. val CONTENT_LENGTH: String
    Definition Classes
    HeaderNames
  38. val CONTENT_LOCATION: String
    Definition Classes
    HeaderNames
  39. val CONTENT_MD5: String
    Definition Classes
    HeaderNames
  40. val CONTENT_RANGE: String
    Definition Classes
    HeaderNames
  41. val CONTENT_SECURITY_POLICY: String
    Definition Classes
    HeaderNames
  42. val CONTENT_SECURITY_POLICY_REPORT_ONLY: String
    Definition Classes
    HeaderNames
  43. val CONTENT_TRANSFER_ENCODING: String
    Definition Classes
    HeaderNames
  44. val CONTENT_TYPE: String
    Definition Classes
    HeaderNames
  45. val CONTINUE: Int
    Definition Classes
    Status
  46. val COOKIE: String
    Definition Classes
    HeaderNames
  47. val CREATED: Int
    Definition Classes
    Status
  48. def CSS(implicit codec: Codec): String

    Content-Type of css.

    Content-Type of css.

    Definition Classes
    ContentTypes
  49. val Conflict: Status

    Generates a ‘409 CONFLICT’ result.

    Generates a ‘409 CONFLICT’ result.

    Definition Classes
    Results
  50. val Continue: Result

    Generates a ‘100 Continue’ result.

    Generates a ‘100 Continue’ result.

    Definition Classes
    Results
  51. val Created: Status

    Generates a ‘201 CREATED’ result.

    Generates a ‘201 CREATED’ result.

    Definition Classes
    Results
  52. val DATE: String
    Definition Classes
    HeaderNames
  53. val ETAG: String
    Definition Classes
    HeaderNames
  54. def EVENT_STREAM(implicit codec: Codec): String

    Content-Type of server sent events.

    Content-Type of server sent events.

    Definition Classes
    ContentTypes
  55. val EXPECT: String
    Definition Classes
    HeaderNames
  56. val EXPECTATION_FAILED: Int
    Definition Classes
    Status
  57. val EXPIRES: String
    Definition Classes
    HeaderNames
  58. val EntityTooLarge: Status

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

    Generates a ‘413 REQUEST_ENTITY_TOO_LARGE’ result.

    Definition Classes
    Results
  59. val ExpectationFailed: Status

    Generates a ‘417 EXPECTATION_FAILED’ result.

    Generates a ‘417 EXPECTATION_FAILED’ result.

    Definition Classes
    Results
  60. val FAILED_DEPENDENCY: Int
    Definition Classes
    Status
  61. val FORBIDDEN: Int
    Definition Classes
    Status
  62. val FORM: String

    Content-Type of form-urlencoded.

    Content-Type of form-urlencoded. This content type does not define a charset parameter.

    Definition Classes
    ContentTypes
  63. val FORWARDED: String
    Definition Classes
    HeaderNames
  64. val FOUND: Int
    Definition Classes
    Status
  65. val FROM: String
    Definition Classes
    HeaderNames
  66. val FailedDependency: Status

    Generates a ‘424 FAILED_DEPENDENCY’ result.

    Generates a ‘424 FAILED_DEPENDENCY’ result.

    Definition Classes
    Results
  67. val Forbidden: Status

    Generates a ‘403 FORBIDDEN’ result.

    Generates a ‘403 FORBIDDEN’ result.

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

    Generates a ‘302 FOUND’ simple result.

    Generates a ‘302 FOUND’ simple result.

    url

    the URL to redirect to

    Definition Classes
    Results
  69. val GATEWAY_TIMEOUT: Int
    Definition Classes
    Status
  70. val GONE: Int
    Definition Classes
    Status
  71. val GatewayTimeout: Status

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

    Generates a ‘504 GATEWAY_TIMEOUT’ result.

    Definition Classes
    Results
  72. val Gone: Status

    Generates a ‘410 GONE’ result.

    Generates a ‘410 GONE’ result.

    Definition Classes
    Results
  73. val HOST: String
    Definition Classes
    HeaderNames
  74. def HTML(implicit codec: Codec): String

    Content-Type of html.

    Content-Type of html.

    Definition Classes
    ContentTypes
  75. val HTTP_1_0: String
    Definition Classes
    HttpProtocol
  76. val HTTP_1_1: String
    Definition Classes
    HttpProtocol
  77. val HTTP_2_0: String
    Definition Classes
    HttpProtocol
  78. val HTTP_VERSION_NOT_SUPPORTED: Int
    Definition Classes
    Status
  79. val HttpVersionNotSupported: Status

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

    Generates a ‘505 HTTP_VERSION_NOT_SUPPORTED’ result.

    Definition Classes
    Results
  80. val IF_MATCH: String
    Definition Classes
    HeaderNames
  81. val IF_MODIFIED_SINCE: String
    Definition Classes
    HeaderNames
  82. val IF_NONE_MATCH: String
    Definition Classes
    HeaderNames
  83. val IF_RANGE: String
    Definition Classes
    HeaderNames
  84. val IF_UNMODIFIED_SINCE: String
    Definition Classes
    HeaderNames
  85. val IM_A_TEAPOT: Int
    Definition Classes
    Status
  86. val INSUFFICIENT_STORAGE: Int
    Definition Classes
    Status
  87. val INTERNAL_SERVER_ERROR: Int
    Definition Classes
    Status
  88. val ImATeapot: Status

    Generates a ‘418 IM_A_TEAPOT’ result.

    Generates a ‘418 IM_A_TEAPOT’ result.

    Definition Classes
    Results
  89. val InsufficientStorage: Status

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

    Generates a ‘507 INSUFFICIENT_STORAGE’ result.

    Definition Classes
    Results
  90. val InternalServerError: Status

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

    Generates a ‘500 INTERNAL_SERVER_ERROR’ result.

    Definition Classes
    Results
  91. def JAVASCRIPT(implicit codec: Codec): String

    Content-Type of javascript.

    Content-Type of javascript.

    Definition Classes
    ContentTypes
  92. val JSON: String

    Content-Type of json.

    Content-Type of json. This content type does not define a charset parameter.

    Definition Classes
    ContentTypes
  93. val LAST_MODIFIED: String
    Definition Classes
    HeaderNames
  94. val LENGTH_REQUIRED: Int
    Definition Classes
    Status
  95. val LINK: String
    Definition Classes
    HeaderNames
  96. val LOCATION: String
    Definition Classes
    HeaderNames
  97. val LOCKED: Int
    Definition Classes
    Status
  98. val Locked: Status

    Generates a ‘423 LOCKED’ result.

    Generates a ‘423 LOCKED’ result.

    Definition Classes
    Results
  99. val MAX_FORWARDS: String
    Definition Classes
    HeaderNames
  100. val METHOD_NOT_ALLOWED: Int
    Definition Classes
    Status
  101. val MOVED_PERMANENTLY: Int
    Definition Classes
    Status
  102. val MULTIPLE_CHOICES: Int
    Definition Classes
    Status
  103. val MULTI_STATUS: Int
    Definition Classes
    Status
  104. val MethodNotAllowed: Status

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

    Generates a ‘405 METHOD_NOT_ALLOWED’ result.

    Definition Classes
    Results
  105. 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
  106. val MultiStatus: Status

    Generates a ‘207 MULTI_STATUS’ result.

    Generates a ‘207 MULTI_STATUS’ result.

    Definition Classes
    Results
  107. val NETWORK_AUTHENTICATION_REQUIRED: Int
    Definition Classes
    Status
  108. val NON_AUTHORITATIVE_INFORMATION: Int
    Definition Classes
    Status
  109. val NOT_ACCEPTABLE: Int
    Definition Classes
    Status
  110. val NOT_FOUND: Int
    Definition Classes
    Status
  111. val NOT_IMPLEMENTED: Int
    Definition Classes
    Status
  112. val NOT_MODIFIED: Int
    Definition Classes
    Status
  113. val NO_CONTENT: Int
    Definition Classes
    Status
  114. val NetworkAuthenticationRequired: Status

    Generates a ‘511 NETWORK_AUTHENTICATION_REQUIRED’ result.

    Generates a ‘511 NETWORK_AUTHENTICATION_REQUIRED’ result.

    Definition Classes
    Results
  115. val NoContent: Result

    Generates a ‘204 NO_CONTENT’ result.

    Generates a ‘204 NO_CONTENT’ result.

    Definition Classes
    Results
  116. val NonAuthoritativeInformation: Status

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

    Generates a ‘203 NON_AUTHORITATIVE_INFORMATION’ result.

    Definition Classes
    Results
  117. val NotAcceptable: Status

    Generates a ‘406 NOT_ACCEPTABLE’ result.

    Generates a ‘406 NOT_ACCEPTABLE’ result.

    Definition Classes
    Results
  118. val NotFound: Status

    Generates a ‘404 NOT_FOUND’ result.

    Generates a ‘404 NOT_FOUND’ result.

    Definition Classes
    Results
  119. val NotImplemented: Status

    Generates a ‘501 NOT_IMPLEMENTED’ result.

    Generates a ‘501 NOT_IMPLEMENTED’ result.

    Definition Classes
    Results
  120. val NotModified: Result

    Generates a ‘304 NOT_MODIFIED’ result.

    Generates a ‘304 NOT_MODIFIED’ result.

    Definition Classes
    Results
  121. val OK: Int
    Definition Classes
    Status
  122. val ORIGIN: String
    Definition Classes
    HeaderNames
  123. val Ok: Status

    Generates a ‘200 OK’ result.

    Generates a ‘200 OK’ result.

    Definition Classes
    Results
  124. val PARTIAL_CONTENT: Int
    Definition Classes
    Status
  125. val PAYMENT_REQUIRED: Int
    Definition Classes
    Status
  126. val PERMANENT_REDIRECT: Int
    Definition Classes
    Status
  127. val PRAGMA: String
    Definition Classes
    HeaderNames
  128. val PRECONDITION_FAILED: Int
    Definition Classes
    Status
  129. val PRECONDITION_REQUIRED: Int
    Definition Classes
    Status
  130. val PROXY_AUTHENTICATE: String
    Definition Classes
    HeaderNames
  131. val PROXY_AUTHENTICATION_REQUIRED: Int
    Definition Classes
    Status
  132. val PROXY_AUTHORIZATION: String
    Definition Classes
    HeaderNames
  133. val PartialContent: Status

    Generates a ‘206 PARTIAL_CONTENT’ result.

    Generates a ‘206 PARTIAL_CONTENT’ result.

    Definition Classes
    Results
  134. val PaymentRequired: Status

    Generates a ‘402 PAYMENT_REQUIRED’ result.

    Generates a ‘402 PAYMENT_REQUIRED’ result.

    Definition Classes
    Results
  135. 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
  136. val PreconditionFailed: Status

    Generates a ‘412 PRECONDITION_FAILED’ result.

    Generates a ‘412 PRECONDITION_FAILED’ result.

    Definition Classes
    Results
  137. val PreconditionRequired: Status

    Generates a ‘428 PRECONDITION_REQUIRED’ result.

    Generates a ‘428 PRECONDITION_REQUIRED’ result.

    Definition Classes
    Results
  138. val RANGE: String
    Definition Classes
    HeaderNames
  139. val REFERER: String
    Definition Classes
    HeaderNames
  140. val REFERRER_POLICY: String
    Definition Classes
    HeaderNames
  141. val REQUESTED_RANGE_NOT_SATISFIABLE: Int
    Definition Classes
    Status
  142. val REQUEST_ENTITY_TOO_LARGE: Int
    Definition Classes
    Status
  143. val REQUEST_HEADER_FIELDS_TOO_LARGE: Int
    Definition Classes
    Status
  144. val REQUEST_TIMEOUT: Int
    Definition Classes
    Status
  145. val REQUEST_URI_TOO_LONG: Int
    Definition Classes
    Status
  146. val RESET_CONTENT: Int
    Definition Classes
    Status
  147. val RETRY_AFTER: String
    Definition Classes
    HeaderNames
  148. 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
  149. 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
  150. def Redirect(url: String, queryStringParams: 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

    queryStringParams

    queryString parameters to add to the queryString

    status

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

    Definition Classes
    Results
  151. def Redirect(url: String, statusCode: Int): Result

    Generates a redirect simple result.

    Generates a redirect simple result.

    url

    the URL to redirect to

    statusCode

    HTTP status

    Definition Classes
    Results
  152. val RequestHeaderFieldsTooLarge: Status

    Generates a ‘431 REQUEST_HEADER_FIELDS_TOO_LARGE’ result.

    Generates a ‘431 REQUEST_HEADER_FIELDS_TOO_LARGE’ result.

    Definition Classes
    Results
  153. val RequestTimeout: Status

    Generates a ‘408 REQUEST_TIMEOUT’ result.

    Generates a ‘408 REQUEST_TIMEOUT’ result.

    Definition Classes
    Results
  154. val ResetContent: Result

    Generates a ‘205 RESET_CONTENT’ result.

    Generates a ‘205 RESET_CONTENT’ result.

    Definition Classes
    Results
  155. val SEE_OTHER: Int
    Definition Classes
    Status
  156. val SERVER: String
    Definition Classes
    HeaderNames
  157. val SERVICE_UNAVAILABLE: Int
    Definition Classes
    Status
  158. val SET_COOKIE: String
    Definition Classes
    HeaderNames
  159. val SET_COOKIE2: String
    Definition Classes
    HeaderNames
  160. val STRICT_TRANSPORT_SECURITY: String
    Definition Classes
    HeaderNames
  161. val SWITCHING_PROTOCOLS: Int
    Definition Classes
    Status
  162. def SeeOther(url: String): Result

    Generates a ‘303 SEE_OTHER’ simple result.

    Generates a ‘303 SEE_OTHER’ simple result.

    url

    the URL to redirect to

    Definition Classes
    Results
  163. val ServiceUnavailable: Status

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

    Generates a ‘503 SERVICE_UNAVAILABLE’ result.

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

    Generates a simple result.

    Generates a simple result.

    code

    the status code

    Definition Classes
    Results
  165. val SwitchingProtocols: Result

    Generates a ‘101 Switching Protocols’ result.

    Generates a ‘101 Switching Protocols’ result.

    Definition Classes
    Results
  166. val TE: String
    Definition Classes
    HeaderNames
  167. val TEMPORARY_REDIRECT: Int
    Definition Classes
    Status
  168. def TEXT(implicit codec: Codec): String

    Content-Type of text.

    Content-Type of text.

    Definition Classes
    ContentTypes
  169. lazy val TODO: Action[AnyContent]

    Used to mark an action that is still not implemented, e.g.:

    Used to mark an action that is still not implemented, e.g.:

    def action(query: String) = TODO
    Definition Classes
    ControllerHelpers
  170. val TOO_MANY_REQUESTS: Int
    Definition Classes
    Status
  171. val TRAILER: String
    Definition Classes
    HeaderNames
  172. val TRANSFER_ENCODING: String
    Definition Classes
    HeaderNames
  173. 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
  174. val TooManyRequests: Status

    Generates a ‘429 TOO_MANY_REQUESTS’ result.

    Generates a ‘429 TOO_MANY_REQUESTS’ result.

    Definition Classes
    Results
  175. val UNAUTHORIZED: Int
    Definition Classes
    Status
  176. val UNPROCESSABLE_ENTITY: Int
    Definition Classes
    Status
  177. val UNSUPPORTED_MEDIA_TYPE: Int
    Definition Classes
    Status
  178. val UPGRADE: String
    Definition Classes
    HeaderNames
  179. val UPGRADE_REQUIRED: Int
    Definition Classes
    Status
  180. val USER_AGENT: String
    Definition Classes
    HeaderNames
  181. val USE_PROXY: Int
    Definition Classes
    Status
  182. val Unauthorized: Status

    Generates a ‘401 UNAUTHORIZED’ result.

    Generates a ‘401 UNAUTHORIZED’ result.

    Definition Classes
    Results
  183. val UnprocessableEntity: Status

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

    Generates a ‘422 UNPROCESSABLE_ENTITY’ result.

    Definition Classes
    Results
  184. val UnsupportedMediaType: Status

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

    Generates a ‘415 UNSUPPORTED_MEDIA_TYPE’ result.

    Definition Classes
    Results
  185. val UriTooLong: Status

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

    Generates a ‘414 REQUEST_URI_TOO_LONG’ result.

    Definition Classes
    Results
  186. val VARY: String
    Definition Classes
    HeaderNames
  187. val VIA: String
    Definition Classes
    HeaderNames
  188. val WARNING: String
    Definition Classes
    HeaderNames
  189. val WWW_AUTHENTICATE: String
    Definition Classes
    HeaderNames
  190. def XHTML(implicit codec: Codec): String

    Content-Type of xhtml.

    Content-Type of xhtml.

    Definition Classes
    ContentTypes
  191. def XML(implicit codec: Codec): String

    Content-Type of xml.

    Content-Type of xml.

    Definition Classes
    ContentTypes
  192. val X_CONTENT_SECURITY_POLICY_NONCE_HEADER: String
    Definition Classes
    HeaderNames
  193. val X_CONTENT_TYPE_OPTIONS: String
    Definition Classes
    HeaderNames
  194. val X_FORWARDED_FOR: String
    Definition Classes
    HeaderNames
  195. val X_FORWARDED_HOST: String
    Definition Classes
    HeaderNames
  196. val X_FORWARDED_PORT: String
    Definition Classes
    HeaderNames
  197. val X_FORWARDED_PROTO: String
    Definition Classes
    HeaderNames
  198. val X_FRAME_OPTIONS: String
    Definition Classes
    HeaderNames
  199. val X_PERMITTED_CROSS_DOMAIN_POLICIES: String
    Definition Classes
    HeaderNames
  200. val X_REQUESTED_WITH: String
    Definition Classes
    HeaderNames
  201. val X_XSS_PROTECTION: String
    Definition Classes
    HeaderNames
  202. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  203. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  204. val controllerComponents: MessagesControllerComponents

    The components needed to use the controller methods

    The components needed to use the controller methods

    Attributes
    protected
    Definition Classes
    MessagesAbstractControllerMessagesBaseControllerBaseControllerHelpers
  205. def defaultExecutionContext: ExecutionContext

    The default execution context provided by Play.

    The default execution context provided by Play. You should use this for non-blocking code only. You can do so by passing it explicitly, or by defining an implicit in your controller like so:

    implicit lazy val executionContext = defaultExecutionContext
    Definition Classes
    BaseControllerHelpers
  206. implicit lazy val defaultFormBinding: FormBinding
    Definition Classes
    BaseControllerHelpers
  207. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  208. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  209. implicit def fileMimeTypes: FileMimeTypes

    The default FileMimeTypes provided by Play.

    The default FileMimeTypes provided by Play. Used to map between file name extensions and mime types.

    Definition Classes
    BaseControllerHelpers
  210. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  211. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  212. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  213. implicit def messagesApi: MessagesApi

    The MessagesApi provided by Play.

    The MessagesApi provided by Play. This can be used to provide the MessagesApi needed by play.api.i18n.I18nSupport.

    Definition Classes
    BaseControllerHelpers
  214. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  215. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  216. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  217. def parse: PlayBodyParsers

    The default body parsers provided by Play.

    The default body parsers provided by Play. This can be used along with the Action helper to customize the body parser, for example:

    def foo(query: String) = Action(parse.tolerantJson) { request =>
      Ok(request.body)
    }
    Definition Classes
    BaseControllerHelpers
  218. implicit def request2flash(implicit request: RequestHeader): Flash

    Retrieve the flash scope implicitly from the request.

    Retrieve the flash scope implicitly from the request.

    For example:

    def index(name:String) = Action { implicit request =>
      val message = request2flash("message")
      Ok("Got " + message)
    }
    Definition Classes
    RequestImplicits
  219. implicit def request2session(implicit request: RequestHeader): Session

    Retrieves the session implicitly from the request.

    Retrieves the session implicitly from the request.

    For example:

    def index(name:String) = Action { implicit request =>
      val username = request2session("username")
      Ok("Hello " + username)
    }
    Definition Classes
    RequestImplicits
  220. implicit def supportedLangs: Langs

    The default Langs provided by Play.

    The default Langs provided by Play. Can be used to determine the application's supported languages.

    Definition Classes
    BaseControllerHelpers
  221. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  222. def toString(): String
    Definition Classes
    AnyRef → Any
  223. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  224. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  225. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  226. def withCharset(mimeType: String)(implicit codec: Codec): String

    returns

    the codec charset appended to mimeType

    Definition Classes
    ContentTypes
  227. object render
    Definition Classes
    Rendering
  228. object &

    Convenient extractor allowing to apply two extractors.

    Convenient extractor allowing to apply two extractors. Example of use:

    request match {
      case Accepts.Json() & Accepts.Html() => "This request accepts both JSON and HTML"
    }
    Definition Classes
    RequestExtractors

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from MessagesBaseController

Inherited from BaseControllerHelpers

Inherited from ControllerHelpers

Inherited from RequestImplicits

Inherited from Rendering

Inherited from RequestExtractors

Inherited from AcceptExtractors

Inherited from ContentTypes

Inherited from HeaderNames

Inherited from http.Status

Inherited from HttpProtocol

Inherited from Results

Inherited from AnyRef

Inherited from Any

Ungrouped