|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.controller.managers.DocumentationManager
public class DocumentationManager
Manages documentation of resources.
| Method Summary | |
|---|---|
protected String |
defaultValuesAsString(String[] defaultValues)
Converts a list of default values into a human readable string. |
protected List<WadlParam> |
filterNoneTemplateParams(List<WadlParam> params)
|
protected List<WadlParam> |
filterTemplateParams(List<WadlParam> params)
Filters all template parameters from a list of parameters. |
protected List<WadlParam> |
getClassParams(Class<?> resourceClass)
Gets the list of resource parameters from a resource Java class |
WadlApplication |
getDocumentation(String path,
Configuration config)
Gets the documentation in WADL for a resource identified via the given path in context of the specified configuration. |
static DocumentationManager |
getInstance(String packageName)
Controls instantiation process to ensure that only one instance per package path is used. |
protected List<WadlParam> |
getMethodParams(Method resourceMethod)
Gets the list of resource and request parameters from a resource Java method. |
protected List<WadlMethod> |
getMethods(List<Method> resourceMethods,
Configuration configuration)
Gets the list of all resource HTTP methods from a list of resource Java methods and a controller configuration. |
protected WadlParam |
getParam(String paramName,
String defaultValue)
Gets a request parameter from a parameter name and a parameter default value |
protected List<WadlRepresentation> |
getRepresentations(List<String> supportedMediaTypes)
Gets a list of representations from a list of supported media types. |
protected WadlRequest |
getRequest(Method resourceMethod,
Configuration configuration)
Gets the request for a resource Java method and a controller configuration. |
protected List<WadlParam> |
getRequestParams(Method resourceMethod)
Gets the list of request parameters for a resource Java method. |
protected List<WadlRepresentation> |
getRequestRepresentations(Method method,
Configuration configuration)
Gets a request representation from a Java method and a controller configuration. |
protected WadlResource |
getResource(String path,
Configuration configuration)
Gets a resource from a resource path and a controller configuration. |
protected List<WadlParam> |
getResourceParams(Class<?> resourceClass,
Method resourceMethod)
Gets the list of all resource parameters for a resource Java class and method. |
protected List<WadlRepresentation> |
getResponseRepresentations(Method method,
Configuration configuration)
Gets a response representation from a Java method and a controller configuration. |
protected List<WadlResponse> |
getResponses(Method resourceMethod,
Configuration configuration)
Gets a list of possible responses of a resource Java method and a controller configuration. |
protected List<WadlResource> |
getSubResources(String path)
Gets the list of all sub-resources of a resource matching a resource path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DocumentationManager getInstance(String packageName)
packageName - The package name
public WadlApplication getDocumentation(String path,
Configuration config)
path - The pathconfig - The configuration
protected WadlResource getResource(String path,
Configuration configuration)
Gets a resource from a resource path and a controller configuration.
Includes:
path - The resource pathconfiguration - The controller configuration
protected List<WadlResource> getSubResources(String path)
Gets the list of all sub-resources of a resource matching a resource path.
path - The resource path
protected List<WadlMethod> getMethods(List<Method> resourceMethods,
Configuration configuration)
Gets the list of all resource HTTP methods from a list of resource Java methods and a controller configuration.
resourceMethods - The resource Java methodsconfiguration - The controller configuration
protected List<WadlResponse> getResponses(Method resourceMethod,
Configuration configuration)
resourceMethod - The resource Java methodconfiguration - The controller configuration
protected WadlRequest getRequest(Method resourceMethod,
Configuration configuration)
resourceMethod - The resource Java methodconfiguration - The controller configuration
protected List<WadlParam> filterNoneTemplateParams(List<WadlParam> params)
protected List<WadlParam> filterTemplateParams(List<WadlParam> params)
params - The list of parameters
protected List<WadlParam> getResourceParams(Class<?> resourceClass,
Method resourceMethod)
resourceClass - The resource class The resource Java classresourceMethod - The resource method The resource Java method
protected List<WadlParam> getRequestParams(Method resourceMethod)
resourceMethod - resource Java method
protected List<WadlParam> getMethodParams(Method resourceMethod)
resourceMethod - The resource Java method
protected List<WadlParam> getClassParams(Class<?> resourceClass)
resourceClass - The resource Java class
protected WadlParam getParam(String paramName,
String defaultValue)
paramName - The parameter namedefaultValue - The parameter default value
protected List<WadlRepresentation> getRequestRepresentations(Method method,
Configuration configuration)
method - The Java methodconfiguration - The controller configuration
protected List<WadlRepresentation> getResponseRepresentations(Method method,
Configuration configuration)
method - The Java methodconfiguration - The controller configuration
protected List<WadlRepresentation> getRepresentations(List<String> supportedMediaTypes)
supportedMediaTypes - The supported media types
protected String defaultValuesAsString(String[] defaultValues)
defaultValues - The list of default values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||