Package | Description |
---|---|
org.voovan.http.server | |
org.voovan.http.server.context |
Modifier and Type | Method and Description |
---|---|
WebServer |
WebServer.connect(String routeRegexPath,
HttpRouter router)
CONNECT 请求
|
WebServer |
WebServer.delete(String routeRegexPath,
HttpRouter router)
DELETE 请求
|
WebServer |
WebServer.get(String routeRegexPath,
HttpRouter router)
GET 请求
|
WebServer |
WebServer.getAndPost(String routeRegexPath,
HttpRouter router)
同时注册 GET 和 POST 请求
|
WebServer |
HttpModule.getWebServer()
获取WebServer
|
WebServer |
WebServer.head(String routeRegexPath,
HttpRouter router)
HEAD 请求
|
static WebServer |
WebServer.newInstance()
构建新的 WebServer,从配置文件读取配置
|
static WebServer |
WebServer.newInstance(File configFile)
构建新的 WebServer,从配置文件中读取配置
方便从集中配置中心加载配置
|
static WebServer |
WebServer.newInstance(int port)
构建新的 WebServer,指定服务端口
|
static WebServer |
WebServer.newInstance(String json)
构建新的 WebServer,从配置JSON中读取配置
方便从集中配置中心加载配置
|
static WebServer |
WebServer.newInstance(String[] args)
启动服务
|
static WebServer |
WebServer.newInstance(WebServerConfig config)
构建新的 WebServer,从配置对象读取配置
|
WebServer |
WebServer.options(String routeRegexPath,
HttpRouter router)
OPTIONS 请求
|
WebServer |
WebServer.otherMethod(String method,
String routeRegexPath,
HttpRouter router)
其他请求
|
WebServer |
WebServer.post(String routeRegexPath,
HttpRouter router)
POST 请求
|
WebServer |
WebServer.put(String routeRegexPath,
HttpRouter router)
PUT 请求
|
WebServer |
WebServer.serve()
启动服务
阻塞方式启动
|
WebServer |
WebServer.socket(String routeRegexPath,
WebSocketRouter router)
WebSocket 服务
|
WebServer |
WebServer.syncServe()
启动服务
非阻塞方式启动
|
WebServer |
WebServer.trace(String routeRegexPath,
HttpRouter router)
TRACE 请求
|
Modifier and Type | Method and Description |
---|---|
void |
WebServerLifeCycle.destory(WebServer webServer) |
void |
WebServerLifeCycle.init(WebServer webServer) |
void |
HttpModule.init(WebServer webServer,
HttpModuleConfig moduleConfig)
初始化模块操作
|
Modifier and Type | Method and Description |
---|---|
HttpModule |
HttpModuleConfig.getHttpModuleInstance(WebServer webServer)
获取HttpBuizFilter过滤器实例
|
Copyright © 2020 Voovan. All rights reserved.