public class AnnotationModule extends HttpModule
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SCAN_ROUTER_INTERVAL |
static String |
DEFAULT_SCAN_ROUTER_PACKAGE |
ConcurrentHashMap<Method,String> |
METHOD_URL_MAP |
ConcurrentHashMap<String,Method> |
URL_METHOD_MAP |
| Constructor and Description |
|---|
AnnotationModule() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationRouterFilter |
getAnnotationRouterFilter()
获取注解路由过滤器
|
int |
getScanRouterInterval()
获取注解路由的扫描时间间隔
|
String |
getScanRouterPackage()
获取扫描注解路由的包路径
|
void |
install()
安装模块至 WebServer
|
void |
unInstall()
安装模块至 WebServer
|
connect, delete, filterChain, get, getModuleConfig, getParamters, getWebServer, head, init, lifeCycleDestory, lifeCycleInit, options, otherMethod, post, put, socket, traceattributes, clearAttribute, containAttribute, getAttribute, isModifyed, removeAttribute, setAttribute, setModifyedpublic ConcurrentHashMap<Method,String> METHOD_URL_MAP
public ConcurrentHashMap<String,Method> URL_METHOD_MAP
public static String DEFAULT_SCAN_ROUTER_PACKAGE
public static int DEFAULT_SCAN_ROUTER_INTERVAL
public String getScanRouterPackage()
public int getScanRouterInterval()
public AnnotationRouterFilter getAnnotationRouterFilter()
public void install()
HttpModuleinstall in class HttpModulepublic void unInstall()
HttpModuleunInstall in class HttpModuleCopyright © 2020 Voovan. All rights reserved.