org.coursera.naptime

router2

package router2

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. router2
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class MacroImpls extends AnyRef

    A macro bundle that builds ResourceRouterBuilders specialized to particular types.

  2. case class NaptimePlayRouter(injector: Injector, routerBuilders: Set[ResourceRouterBuilder], prefix: String) extends play.api.routing.Router with StrictLogging with Product with Serializable

    Handles routing for Naptime resources in an idiomatic fashion for Play projects.

    Handles routing for Naptime resources in an idiomatic fashion for Play projects.

    To use this router, include in your routes file something like:

    # Include Naptime resources
    ->    /api                  org.coursera.naptime.router2.PlayNaptimeRouter

    Requests matching the prefix for naptime resources will then be routed appropriately.

    injector

    The Injector from which to instantiate all the naptime resources.

    routerBuilders

    The set of naptime macro resource router builders corresponding to the collection of resources to serve. These are typically bound via Guice multi-bindings.

    prefix

    The prefix path under which the resources should be served (in the example above: /api).

    Annotations
    @Singleton()
  3. class NestingCollectionResourceRouter[CollectionResourceType <: CollectionResource[_, _, _]] extends ResourceRouter with StrictLogging

  4. trait ResourceRouter extends AnyRef

    The core interface for the router.

    The core interface for the router. Implement this interface in order to be able to route your requests.

    Note: typically, a macro implements these functions for individual resources by subclassing one of the types below.

  5. trait ResourceRouterBuilder extends AnyRef

    Use me to build a router that can be used to route requests.

  6. type RouteAction = EssentialAction with RequestTaggingHandler

  7. class Router extends AnyRef

    The macro-based router for Naptime.

    The macro-based router for Naptime. This should be instantiated in the Play! application's Global and hooked into the Global's onRouteRequest method.

Value Members

  1. object CollectionResourceRouter

  2. object CourierQueryParsers extends StrictLogging

  3. object NestingCollectionResourceRouter

  4. object Router

Inherited from AnyRef

Inherited from Any

Ungrouped