| Package | Description |
|---|---|
| org.dromara.hutool.http.server.engine |
HTTP服务器引擎包
|
| org.dromara.hutool.http.server.engine.jetty |
Jetty9引擎实现
|
| org.dromara.hutool.http.server.engine.sun |
HttpServer引擎实现包 |
| org.dromara.hutool.http.server.handler |
HTTP服务器请求和响应处理器的统一封装
|
| Modifier and Type | Field and Description |
|---|---|
protected HttpHandler |
AbstractServerEngine.handler |
| Modifier and Type | Method and Description |
|---|---|
ServerEngine |
ServerEngine.setHandler(HttpHandler handler)
设置请求处理器
|
AbstractServerEngine |
AbstractServerEngine.setHandler(HttpHandler handler) |
| Constructor and Description |
|---|
Jetty9Handler(HttpHandler handler)
构造
|
| Modifier and Type | Method and Description |
|---|---|
SimpleServer |
SimpleServer.addAction(String path,
HttpHandler action)
增加请求处理规则,使用默认的
RootHandler,默认从当前项目根目录读取页面 |
| Modifier and Type | Class and Description |
|---|---|
class |
RootHandler
默认的处理器,通过解析用户传入的path,找到网页根目录下对应文件后返回
|
Copyright © 2024. All rights reserved.