Packages

c

play.silhouette.api.actions

UserAwareRequestHandlerBuilder

final case class UserAwareRequestHandlerBuilder[E <: Env](environment: Environment[E]) extends RequestHandlerBuilder[E, [B]UserAwareRequest[E, B]] with Product with Serializable

Request handler builder implementation to provide the foundation for user-aware request handlers.

E

The type of the environment.

environment

The environment instance to handle the request.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UserAwareRequestHandlerBuilder
  2. Serializable
  3. Product
  4. Equals
  5. RequestHandlerBuilder
  6. ExecutionContextProvider
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UserAwareRequestHandlerBuilder(environment: Environment[E])

    environment

    The environment instance to handle the request.

Type Members

  1. implicit class ExtractEither[T] extends AnyRef

    Provides an extract method on an Either which contains the same types.

    Provides an extract method on an Either which contains the same types.

    Attributes
    protected
    Definition Classes
    RequestHandlerBuilder

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply[B, T](request: Request[B])(block: (UserAwareRequest[E, 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
  5. final def apply[T](block: (UserAwareRequest[E, 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
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val environment: Environment[E]

    The environment instance to handle the request.

    The environment instance to handle the request.

    Definition Classes
    UserAwareRequestHandlerBuilderRequestHandlerBuilder
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. implicit lazy val executionContext: ExecutionContext

    The execution context to handle the asynchronous operations.

    The execution context to handle the asynchronous operations.

    Definition Classes
    RequestHandlerBuilderExecutionContextProvider
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. 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
  13. 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 handleInitializedAuthenticator and handleUninitializedAuthenticator methods 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
  14. def invokeBlock[B, T](block: (UserAwareRequest[E, 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
    UserAwareRequestHandlerBuilderRequestHandlerBuilder
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RequestHandlerBuilder[E, [B]UserAwareRequest[E, B]]

Inherited from AnyRef

Inherited from Any

Ungrouped