Class/Object

org.coursera.naptime.router2

NestingCollectionResourceRouter

Related Docs: object NestingCollectionResourceRouter | package router2

Permalink

class NestingCollectionResourceRouter[CollectionResourceType <: CollectionResource[_, _, _]] extends ResourceRouter with StrictLogging

Linear Supertypes
StrictLogging, ResourceRouter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NestingCollectionResourceRouter
  2. StrictLogging
  3. ResourceRouter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NestingCollectionResourceRouter(resourceInstance: CollectionResourceType)

    Permalink

Type Members

  1. type ResourceClass = CollectionResourceType

    Permalink

    The resource class this router handles.

    The resource class this router handles.

    Definition Classes
    NestingCollectionResourceRouterResourceRouter

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def errorRoute(msg: String, statusCode: Int = Status.METHOD_NOT_ALLOWED): RouteAction

    Permalink
    Attributes
    protected[this]
  9. def executeAction(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, actionName: String): RouteAction

    Permalink
    Attributes
    protected[this]
  10. def executeCreate(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  11. def executeDelete(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  12. def executeFinder(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, finderName: String): RouteAction

    Permalink
    Attributes
    protected[this]
  13. def executeGet(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  14. def executeGetAll(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  15. def executeMultiGet(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, ids: Set[CollectionResourceType.KeyType]): RouteAction

    Permalink
    Attributes
    protected[this]
  16. def executePatch(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  17. def executePut(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction

    Permalink
    Attributes
    protected[this]
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  23. def mkRequestTags(methodName: String): Map[String, String]

    Permalink

    Constructs a Map used to tag the request.

    Constructs a Map used to tag the request.

    Note: because of a limitation of the mocking framework, this code gracefully handles when resourceInstance.getClass returns null.

    methodName

    The name of the scala method invoked to handle this request.

    Attributes
    protected[this]
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def optPathToAncestor(pathKey: CollectionResourceType.OptPathKey): CollectionResourceType.AncestorKeys

    Permalink

    Helper method to convert an opt path key to the ancestor keys.

    Helper method to convert an opt path key to the ancestor keys.

    pathKey

    The opt path key to convert.

    Attributes
    protected[this]
  28. def pathToAncestor(pathKey: CollectionResourceType.PathKey): CollectionResourceType.AncestorKeys

    Permalink

    Helper method to convert a path key to the ancestor keys.

    Helper method to convert a path key to the ancestor keys.

    pathKey

    The path key to convert.

    Attributes
    protected[this]
  29. val resourceInstance: CollectionResourceType

    Permalink
  30. def routeRequest(path: String, requestHeader: RequestHeader): Option[RouteAction]

    Permalink

    If the request is for this resource, return a RouteAction.

    If the request is for this resource, return a RouteAction. For alternate resources, return None

    Note: by returning Some[RouteAction], that does not mean that there is a valid finder, action, or that all query parameters were parsed correctly.

    path

    The (modified) request path to use for routing request.

    requestHeader

    The request to be handled (for routing & query parameter parsing)

    returns

    Either the Play! action to handle the request, or None indicating this request is for a different resource.

    Definition Classes
    NestingCollectionResourceRouterResourceRouter
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from ResourceRouter

Inherited from AnyRef

Inherited from Any

Ungrouped