public class ApiDocUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<Class<?>,String> |
controllerPathMap |
private static String |
SLASH |
| 构造器和说明 |
|---|
ApiDocUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getActionKey(Method method,
String controllerPath) |
static List<ApiResponse> |
getApiResponseInMethod(Method method) |
static HttpMethod |
getControllerMethod(Class<?> controllerClass) |
static String |
getControllerPath(Class<?> controllerClass) |
static HttpMethod[] |
getMethodHttpMethods(Method method,
HttpMethod defaultMethod) |
static String |
getterMethod2Field(Method getterMethod) |
static String |
prettyJson(String json) |
private static String |
tryToGetInAppListener(Class<?> controllerClass) |
private static Map<Class<?>,String> controllerPathMap
public ApiDocUtil()
public static String getControllerPath(Class<?> controllerClass)
private static String tryToGetInAppListener(Class<?> controllerClass)
public static HttpMethod getControllerMethod(Class<?> controllerClass)
public static HttpMethod[] getMethodHttpMethods(Method method, HttpMethod defaultMethod)
public static String getActionKey(Method method, String controllerPath)
public static List<ApiResponse> getApiResponseInMethod(Method method)
public static String prettyJson(String json)
public static String getterMethod2Field(Method getterMethod)
Copyright © 2024. All rights reserved.