- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.tomcat.websocket.WsSession.onClose()
方法的一些代码示例,展示了WsSession.onClose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsSession.onClose()
方法的具体详情如下:
包路径:org.apache.tomcat.websocket.WsSession
类名称:WsSession
方法名:onClose
[英]Called when a close message is received. Should only ever happen once. Also called after a protocol error when the ProtocolHandler needs to force the closing of the connection.
[中]收到关闭消息时调用。应该只发生一次。当ProtocolHandler需要强制关闭连接时,也在协议错误后调用。
代码示例来源:origin: org.apache.tomcat.embed/tomcat-embed-websocket
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the
* client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket
* immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from
* whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: codefollower/Tomcat-Research
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the
* client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket
* immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from
* whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: org.apache.tomcat/tomcat7-websocket
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the
* client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket
* immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from
* whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: org.apache.tomcat/tomcat-websocket
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the
* client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket
* immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from
* whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: org.jboss.web/jbossweb
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the
* client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket
* immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from
* whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: Red5/red5-plugins
private void close(CloseReason cr) {
/*
* Any call to this method is a result of a problem reading from the client. At this point that state of the connection is unknown.
* Attempt to send a close frame to the client and then close the socket immediately. There is no point in waiting for a close frame from the
* client because there is no guarantee that we can recover from whatever messed up state the client put the connection into.
*/
wsSession.onClose(cr);
}
代码示例来源:origin: org.apache.tomcat/tomcat-websocket
wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason));
} else if (opCode == Constants.OPCODE_PING) {
if (wsSession.isOpen()) {
代码示例来源:origin: org.apache.tomcat.embed/tomcat-embed-websocket
wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason));
} else if (opCode == Constants.OPCODE_PING) {
if (wsSession.isOpen()) {
代码示例来源:origin: org.apache.tomcat/tomcat7-websocket
wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason));
} else if (opCode == Constants.OPCODE_PING) {
if (wsSession.isOpen()) {
代码示例来源:origin: org.jboss.web/jbossweb
wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason));
} else if (opCode == Constants.OPCODE_PING) {
if (wsSession.isOpen()) {
代码示例来源:origin: codefollower/Tomcat-Research
wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason));
} else if (opCode == Constants.OPCODE_PING) {
if (wsSession.isOpen()) {
本文整理了Java中org.apache.tomcat.websocket.WsSession.getPongMessageHandler()方法的一些代码示例,展示了WsSession.getPon
本文整理了Java中org.apache.tomcat.websocket.WsSession.sendCloseMessage()方法的一些代码示例,展示了WsSession.sendCloseMe
本文整理了Java中org.apache.tomcat.websocket.WsSession.getMaxTextMessageBufferSize()方法的一些代码示例,展示了WsSession.
本文整理了Java中org.apache.tomcat.websocket.WsSession.setWsFrame()方法的一些代码示例,展示了WsSession.setWsFrame()的具体用法
本文整理了Java中org.apache.tomcat.websocket.WsSession.getMaxBinaryMessageBufferSize()方法的一些代码示例,展示了WsSessio
本文整理了Java中org.apache.tomcat.websocket.WsSession.unregisterFuture()方法的一些代码示例,展示了WsSession.unregisterF
本文整理了Java中org.apache.tomcat.websocket.WsSession.fireEndpointOnError()方法的一些代码示例,展示了WsSession.fireEndp
本文整理了Java中org.apache.tomcat.websocket.WsSession.checkState()方法的一些代码示例,展示了WsSession.checkState()的具体用法
本文整理了Java中org.apache.tomcat.websocket.WsSession.getBinaryMessageHandler()方法的一些代码示例,展示了WsSession.getB
本文整理了Java中org.apache.tomcat.websocket.WsSession.updateLastActive()方法的一些代码示例,展示了WsSession.updateLastA
本文整理了Java中org.apache.tomcat.websocket.WsSession.registerFuture()方法的一些代码示例,展示了WsSession.registerFutur
本文整理了Java中org.apache.tomcat.websocket.WsSession.getTextMessageHandler()方法的一些代码示例,展示了WsSession.getTex
本文整理了Java中org.apache.tomcat.websocket.WsSession.doAddMessageHandler()方法的一些代码示例,展示了WsSession.doAddMes
本文整理了Java中org.apache.tomcat.websocket.WsSession.checkExpiration()方法的一些代码示例,展示了WsSession.checkExpirat
本文整理了Java中org.apache.tomcat.websocket.WsSession.getBasicRemote()方法的一些代码示例,展示了WsSession.getBasicRemot
本文整理了Java中org.apache.tomcat.websocket.WsSession.getUserPrincipal()方法的一些代码示例,展示了WsSession.getUserPrin
本文整理了Java中org.apache.tomcat.websocket.WsSession.()方法的一些代码示例,展示了WsSession.()的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中org.apache.tomcat.websocket.WsSession.getUserProperties()方法的一些代码示例,展示了WsSession.getUserPro
本文整理了Java中org.apache.tomcat.websocket.WsSession.doClose()方法的一些代码示例,展示了WsSession.doClose()的具体用法。这些代码示
本文整理了Java中org.apache.tomcat.websocket.WsSession.onClose()方法的一些代码示例,展示了WsSession.onClose()的具体用法。这些代码示
我是一名优秀的程序员,十分优秀!