class RoutingService[REQUEST <: Request] extends Service[REQUEST, Response]
RoutingService for composing Services. Responds with 404 Not Found if no matching service.
RoutingService.byPath { case "/search.json" => mySearchService .... }
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RoutingService
- Service
- Closable
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RoutingService(routes: PartialFunction[Request, Service[REQUEST, Response]])
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
andThen[A](g: (Future[Response]) ⇒ A): (REQUEST) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(request: REQUEST): Future[Response]
- Definition Classes
- RoutingService → Service → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close(deadline: Time): Future[Unit]
- Definition Classes
- Service → Closable
-
def
close(after: Duration): Future[Unit]
- Definition Classes
- Closable
-
final
def
close(): Future[Unit]
- Definition Classes
- Closable
-
def
compose[A](g: (A) ⇒ REQUEST): (A) ⇒ Future[Response]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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
isAvailable: Boolean
- Definition Classes
- Service
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[Req1](f: (Req1) ⇒ REQUEST): Service[Req1, Response]
- Definition Classes
- Service
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
notFoundPf: PartialFunction[REQUEST, Service[REQUEST, Response]]
- Attributes
- protected[this]
-
val
notFoundService: NotFoundService[REQUEST]
- Attributes
- protected[this]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
requestToService: PartialFunction[REQUEST, Service[REQUEST, Response]]
- Attributes
- protected[this]
- val routes: PartialFunction[Request, Service[REQUEST, Response]]
-
def
status: finagle.Status
- Definition Classes
- Service
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Service → Function1 → 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
- @throws( ... ) @native()