public class HttpRouterConfig extends Object
Constructor and Description |
---|
HttpRouterConfig()
构造函数
|
HttpRouterConfig(Map<String,Object> configMap)
构造函数
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
获取过路由处理类名
|
HttpRouter |
getHttpRouterInstance()
获取HttpRouter路由处理实例
|
String |
getMethod()
获取Http请求方法
|
String |
getName()
获取路由名称
|
String |
getRoute()
获取路由路径
|
WebSocketRouter |
getWebSocketRouterInstance()
获取WebSocketRouter路由处理实例
|
void |
setClassName(String className)
设置路由处理名
|
void |
setMethod(String method)
设置Http请求方法
|
void |
setName(String name)
设置路由名称
|
void |
setRoute(String route)
设置路由路径名称
|
public HttpRouterConfig(Map<String,Object> configMap)
configMap
- 过滤去定义 Mappublic HttpRouterConfig()
public String getName()
public void setName(String name)
name
- 路由名称public String getRoute()
public void setRoute(String route)
route
- 路由路径public String getClassName()
public void setClassName(String className)
className
- 路由处理类名public String getMethod()
public void setMethod(String method)
method
- Http请求方法public HttpRouter getHttpRouterInstance()
public WebSocketRouter getWebSocketRouterInstance()
Copyright © 2020 Voovan. All rights reserved.