object Handler
- Source
- Handler.scala
- Alphabetic
- By Inheritance
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
Stageaccepts aRequestHeaderthen returns a newRequestHeaderalong with the nextHandlerto use during request handling. The next handler could be a terminalHandlerlike an EssentialAction, but it could also be anotherStage. This means it's possible to chains ofStages that should each be executed in turn. To automatically execute allStages 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
EssentialActionorWebSocket.- 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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(classOf[java.lang.InterruptedException])
- 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()
- object Stage