abstract class JavaAction extends Action[RequestBody] with JavaHelpers
- Source
- JavaAction.scala
- Alphabetic
- By Inheritance
- JavaAction
- JavaHelpers
- Action
- EssentialAction
- Handler
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JavaAction(handlerComponents: JavaHandlerComponents)
Type Members
Abstract Value Members
- abstract val annotations: JavaActionAnnotations
- abstract def invocation(req: Request): CompletionStage[Result]
-
abstract
def
parser: BodyParser[RequestBody]
Body parser associated with this action.
Body parser associated with this action.
- Definition Classes
- Action
Concrete 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
-
def
andThen[A](g: (Accumulator[ByteString, Result]) ⇒ A): (RequestHeader) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(req: Request[RequestBody]): Future[Result]
Invokes this action.
Invokes this action.
- returns
the result to be sent to the client
- Definition Classes
- JavaAction → Action
-
def
apply(): Action[RequestBody]
- returns
itself, for better support in the routes file.
- Definition Classes
- Action → EssentialAction
-
def
apply(rh: RequestHeader): Accumulator[ByteString, Result]
- Definition Classes
- Action → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: EssentialAction
- Definition Classes
- EssentialAction
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ RequestHeader): (A) ⇒ Accumulator[ByteString, Result]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
cookiesToJavaCookies(cookies: Cookies): Cookies
- Definition Classes
- JavaHelpers
-
def
cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]
- Definition Classes
- JavaHelpers
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
executionContext: ExecutionContext
- returns
The execution context to run the action in
- Definition Classes
- JavaAction → Action
-
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()
- val handlerComponents: JavaHandlerComponents
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
javaMapOfArraysToScalaSeqOfPairs(m: Map[String, Array[String]]): Seq[(String, String)]
- Definition Classes
- JavaHelpers
-
def
javaMapOfListToScalaSeqOfPairs(m: Map[String, List[String]]): Seq[(String, String)]
- Definition Classes
- JavaHelpers
-
def
javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]
- Definition Classes
- JavaHelpers
-
def
mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies
- Definition Classes
- JavaHelpers
-
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()
-
def
scalaMapOfSeqsToJavaMapOfArrays(m: Map[String, Seq[String]]): Map[String, Array[String]]
- Definition Classes
- JavaHelpers
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Action → Function1 → AnyRef → Any
-
def
updateRequestWithUri[A](req: Request[A], parsedUri: URI): Request[A]
- Definition Classes
- JavaHelpers
-
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()
Deprecated Value Members
-
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
-
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
-
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