接口的使用
qhs.interfaces.Connection
-
使用Connection的程序包 程序包 说明 qhs.interfaces -
-
qhs.interfaces中Connection的使用
返回Connection的qhs.interfaces中的方法 修饰符和类型 方法 说明 ConnectionWebSocketStream. getConnection()返回WS流所在的http连接。参数类型为Connection的qhs.interfaces中的方法 修饰符和类型 方法 说明 voidConnListener. closed(Connection conn)用户代码调用Connection.close()时,Connection.close()调用监听器的本方法。voidWSServiceModule. detectedNewStream(ThreadContext tc, Connection conn, WebSocketStream newStream)detectedNewStream()方法的调用说明qhs检测到新的WS流。voidConnectionCode. invoke(Connection conn)voidErrorResponseCreater. invoke(ThreadContext tc, Connection conn, ErrorReason er)qhs通过调用invoke()实例方法来构建表达错误原因的答复。voidHTTPServiceModule. invoke(ThreadContext tc, Connection conn)qhs通过调用invoke()实例方法来构建http答复。booleanWSServiceModule. invoke(ThreadContext tc, Connection conn, WebSocketStream readableStream)qhs检测到浏览器发送的WebSocket数据就调用invoke()方法。voidHTTPServiceModule. push(ThreadContext tc, Connection conn)qhs通过调用push()实例方法来构建推送答复。intSocketChannelRW. read(Connection conn, ReadableDataDetecter rdd, java.nio.ByteBuffer buffer, java.nio.channels.SocketChannel sc)从套接字通道读取来自客户端的数据。FileFileRetriever. retrieve(ThreadContext tc, Connection conn, java.lang.String urlPath)检索虚拟文件并且返回检索得到的虚拟文件。RewriteResultURLRewriter. rewrite(ThreadContext tc, Connection conn, URIParser uriParser)重写URL。intSocketChannelRW. write(Connection conn, ReadableDataDetecter rdd, java.nio.ByteBuffer buffer, java.nio.channels.SocketChannel sc)对套接字通道写入数据从而把数据发送给客户端。
-