case class UnsecuredRequestHandlerBuilder[E <: Env](environment: Environment[E], errorHandler: UnsecuredErrorHandler) extends RequestHandlerBuilder[E, Request] with Product with Serializable
Request handler builder implementation to provide the foundation for unsecured request handlers.
- E
The type of the environment.
- environment
The environment instance to handle the request.
- errorHandler
The instance of the unsecured error handler.
- Alphabetic
- By Inheritance
- UnsecuredRequestHandlerBuilder
- Serializable
- Serializable
- Product
- Equals
- RequestHandlerBuilder
- ExecutionContextProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
UnsecuredRequestHandlerBuilder(environment: Environment[E], errorHandler: UnsecuredErrorHandler)
- environment
The environment instance to handle the request.
- errorHandler
The instance of the unsecured error handler.
Type Members
-
implicit
class
ExtractEither[T] extends AnyRef
Provides an
extractmethod on anEitherwhich contains the same types.Provides an
extractmethod on anEitherwhich contains the same types.- Attributes
- protected
- Definition Classes
- RequestHandlerBuilder
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
apply(errorHandler: UnsecuredErrorHandler): UnsecuredRequestHandlerBuilder[E]
Creates an unsecured action handler builder with a new error handler in place.
Creates an unsecured action handler builder with a new error handler in place.
- errorHandler
An error handler instance.
- returns
An unsecured action handler builder with a new error handler in place.
-
final
def
apply[B, T](request: Request[B])(block: (Request[B]) ⇒ Future[HandlerResult[T]]): Future[HandlerResult[T]]
Constructs a request handler with the content of the given request.
Constructs a request handler with the content of the given request.
- B
The type of the request body.
- T
The type of the data included in the handler result.
- request
The current request.
- block
The block of code to invoke.
- returns
A handler result.
- Definition Classes
- RequestHandlerBuilder
-
final
def
apply[T](block: (Request[AnyContent]) ⇒ Future[HandlerResult[T]])(implicit request: Request[AnyContent]): Future[HandlerResult[T]]
Constructs a request handler with default content.
Constructs a request handler with default content.
- T
The type of the data included in the handler result.
- block
The block of code to invoke.
- request
The current request.
- returns
A handler result.
- Definition Classes
- RequestHandlerBuilder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
environment: Environment[E]
The environment instance to handle the request.
The environment instance to handle the request.
- Definition Classes
- UnsecuredRequestHandlerBuilder → RequestHandlerBuilder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errorHandler: UnsecuredErrorHandler
-
implicit
lazy val
executionContext: ExecutionContext
The execution context to handle the asynchronous operations.
The execution context to handle the asynchronous operations.
- Definition Classes
- RequestHandlerBuilder → ExecutionContextProvider
-
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()
-
def
handleAuthentication[B](implicit request: Request[B]): Future[(Option[Either[E.A, E.A]], Option[E.I])]
Handles the authentication of an identity.
Handles the authentication of an identity.
As first it checks for authenticators in requests, then it tries to authenticate against a request provider. This method marks the returned authenticators by returning already initialized authenticators on the left and new authenticators on the right. All new authenticators must be initialized later in the flow, with the result returned from the invoked block.
- B
The type of the request body.
- request
The current request.
- returns
A tuple which consists of (maybe the existing authenticator on the left or a new authenticator on the right -> maybe the identity).
- Attributes
- protected
- Definition Classes
- RequestHandlerBuilder
-
def
handleBlock[T](authenticator: Either[E.A, E.A], block: (E.A) ⇒ Future[HandlerResult[T]])(implicit request: RequestHeader): Future[HandlerResult[T]]
Handles a block for an authenticator.
Handles a block for an authenticator.
Invokes the block with the authenticator and handles the result. See
handleInitializedAuthenticatorandhandleUninitializedAuthenticatormethods too see how the different authenticator types will be handled.- T
The type of the data included in the handler result.
- authenticator
An already initialized authenticator on the left and a new authenticator on the right.
- block
The block to handle with the authenticator.
- request
The current request header.
- returns
A handler result.
- Attributes
- protected
- Definition Classes
- RequestHandlerBuilder
-
def
invokeBlock[B, T](block: (Request[B]) ⇒ Future[HandlerResult[T]])(implicit request: Request[B]): Future[HandlerResult[T]]
Invokes the block.
Invokes the block.
- B
The type of the request body.
- T
The type of the data included in the handler result.
- block
The block of code to invoke.
- request
The current request.
- returns
A handler result.
- Definition Classes
- UnsecuredRequestHandlerBuilder → RequestHandlerBuilder
-
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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()