com.mohiva.play.silhouette.api.Silhouette

RequestHandlerBuilder

trait RequestHandlerBuilder[+R[_]] extends AnyRef

A builder for building request handlers.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RequestHandlerBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def invokeBlock[B, T](block: (R[B]) ⇒ Future[HandlerResult[T]])(implicit request: Request[B]): Future[HandlerResult[T]]

    Invoke the block.

    Invoke the block.

    This is the main method that an request handler has to implement.

    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.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def apply[B, T](request: Request[B])(block: (R[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.

  7. final def apply[T](block: (R[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.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def handleAuthentication[B](implicit request: Request[B]): Future[(Option[Either[A, A]], Option[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
  15. def handleBlock[T](authenticator: Either[A, A], block: (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.

    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
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped