com.github.kongchen.swagger.docgen.spring
类 SpringResource

java.lang.Object
  继承者 com.github.kongchen.swagger.docgen.spring.SpringResource

public class SpringResource
extends Object

作者:
tedleman

构造方法摘要
SpringResource(Class<?> clazz, String resourceName, String resourceKey, String description)
           
 
方法摘要
 void addMethod(Method m)
           
 Class<?> getControllerClass()
           
 String getControllerMapping()
           
 String getDescription()
           
 List<Method> getMethods()
           
 String getResourceKey()
           
 String getResourceName()
           
 String getResourcePath()
           
 void setControllerClass(Class<?> controllerClass)
           
 void setControllerMapping(String controllerMapping)
           
 void setDescription(String description)
           
 void setMethods(List<Method> methods)
           
 void setResource(String resource)
           
 void setResourceKey(String resourceKey)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SpringResource

public SpringResource(Class<?> clazz,
                      String resourceName,
                      String resourceKey,
                      String description)
参数:
clazz - (Class) Controller class
res - (String) Resource Name
方法详细信息

getControllerClass

public Class<?> getControllerClass()

setControllerClass

public void setControllerClass(Class<?> controllerClass)

getMethods

public List<Method> getMethods()

setMethods

public void setMethods(List<Method> methods)

addMethod

public void addMethod(Method m)

getControllerMapping

public String getControllerMapping()

setControllerMapping

public void setControllerMapping(String controllerMapping)

getResourceName

public String getResourceName()

setResource

public void setResource(String resource)

getResourcePath

public String getResourcePath()

getResourceKey

public String getResourceKey()

setResourceKey

public void setResourceKey(String resourceKey)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)


Copyright © 2015. All Rights Reserved.