@FunctionalInterface public interface HttpFilter
Filter
使用Modifier and Type | Method and Description |
---|---|
void |
doFilter(HttpServerRequest req,
HttpServerResponse res,
com.sun.net.httpserver.Filter.Chain chain)
执行过滤
|
void doFilter(HttpServerRequest req, HttpServerResponse res, com.sun.net.httpserver.Filter.Chain chain) throws IOException
req
- HttpServerRequest
请求对象,用于获取请求内容res
- HttpServerResponse
响应对象,用于写出内容chain
- Filter.Chain
IOException
- IO异常Copyright © 2024. All rights reserved.