public class _SocketServerSession
extends org.noear.solon.socketd.SessionBase
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<org.smartboot.http.server.WebSocketRequest,_SocketServerSession> |
sessions |
| 构造器和说明 |
|---|
_SocketServerSession(org.smartboot.http.server.WebSocketRequest request,
org.smartboot.http.server.WebSocketResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
equals(Object o) |
static _SocketServerSession |
get(org.smartboot.http.server.WebSocketRequest req,
org.smartboot.http.server.WebSocketResponse res) |
<T> T |
getAttachment() |
InetSocketAddress |
getLocalAddress() |
static _SocketServerSession |
getOnly(org.smartboot.http.server.WebSocketRequest real) |
Collection<org.noear.solon.core.message.Session> |
getOpenSessions() |
InetSocketAddress |
getRemoteAddress() |
int |
hashCode() |
boolean |
isSecure() |
boolean |
isValid() |
org.noear.solon.core.handle.MethodType |
method() |
protected void |
onClose() |
String |
path() |
Object |
real() |
static void |
remove(org.smartboot.http.server.WebSocketRequest real) |
void |
send(org.noear.solon.core.message.Message message) |
void |
send(String message) |
void |
sendAsync(org.noear.solon.core.message.Message message) |
void |
sendAsync(String message) |
String |
sessionId() |
void |
setAttachment(Object obj) |
URI |
uri() |
attrMap, flag, flagSet, getHandshaked, header, headerMap, headerSet, listener, listener, onOpen, param, paramMap, paramSet, pathNew, pathNew, sendAndCallback, sendAndCallback, sendAndResponse, sendAndResponse, sendAndResponse, sendAndResponse, sendHandshake, sendHandshakeAndResponse, sendHeartbeat, sendHeartbeatAuto, setHandshakedpublic static final Map<org.smartboot.http.server.WebSocketRequest,_SocketServerSession> sessions
public _SocketServerSession(org.smartboot.http.server.WebSocketRequest request,
org.smartboot.http.server.WebSocketResponse response)
public static _SocketServerSession get(org.smartboot.http.server.WebSocketRequest req, org.smartboot.http.server.WebSocketResponse res)
public static _SocketServerSession getOnly(org.smartboot.http.server.WebSocketRequest real)
public static void remove(org.smartboot.http.server.WebSocketRequest real)
public Object real()
public String sessionId()
public org.noear.solon.core.handle.MethodType method()
public URI uri()
public String path()
public void sendAsync(String message)
public void sendAsync(org.noear.solon.core.message.Message message)
public void send(String message)
public void send(org.noear.solon.core.message.Message message)
send 在接口中 org.noear.solon.core.message.Sessionsend 在类中 org.noear.solon.socketd.SessionBasepublic void close()
throws IOException
IOExceptionprotected void onClose()
public boolean isValid()
public boolean isSecure()
public InetSocketAddress getRemoteAddress()
public InetSocketAddress getLocalAddress()
public void setAttachment(Object obj)
public <T> T getAttachment()
public Collection<org.noear.solon.core.message.Session> getOpenSessions()
Copyright © 2022. All rights reserved.