public class NioSocketSession extends SessionBase
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<io.netty.channel.Channel,org.noear.solon.core.message.Session> |
sessions |
handshakeMessage| 构造器和说明 |
|---|
NioSocketSession(io.netty.channel.Channel real) |
NioSocketSession(Connector<io.netty.channel.Channel> connector) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
equals(Object o) |
static org.noear.solon.core.message.Session |
get(io.netty.channel.Channel 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.Channel real) |
void |
send(org.noear.solon.core.message.Message message) |
void |
send(String message) |
String |
sessionId() |
void |
setAttachment(Object obj) |
URI |
uri() |
flag, flagSet, getHandshaked, header, headerMap, headerSet, listener, listener, onOpen, param, paramMap, paramSet, sendAndCallback, sendAndCallback, sendAndResponse, sendAndResponse, sendAndResponse, sendAndResponse, sendHandshake, sendHandshakeAndResponse, sendHeartbeat, sendHeartbeatAuto, setHandshakedpublic static Map<io.netty.channel.Channel,org.noear.solon.core.message.Session> sessions
public NioSocketSession(io.netty.channel.Channel real)
public NioSocketSession(Connector<io.netty.channel.Channel> connector)
public static org.noear.solon.core.message.Session get(io.netty.channel.Channel real)
public static void remove(io.netty.channel.Channel real)
public Object real()
public String sessionId()
public org.noear.solon.core.handle.MethodType method()
public URI uri()
public String path()
public void send(String message)
public void send(org.noear.solon.core.message.Message message)
send 在接口中 org.noear.solon.core.message.Sessionsend 在类中 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 © 2021. All rights reserved.