Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpClient.getHttpRequest() |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpRequest.copyFrom(HttpRequest request) |
HttpRequest |
HttpRequest.copyFrom(HttpRequest request,
boolean useForSend) |
HttpRequest |
HttpSessionState.getHttpRequest() |
Modifier and Type | Method and Description |
---|---|
void |
HttpSession.attach(HttpRequest request,
HttpResponse response)
绑定当前 Session 到一个 http 请求响应对
|
HttpRequest |
HttpRequest.copyFrom(HttpRequest request) |
HttpRequest |
HttpRequest.copyFrom(HttpRequest request,
boolean useForSend) |
Object |
HttpDispatcher.disposeFilter(Chain<HttpFilterConfig> filterConfigs,
HttpRequest request,
HttpResponse response)
//正向处理过滤器
|
HttpResponse |
WebServerHandler.disposeHttp(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse)
Http 请求响应处理
|
Object |
HttpDispatcher.disposeInvertedFilter(Chain<HttpFilterConfig> filterConfigs,
HttpRequest request,
HttpResponse response)
反向处理过滤器
|
void |
HttpDispatcher.disposeRoute(HttpRequest request,
HttpResponse response)
Http 路由处理函数
|
WebSocketSession |
WebSocketDispatcher.disposeSession(HttpRequest request,
WebSocketRouter webSocketRouter)
处理 WebSocketSession
|
HttpResponse |
WebServerHandler.disposeUpgrade(IoSession session,
HttpRequest httpRequest,
HttpResponse httpResponse) |
void |
HttpDispatcher.exceptionMessage(HttpRequest request,
HttpResponse response,
Exception e)
异常消息处理
|
org.voovan.http.server.RouterWrap<WebSocketRouter> |
WebSocketDispatcher.findRouter(HttpRequest request)
获取路由处理对象和注册路由
|
org.voovan.http.server.RouterWrap<HttpRouter> |
HttpDispatcher.findRouter(HttpRequest request)
获取路由处理对象和注册路由
|
WebSocketFrame |
WebSocketDispatcher.fireOpenEvent(IoSession session,
HttpRequest request)
触发 WebSocket Open 事件
|
WebSocketFrame |
WebSocketDispatcher.firePingEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Ping 事件
|
void |
WebSocketDispatcher.firePoneEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Pone 事件
|
WebSocketFrame |
WebSocketDispatcher.fireReceivedEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Received 事件
|
void |
WebSocketDispatcher.fireSentEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Sent 事件
|
static boolean |
WebServer.hasAdminRight(HttpRequest request)
是否具备管理权限
这里控制必须是 127.0.0.1的 ip 地址, 并且需要提供 authToken
|
boolean |
HttpDispatcher.isFrameWorkRequest(HttpRequest request)
是否是系统请求
|
boolean |
HttpDispatcher.isStaticFile(HttpRequest request)
判断当前的请求是否是静态文件
|
HttpSession |
SessionManager.newSession(HttpRequest request)
获得 Session 如果没有对应的 session 则创建一个新的 Session
|
Object |
HttpFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult)
请求过滤器,在请求之前
如果任何一个过滤器返回的是null, 则他后面的过滤器和路由都不会被执行
如果最后一个过滤器如果返回 null, 则不会进行路由处理
整个过滤器执行完成后,返回response.
|
Object |
HttpFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult)
响应过滤器,在响应之后
路由处理器处理完成,且返回给浏览器之前
|
void |
HttpRouter.process(HttpRequest request,
HttpResponse response) |
void |
HttpDispatcher.process(HttpRequest request,
HttpResponse response)
Http 请求响应处理函数,入口函数
|
WebSocketFrame |
WebSocketDispatcher.process(WebSocketDispatcher.WebSocketEvent event,
IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
路由处理函数
|
void |
HttpSessionState.setHttpRequest(HttpRequest httpRequest) |
boolean |
HttpDispatcher.tryIndex(HttpRequest request,
HttpResponse response)
尝试用定义首页索引文件的名称
|
Modifier and Type | Method and Description |
---|---|
static void |
WebContext.writeAccessLog(WebServerConfig webServerConfig,
HttpRequest request,
HttpResponse response)
写入access.log
|
Modifier and Type | Method and Description |
---|---|
Object |
UrlLimitIpFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
CrossOriginFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
RateLimiterFilter.onRequest(HttpFilterConfig httpFilterConfig,
HttpRequest httpRequest,
HttpResponse httpResponse,
Object o) |
Object |
UrlLimitIpFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
CrossOriginFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
RateLimiterFilter.onResponse(HttpFilterConfig httpFilterConfig,
HttpRequest httpRequest,
HttpResponse httpResponse,
Object o) |
Modifier and Type | Method and Description |
---|---|
Object |
AnnotationRouterFilter.afterInvoke(HttpRequest request,
HttpResponse response,
AnnotationRouter router,
Object result)
注解路由后置拦截方法
|
Object |
AnnotationRouterFilter.beforeInvoke(HttpRequest request,
HttpResponse response,
AnnotationRouter router)
注解路由前置拦截方法
|
Object |
AnnotationRouterFilter.exception(HttpRequest request,
HttpResponse response,
AnnotationRouter router,
Exception e)
注解路由异常拦截方法
|
Object |
AnnotationRouter.invokeRouterMethod(HttpRequest request,
HttpResponse response,
Class clazz,
Method method)
将一个 Http 请求映射到一个类的方法调用
|
void |
AnnotationRouter.process(HttpRequest request,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
void |
HttpMonitorFilter.ipAddressAnalysis(HttpRequest request)
ip 数据的分析
|
Object |
HttpMonitorFilter.onRequest(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
Object |
HttpMonitorFilter.onResponse(HttpFilterConfig filterConfig,
HttpRequest request,
HttpResponse response,
Object prevFilterResult) |
void |
MonitorRouter.process(HttpRequest request,
HttpResponse response) |
void |
HttpMonitorFilter.requestAnalysis(HttpRequest request)
请求数据的分析
|
Modifier and Type | Method and Description |
---|---|
void |
MimeFileRouter.fillMimeFile(File responseFile,
HttpRequest request,
HttpResponse response)
填充 mime 文件到 response
|
File |
MimeFileRouter.getStaticFile(HttpRequest request)
获取请求对应的静态文件
|
boolean |
MimeFileRouter.isNotModify(File responseFile,
HttpRequest request,
HttpResponse response)
判断是否是304 not modify
|
void |
MimeFileRouter.process(HttpRequest request,
HttpResponse response) |
void |
OptionsRouter.process(HttpRequest request,
HttpResponse response) |
Copyright © 2020 Voovan. All rights reserved.