class NestingCollectionResourceRouter[CollectionResourceType <: CollectionResource[_, _, _]] extends ResourceRouter with StrictLogging
- Alphabetic
- By Inheritance
- NestingCollectionResourceRouter
- StrictLogging
- ResourceRouter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NestingCollectionResourceRouter(resourceInstance: CollectionResourceType)
Type Members
-
type
ResourceClass = CollectionResourceType
The resource class this router handles.
The resource class this router handles.
- Definition Classes
- NestingCollectionResourceRouter → ResourceRouter
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errorRoute(msg: String, statusCode: Int = Status.METHOD_NOT_ALLOWED): RouteAction
- Attributes
- protected[this]
-
def
executeAction(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, actionName: String): RouteAction
- Attributes
- protected[this]
-
def
executeCreate(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey): RouteAction
- Attributes
- protected[this]
-
def
executeDelete(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction
- Attributes
- protected[this]
-
def
executeFinder(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, finderName: String): RouteAction
- Attributes
- protected[this]
-
def
executeGet(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction
- Attributes
- protected[this]
-
def
executeGetAll(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey): RouteAction
- Attributes
- protected[this]
-
def
executeMultiGet(requestHeader: RequestHeader, optPathKey: CollectionResourceType.OptPathKey, ids: Set[CollectionResourceType.KeyType]): RouteAction
- Attributes
- protected[this]
-
def
executePatch(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction
- Attributes
- protected[this]
-
def
executePut(requestHeader: RequestHeader, pathKey: CollectionResourceType.PathKey): RouteAction
- Attributes
- protected[this]
-
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
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
def
mkRequestTags(methodName: String): Map[String, String]
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]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
optPathToAncestor(pathKey: CollectionResourceType.OptPathKey): CollectionResourceType.AncestorKeys
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]
-
def
pathToAncestor(pathKey: CollectionResourceType.PathKey): CollectionResourceType.AncestorKeys
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]
- val resourceInstance: CollectionResourceType
-
def
routeRequest(path: String, requestHeader: RequestHeader): Option[RouteAction]
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
- NestingCollectionResourceRouter → ResourceRouter
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- 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()