trait RequestProcessor extends RequestHandler
Provides utility for processing incoming request.
- Alphabetic
- By Inheritance
- RequestProcessor
- RequestHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
process(request: HttpRequest): HttpResponse
Processes incoming request.
Processes incoming request.
The processor returns a response that satisfies the request.
- request
incoming request
Concrete 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(request: HttpRequest): Either[HttpRequest, HttpResponse]
Handles incoming request.
Handles incoming request.
If handler satisfies request, then it returns a response. Otherwise, it returns a request, which may be the original request or an alternate one.
- Definition Classes
- RequestProcessor → RequestHandler
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compose(other: RequestHandler): RequestHandler
Composes this handler with other, using this as a fallback.
Composes this handler with other, using this as a fallback.
If
other
returns a request, then the request is passed tothis
. Otherwise, ifother
returns a response, thenthis
is not invoked.- other
initial handler
- Definition Classes
- RequestHandler
-
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()
-
def
orElse(other: RequestHandler): RequestHandler
Composes this handler with other, using other as a fallback.
Composes this handler with other, using other as a fallback.
If
this
returns a request, then the request is passed toother
. Otherwise, ifthis
returns a response, thenother
is not invoked.- other
fallback handler
- Definition Classes
- RequestHandler
-
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( ... )