Class

play.core.j

JavaAction

Related Doc: package j

Permalink

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(components: JavaHandlerComponents)

    Permalink

Type Members

  1. type BODY_CONTENT = RequestBody

    Permalink

    Type of the request body.

    Type of the request body.

    Definition Classes
    Action

Abstract Value Members

  1. abstract val annotations: JavaActionAnnotations

    Permalink
  2. abstract def invocation: CompletionStage[Result]

    Permalink
  3. abstract def parser: BodyParser[RequestBody]

    Permalink

    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

    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. def andThen[A](g: (Accumulator[ByteString, Result]) ⇒ A): (RequestHeader) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(req: Request[RequestBody]): Future[Result]

    Permalink

    Invokes this action.

    Invokes this action.

    returns

    the result to be sent to the client

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

    Permalink

    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]

    Permalink
    Definition Classes
    Action → Function1
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def asJava: EssentialAction

    Permalink
    Definition Classes
    EssentialAction
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compose[A](g: (A) ⇒ RequestHeader): (A) ⇒ Accumulator[ByteString, Result]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def cookiesToJavaCookies(cookies: Cookies): Cookies

    Permalink
    Definition Classes
    JavaHelpers
  13. def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]

    Permalink
    Definition Classes
    JavaHelpers
  14. def createJavaContext(req: Request[RequestBody]): Context

    Permalink

    Creates a java context from a scala Request[RequestBody]

    Creates a java context from a scala Request[RequestBody]

    Definition Classes
    JavaHelpers
  15. def createJavaContext(req: RequestHeader): Context

    Permalink

    Creates a java context from a scala RequestHeader

    Creates a java context from a scala RequestHeader

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

    Permalink

    Creates a scala result from java context and result objects

    Creates a scala result from java context and result objects

    Definition Classes
    JavaHelpers
  17. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def executionContext: ExecutionContext

    Permalink

    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
    Action
  20. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def invokeWithContext(request: RequestHeader, f: (Request) ⇒ CompletionStage[Result]): Future[Result]

    Permalink

    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

    f

    The function to invoke

    returns

    The result

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

    Permalink

    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

    f

    The function to invoke

    returns

    The result

    Definition Classes
    JavaHelpers
  25. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    Action → Function1 → AnyRef → Any
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def withContext[A](request: RequestHeader)(block: (Context) ⇒ A): A

    Permalink

    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