object Handler
- Source
- Handler.scala
- Alphabetic
- By Inheritance
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Stage extends Handler
A special type of play.api.mvc.Handler which allows custom logic to be inserted during handling.
A special type of play.api.mvc.Handler which allows custom logic to be inserted during handling. A
Stage
accepts aRequestHeader
then returns a newRequestHeader
along with the nextHandler
to use during request handling. The next handler could be a terminalHandler
like an EssentialAction, but it could also be anotherStage
. This means it's possible to chains ofStage
s that should each be executed in turn. To automatically execute allStage
s you can call play.api.mvc.Handler.applyStages.
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
applyStages(requestHeader: RequestHeader, handler: Handler): (RequestHeader, Handler)
Some handlers are built as a series of stages, with each stage returning a new RequestHeader and another stage, until eventually a terminal handler is returned.
Some handlers are built as a series of stages, with each stage returning a new RequestHeader and another stage, until eventually a terminal handler is returned. This method processes all stages in a handler, if any, returning a terminal handler such as
EssentialAction
orWebSocket
.- requestHeader
The current RequestHeader.
- handler
The input Handler.
- returns
The new RequestHeader and Handler.
- Annotations
- @tailrec()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )
- object Stage