c

play.core.j

JavaAction

abstract class JavaAction extends Action[RequestBody] with JavaHelpers

Source
JavaAction.scala
Linear Supertypes
JavaHelpers, Action[RequestBody], EssentialAction, Handler, (RequestHeader) => Accumulator[ByteString, Result], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaAction
  2. JavaHelpers
  3. Action
  4. EssentialAction
  5. Handler
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JavaAction(handlerComponents: JavaHandlerComponents)

Type Members

  1. type BODY_CONTENT = RequestBody

    Type of the request body.

    Type of the request body.

    Definition Classes
    Action

Abstract Value Members

  1. abstract val annotations: JavaActionAnnotations
  2. abstract def invocation(req: Request): CompletionStage[Result]
  3. abstract def parser: BodyParser[RequestBody]

    Body parser associated with this action.

    Body parser associated with this action.

    Definition Classes
    Action

Concrete Value Members

  1. def andThen[A](g: (Accumulator[ByteString, Result]) => A): (RequestHeader) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(req: Request[RequestBody]): Future[Result]

    Invokes this action.

    Invokes this action.

    returns

    the result to be sent to the client

    Definition Classes
    JavaActionAction
  3. def apply(): Action[RequestBody]

    returns

    itself, for better support in the routes file.

    Definition Classes
    ActionEssentialAction
  4. def apply(rh: RequestHeader): Accumulator[ByteString, Result]
    Definition Classes
    Action → Function1
  5. def asJava: EssentialAction
    Definition Classes
    EssentialAction
  6. def compose[A](g: (A) => RequestHeader): (A) => Accumulator[ByteString, Result]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def cookiesToJavaCookies(cookies: Cookies): Cookies
    Definition Classes
    JavaHelpers
  8. def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]
    Definition Classes
    JavaHelpers
  9. val executionContext: ExecutionContext

    returns

    The execution context to run the action in

    Definition Classes
    JavaActionAction
  10. val handlerComponents: JavaHandlerComponents
  11. def javaMapOfArraysToScalaSeqOfPairs(m: Map[String, Array[String]]): Seq[(String, String)]
    Definition Classes
    JavaHelpers
  12. def javaMapOfListToScalaSeqOfPairs(m: Map[String, List[String]]): Seq[(String, String)]
    Definition Classes
    JavaHelpers
  13. def javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]
    Definition Classes
    JavaHelpers
  14. def mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies
    Definition Classes
    JavaHelpers
  15. def scalaMapOfSeqsToJavaMapOfArrays(m: Map[String, Seq[String]]): Map[String, Array[String]]
    Definition Classes
    JavaHelpers
  16. def toString(): String
    Definition Classes
    Action → Function1 → AnyRef → Any
  17. def updateRequestWithUri[A](req: Request[A], parsedUri: URI): Request[A]
    Definition Classes
    JavaHelpers

Deprecated Value Members

  1. def createContextComponents(messagesApi: MessagesApi, langs: Langs, fileMimeTypes: FileMimeTypes, httpConfiguration: HttpConfiguration): JavaContextComponents

    Creates JavaContextComponents directly from components..

    Creates JavaContextComponents directly from components..

    messagesApi

    the messagesApi instance

    langs

    the langs instance

    fileMimeTypes

    the file mime types

    httpConfiguration

    the http configuration

    returns

    an instance of JavaContextComponents with given input components.

    Definition Classes
    JavaHelpers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead

  2. def createContextComponents(configuration: Configuration, env: api.Environment): JavaContextComponents

    Creates context components from environment.

    Creates context components from environment.

    configuration

    play config.

    env

    play environment.

    returns

    an instance of JavaContextComponents with default messagesApi and langs.

    Definition Classes
    JavaHelpers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead

  3. def createContextComponents(): JavaContextComponents

    Creates java context components from environment, using play.api.Configuration.reference and play.api.Environment.simple as defaults.

    Creates java context components from environment, using play.api.Configuration.reference and play.api.Environment.simple as defaults.

    returns

    an instance of JavaContextComponents.

    Definition Classes
    JavaHelpers
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) Inject MessagesApi, Langs, FileMimeTypes or HttpConfiguration instead