Package

org.coursera.naptime

router2

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. class MacroImpls extends AnyRef

    Permalink

    A macro bundle that builds ResourceRouterBuilders specialized to particular types.

  2. case class NaptimePlayRouter(naptimeRoutes: NaptimeRoutes, prefix: String) extends play.api.routing.Router with StrictLogging with Product with Serializable

    Permalink

    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.

    naptimeRoutes

    Collects the common data structures useful for request routing, including the router builders, as well as the routers themselves.

    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

    Permalink
  4. trait ResourceRouter extends AnyRef

    Permalink

    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

    Permalink

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

  6. type RouteAction = EssentialAction with RequestTaggingHandler

    Permalink
  7. class Router extends AnyRef

    Permalink

    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 AttributesProvider extends StrictLogging

    Permalink
  2. object CollectionResourceRouter

    Permalink
  3. object CourierQueryParsers extends StrictLogging

    Permalink
  4. object NestingCollectionResourceRouter

    Permalink
  5. object Router

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped