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

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: CompletionStage[Result]
  3. abstract def parser: BodyParser[RequestBody]

    Body parser associated with this action.

    Body parser associated with this action.

    Definition Classes
    Action
    See also

    BodyParser

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Accumulator[ByteString, Result]) ⇒ A): (RequestHeader) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. 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
  6. def apply(): Action[RequestBody]

    Returns itself, for better support in the routes file.

    Returns itself, for better support in the routes file.

    returns

    itself

    Definition Classes
    ActionEssentialAction
  7. def apply(rh: RequestHeader): Accumulator[ByteString, Result]
    Definition Classes
    Action → Function1
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asJava: EssentialAction
    Definition Classes
    EssentialAction
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. def compose[A](g: (A) ⇒ RequestHeader): (A) ⇒ Accumulator[ByteString, Result]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def cookiesToJavaCookies(cookies: Cookies): Cookies
    Definition Classes
    JavaHelpers
  13. def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]
    Definition Classes
    JavaHelpers
  14. 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
  15. def createContextComponents(configuration: api.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
  16. def createContextComponents(): JavaContextComponents

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

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

    returns

    an instance of JavaContextComponents.

    Definition Classes
    JavaHelpers
  17. def createJavaContext(req: Request[RequestBody], components: JavaContextComponents): Context

    Creates a java context from a scala Request[RequestBody]

    Creates a java context from a scala Request[RequestBody]

    req

    the scala request

    components

    the context components (use JavaHelpers.createContextComponents)

    Definition Classes
    JavaHelpers
  18. def createJavaContext(req: RequestHeader, components: JavaContextComponents): Context

    Creates a java context from a scala RequestHeader

    Creates a java context from a scala RequestHeader

    req

    the scala request

    components

    the context components (use JavaHelpers.createContextComponents)

    Definition Classes
    JavaHelpers
  19. def createResult(javaContext: Context, javaResult: Result): Result

    Creates a scala result from java context and result objects

    Creates a scala result from java context and result objects

    javaContext

    the Java Http.Context

    javaResult

    the Java Result

    Definition Classes
    JavaHelpers
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. val executionContext: ExecutionContext

    The execution context to run this action in

    The execution context to run this action in

    returns

    The execution context to run the action in

    Definition Classes
    JavaActionAction
  23. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. val handlerComponents: JavaHandlerComponents
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def invokeWithContext(request: RequestHeader, components: JavaContextComponents, f: (Request) ⇒ CompletionStage[Result]): Future[Result]

    Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.

    Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.

    This is intended for use by callback methods in Java adapters.

    request

    The request

    components

    the context components

    f

    The function to invoke

    returns

    The result

    Definition Classes
    JavaHelpers
  28. def invokeWithContextOpt(request: RequestHeader, components: JavaContextComponents, f: (Request) ⇒ CompletionStage[Result]): Option[Future[Result]]

    Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.

    Invoke the given function with the right context set, converting the scala request to a Java request, and converting the resulting Java result to a Scala result, before returning it.

    This is intended for use by methods in the JavaGlobalSettingsAdapter, which need to be handled like Java actions, but are not Java actions. In this case, f may return null, so we wrap its result in an Option. E.g. see the default behavior of GlobalSettings.onError.

    request

    The request

    components

    the context components

    f

    The function to invoke

    returns

    The result

    Definition Classes
    JavaHelpers
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def javaMapOfArraysToScalaSeqOfPairs(m: Map[String, Array[String]]): Seq[(String, String)]
    Definition Classes
    JavaHelpers
  31. def javaMapOfListToScalaSeqOfPairs(m: Map[String, List[String]]): Seq[(String, String)]
    Definition Classes
    JavaHelpers
  32. def javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]
    Definition Classes
    JavaHelpers
  33. def mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies
    Definition Classes
    JavaHelpers
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. def scalaMapOfSeqsToJavaMapOfArrays(m: Map[String, Seq[String]]): Map[String, Array[String]]
    Definition Classes
    JavaHelpers
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    Action → Function1 → AnyRef → Any
  40. def updateRequestWithUri[A](req: Request[A], parsedUri: URI): Request[A]
    Definition Classes
    JavaHelpers
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  44. def withContext[A](request: RequestHeader, components: JavaContextComponents)(block: (Context) ⇒ A): A

    Invoke the given block with Java context created from the request header

    Invoke the given block with Java context created from the request header

    Definition Classes
    JavaHelpers

Inherited from JavaHelpers

Inherited from Action[RequestBody]

Inherited from EssentialAction

Inherited from Handler

Inherited from (RequestHeader) ⇒ Accumulator[ByteString, Result]

Inherited from AnyRef

Inherited from Any

Ungrouped