public class TunnelService
extends java.lang.Object
构造器和说明 |
---|
TunnelService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
从 Servlet Request 和 Servlet Response 实例化一个信道服务
|
限定符和类型 | 方法和说明 |
---|---|
void |
handle(TunnelHandler handler,
TunnelHandleOptions options)
处理 WebSocket 信道请求
|
public TunnelService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void handle(TunnelHandler handler, TunnelHandleOptions options) throws ConfigurationException
handler
- 指定信道处理器处理信道事件options
- 指定信道服务的配置ConfigurationException