class
RoutingService[REQUEST <: Request] extends Service[REQUEST, Response]
Instance Constructors
-
new
RoutingService(routes: PartialFunction[Request, Service[REQUEST, Response]])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
andThen[A](g: (Future[Response]) ⇒ A): (REQUEST) ⇒ A
-
def
apply(request: REQUEST): Future[Response]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
close(deadline: Time): Future[Unit]
-
def
close(after: Duration): Future[Unit]
-
final
def
close(): Future[Unit]
-
def
compose[A](g: (A) ⇒ REQUEST): (A) ⇒ Future[Response]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
isAvailable: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[Req1](f: (Req1) ⇒ REQUEST): Service[Req1, Response]
-
final
def
ne(arg0: AnyRef): Boolean
-
val
notFoundPf: PartialFunction[REQUEST, Service[REQUEST, Response]]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
requestToService: PartialFunction[REQUEST, Service[REQUEST, Response]]
-
val
routes: PartialFunction[Request, Service[REQUEST, Response]]
-
def
status: finagle.Status
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Deprecated Value Members
-
final
def
release(): Unit
Inherited from Service[REQUEST, Response]
Inherited from Closable
Inherited from (REQUEST) ⇒ Future[Response]
Inherited from AnyRef
Inherited from Any
RoutingService for composing Services. Responds with 404 Not Found if no matching service.
RoutingService.byPath { case "/search.json" => mySearchService .... }