JavaAction

play.core.j.JavaAction
abstract class JavaAction(val handlerComponents: JavaHandlerComponents) extends Action[RequestBody], JavaHelpers

Attributes

Graph
Supertypes
trait JavaHelpers
trait Action[RequestBody]
trait Handler
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type BODY_CONTENT = RequestBody

Type of the request body.

Type of the request body.

Attributes

Inherited from:
Action

Value members

Abstract methods

def invocation(req: Request): CompletionStage[Result]

Concrete methods

def apply(req: Request[RequestBody]): Future[Result]

Invokes this action.

Invokes this action.

Value parameters

request

the incoming HTTP request

Attributes

Returns

the result to be sent to the client

Inherited methods

Attributes

Inherited from:
Function1
override def apply(): Action[RequestBody]

Attributes

Returns

itself, for better support in the routes file.

Definition Classes
Inherited from:
Action

Attributes

Inherited from:
Action
def asJava: EssentialAction

Attributes

Inherited from:
EssentialAction

Attributes

Inherited from:
Function1
def cookiesToJavaCookies(cookies: Cookies): Cookies

Attributes

Inherited from:
JavaHelpers
def cookiesToScalaCookies(cookies: Iterable[Cookie]): Seq[Cookie]

Attributes

Inherited from:
JavaHelpers

Attributes

Inherited from:
JavaHelpers

Attributes

Inherited from:
JavaHelpers
def javaMapToImmutableScalaMap[A, B](m: Map[A, B]): Map[A, B]

Attributes

Inherited from:
JavaHelpers
def mergeNewCookie(cookies: Cookies, newCookie: Cookie): Cookies

Attributes

Inherited from:
JavaHelpers

Attributes

Inherited from:
JavaHelpers
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Action -> Function1 -> Any
Inherited from:
Action
def updateRequestWithUri[A](req: Request[A], parsedUri: URI): Request[A]

Attributes

Inherited from:
JavaHelpers

Inherited and Abstract methods

def parser: BodyParser[RequestBody]

Body parser associated with this action.

Body parser associated with this action.

Attributes

Inherited from:
Action

Deprecated and Inherited methods

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

Creates JavaContextComponents directly from components..

Creates JavaContextComponents directly from components..

Value parameters

fileMimeTypes

the file mime types

httpConfiguration

the http configuration

langs

the langs instance

messagesApi

the messagesApi instance

Attributes

Returns

an instance of JavaContextComponents with given input components.

Deprecated
true
Inherited from:
JavaHelpers

Creates context components from environment.

Creates context components from environment.

Value parameters

configuration

play config.

env

play environment.

Attributes

Returns

an instance of JavaContextComponents with default messagesApi and langs.

Deprecated
true
Inherited from:
JavaHelpers

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.

Attributes

Returns

an instance of JavaContextComponents.

Deprecated
true
Inherited from:
JavaHelpers

Abstract fields

Concrete fields

Attributes

Returns

The execution context to run the action in