|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.controller.managers.ResourceManager
public class ResourceManager
Manages the matching of resource URLs against resource classes and methods.
| Method Summary | |
|---|---|
static ResourceManager |
getInstance(String packagePath)
Controls instantiation process to ensure that only one instance per package path is used. |
Map<String,String[]> |
getPathParameters(String requestPath)
Gets the request path parameter map corresponding to the request path. |
Class<?> |
getResourceClass(String path)
Gets the resource class corresponding to the request path. |
Method |
getResourceMethod(String httpMethod,
String path,
Class<?> resourceClass)
Gets the resource method corresponding to the HTTP method and request path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ResourceManager getInstance(String packagePath)
packagePath - The package path
public Map<String,String[]> getPathParameters(String requestPath)
requestPath - The request requestPath
public Class<?> getResourceClass(String path)
path - The request path
public Method getResourceMethod(String httpMethod,
String path,
Class<?> resourceClass)
httpMethod - The HTTP methodpath - The request pathresourceClass - The resource class for this method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||