public class WebSocketImpl extends WebSocketBase
构造器和说明 |
---|
WebSocketImpl(io.undertow.websockets.core.WebSocketChannel real) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭
|
long |
getIdleTimeout()
获取闲置超时
|
boolean |
isSecure()
是否安全
|
boolean |
isValid()
是否有效
|
java.net.InetSocketAddress |
localAddress()
获取本地地址
|
java.net.InetSocketAddress |
remoteAddress()
获取远程地址
|
java.util.concurrent.Future<java.lang.Void> |
send(java.nio.ByteBuffer binary)
发送字节
|
java.util.concurrent.Future<java.lang.Void> |
send(java.lang.String text)
发送文本
|
void |
setIdleTimeout(long idleTimeout)
设置闲置超时
|
public boolean isValid()
WebSocket
public boolean isSecure()
WebSocket
public java.net.InetSocketAddress remoteAddress()
WebSocket
public java.net.InetSocketAddress localAddress()
WebSocket
public long getIdleTimeout()
WebSocket
public void setIdleTimeout(long idleTimeout)
WebSocket
public java.util.concurrent.Future<java.lang.Void> send(java.lang.String text)
WebSocket
text
- 文本public java.util.concurrent.Future<java.lang.Void> send(java.nio.ByteBuffer binary)
WebSocket
binary
- 二进制public void close()
WebSocket
close
在接口中 WebSocket
close
在类中 WebSocketBase