| Package | Description |
|---|---|
| org.dromara.hutool.http.server.engine.sun |
HttpServer引擎实现包 |
| org.dromara.hutool.http.server.engine.sun.filter |
Filter 实现包装 |
| Modifier and Type | Method and Description |
|---|---|
SunHttpServerEngine |
SunHttpServerEngine.addFilter(HttpFilter filter)
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SunHttpServerEngine.createContext(String, HttpHandler)
|
SimpleServer |
SimpleServer.addFilter(HttpFilter filter)
增加请求过滤器,此过滤器对所有请求有效
此方法需在以下方法前之前调用: SimpleServer.setRoot(File)
SimpleServer.setRoot(String)
SimpleServer.createContext(String, HttpHandler)
SimpleServer.addHandler(String, HttpHandler)
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultExceptionFilter
默认异常处理拦截器
|
class |
ExceptionFilter
异常处理过滤器
|
Copyright © 2024. All rights reserved.