public class _SocketServerSession
extends org.noear.solon.socketd.SessionBase
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<io.netty.channel.ChannelHandlerContext,org.noear.solon.core.message.Session> |
sessions |
| 构造器和说明 |
|---|
_SocketServerSession(io.netty.channel.ChannelHandlerContext real) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
equals(Object o) |
static org.noear.solon.core.message.Session |
get(io.netty.channel.ChannelHandlerContext real) |
<T> T |
getAttachment() |
InetSocketAddress |
getLocalAddress() |
Collection<org.noear.solon.core.message.Session> |
getOpenSessions() |
InetSocketAddress |
getRemoteAddress() |
int |
hashCode() |
boolean |
isSecure() |
boolean |
isValid() |
org.noear.solon.core.handle.MethodType |
method() |
String |
path() |
Object |
real() |
static void |
remove(io.netty.channel.ChannelHandlerContext 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<io.netty.channel.ChannelHandlerContext,org.noear.solon.core.message.Session> sessions
public _SocketServerSession(io.netty.channel.ChannelHandlerContext real)
public static org.noear.solon.core.message.Session get(io.netty.channel.ChannelHandlerContext real)
public static void remove(io.netty.channel.ChannelHandlerContext real)
public Object real()
public String sessionId()
public org.noear.solon.core.handle.MethodType method()
public URI uri()
public String path()
public void sendAsync(org.noear.solon.core.message.Message message)
sendAsync 在接口中 org.noear.solon.core.message.SessionsendAsync 在类中 org.noear.solon.socketd.SessionBasepublic void sendAsync(String message)
sendAsync 在接口中 org.noear.solon.core.message.SessionsendAsync 在类中 org.noear.solon.socketd.SessionBasepublic 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
IOExceptionpublic 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 © 2023. All rights reserved.