final case class SecuredActionBuilder[E <: Env, P](requestHandler: SecuredRequestHandlerBuilder[E], parser: BodyParser[P]) extends ActionBuilder[[B]SecuredRequest[E, B], P] with Product with Serializable
Action builder implementation to provide the foundation for secured actions.
- E
The type of the environment.
- P
The type of the request body.
- requestHandler
The request handler instance.
- parser
The body parser.
- Alphabetic
- By Inheritance
- SecuredActionBuilder
- Serializable
- Product
- Equals
- ActionBuilder
- ActionFunction
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SecuredActionBuilder(requestHandler: SecuredRequestHandlerBuilder[E], parser: BodyParser[P])
- requestHandler
The request handler instance.
- parser
The body parser.
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[Q[_]](other: ActionFunction[[B]SecuredRequest[E, B], Q]): ActionBuilder[Q, P]
- Definition Classes
- ActionBuilder → ActionFunction
- def apply(authorization: Authorization[E.I, E.A]): SecuredActionBuilder[E, P]
Creates a secured action builder with an authorization in place.
Creates a secured action builder with an authorization in place.
- authorization
An authorization object that checks if the user is authorized to invoke the action.
- returns
A secured action builder.
- def apply(errorHandler: SecuredErrorHandler): SecuredActionBuilder[E, P]
Creates a secured action builder with a new error handler in place.
Creates a secured action builder with a new error handler in place.
- errorHandler
An error handler instance.
- returns
A secured action builder.
- final def apply(block: => Result): Action[AnyContent]
- Definition Classes
- ActionBuilder
- final def apply(block: (SecuredRequest[E, P]) => Result): Action[P]
- Definition Classes
- ActionBuilder
- final def apply[A](bodyParser: BodyParser[A]): ActionBuilder[[B]SecuredRequest[E, B], A]
- Definition Classes
- ActionBuilder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def async[A](bodyParser: BodyParser[A])(block: (SecuredRequest[E, A]) => Future[Result]): Action[A]
- Definition Classes
- ActionBuilder
- final def async(block: (SecuredRequest[E, P]) => Future[Result]): Action[P]
- Definition Classes
- ActionBuilder
- final def async(block: => Future[Result]): Action[AnyContent]
- Definition Classes
- ActionBuilder
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def compose[B](other: ActionBuilder[Request, B]): ActionBuilder[[B]SecuredRequest[E, B], B]
- Definition Classes
- ActionFunction
- def compose[Q[_]](other: ActionFunction[Q, Request]): ActionFunction[Q, [B]SecuredRequest[E, B]]
- Definition Classes
- ActionFunction
- def composeAction[A](action: Action[A]): Action[A]
- Attributes
- protected
- Definition Classes
- ActionBuilder
- def composeParser[A](bodyParser: BodyParser[A]): BodyParser[A]
- Attributes
- protected
- Definition Classes
- ActionBuilder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def executionContext: ExecutionContext
Get the execution context to run the request in.
Get the execution context to run the request in.
- returns
The execution context.
- Attributes
- protected
- Definition Classes
- SecuredActionBuilder → ActionFunction
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def invokeBlock[B](request: Request[B], block: (SecuredRequest[E, B]) => Future[Result]): Future[Result]
Invokes the block.
Invokes the block.
- B
The type of the request body.
- request
The current request.
- block
The block of code to invoke.
- returns
A handler result.
- Definition Classes
- SecuredActionBuilder → ActionFunction
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val parser: BodyParser[P]
- Definition Classes
- SecuredActionBuilder → ActionBuilder
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val requestHandler: SecuredRequestHandlerBuilder[E]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)