public class RestDocGeneratorExtensionAdapter extends Object implements IRestDocGeneratorExtension
| Constructor and Description |
|---|
RestDocGeneratorExtensionAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
headerParam(String name,
org.restdoc.api.HeaderDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every header parameter
|
void |
newMethod(org.restdoc.api.RestResource restResource,
org.restdoc.api.MethodDefinition def,
Method method)
invoked for every method
|
void |
newResource(org.restdoc.api.RestResource restResource)
invoked on every new rest resource
|
void |
newSchema(String schemaURI,
org.restdoc.api.Schema s,
Class<?> schemaClass)
invoked for every used schema class
|
void |
pathParam(String name,
org.restdoc.api.ParamDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every path parameter
|
void |
queryParam(String name,
org.restdoc.api.ParamDefinition definition,
Type paramType,
AnnotationMap map)
invoked for every query parameter
|
void |
renderDoc(String path,
org.restdoc.api.RestDoc doc)
invoked of RestDoc generation
|
public void newResource(org.restdoc.api.RestResource restResource)
IRestDocGeneratorExtensionnewResource in interface IRestDocGeneratorExtensionrestResource - the RestResourcepublic void queryParam(String name, org.restdoc.api.ParamDefinition definition, Type paramType, AnnotationMap map)
IRestDocGeneratorExtensionqueryParam in interface IRestDocGeneratorExtensionname - the parameter namedefinition - the ParamDefinitionparamType - the Java class of the parametermap - the map of annotationspublic void pathParam(String name, org.restdoc.api.ParamDefinition definition, Type paramType, AnnotationMap map)
IRestDocGeneratorExtensionpathParam in interface IRestDocGeneratorExtensionname - the parameter namedefinition - the ParamDefinitionparamType - the Java class of the parametermap - the map of annotationspublic void headerParam(String name, org.restdoc.api.HeaderDefinition definition, Type paramType, AnnotationMap map)
IRestDocGeneratorExtensionheaderParam in interface IRestDocGeneratorExtensionname - the parameter namedefinition - the HeaderDefinitionparamType - the Java class of the parametermap - the map of annotationspublic void newMethod(org.restdoc.api.RestResource restResource,
org.restdoc.api.MethodDefinition def,
Method method)
IRestDocGeneratorExtensionnewMethod in interface IRestDocGeneratorExtensionrestResource - the super resourcedef - the MethodDefinitionmethod - the Java reflection Methodpublic void newSchema(String schemaURI, org.restdoc.api.Schema s, Class<?> schemaClass)
IRestDocGeneratorExtensionnewSchema in interface IRestDocGeneratorExtensionschemaURI - the schema URIs - the SchemaschemaClass - the Java classpublic void renderDoc(String path, org.restdoc.api.RestDoc doc)
IRestDocGeneratorExtensionrenderDoc in interface IRestDocGeneratorExtensionpath - the requested pathdoc - the generated docCopyright © 2012-2014 RestDoc.org. All Rights Reserved.