public class PojoEndpointServer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static io.netty.util.AttributeKey<Map<String,List<String>>> |
REQUEST_PARAM |
static io.netty.util.AttributeKey<Session> |
SESSION_KEY |
static io.netty.util.AttributeKey<Map<String,String>> |
URI_TEMPLATE |
| 构造器和说明 |
|---|
PojoEndpointServer(PojoMethodMapping methodMapping,
ServerEndpointConfig config,
String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPathPojoMethodMapping(String path,
PojoMethodMapping pojoMethodMapping) |
void |
doBeforeHandshake(io.netty.channel.Channel channel,
io.netty.handler.codec.http.FullHttpRequest req,
String path) |
void |
doOnBinary(io.netty.channel.Channel channel,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame) |
void |
doOnClose(io.netty.channel.Channel channel) |
void |
doOnError(io.netty.channel.Channel channel,
Throwable throwable) |
void |
doOnEvent(io.netty.channel.Channel channel,
Object evt) |
void |
doOnMessage(io.netty.channel.Channel channel,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame) |
void |
doOnOpen(io.netty.channel.Channel channel,
io.netty.handler.codec.http.FullHttpRequest req,
String path) |
String |
getHost() |
Set<WsPathMatcher> |
getPathMatcherSet() |
int |
getPort() |
boolean |
hasBeforeHandshake(io.netty.channel.Channel channel,
String path) |
public static final io.netty.util.AttributeKey<Session> SESSION_KEY
public PojoEndpointServer(PojoMethodMapping methodMapping, ServerEndpointConfig config, String path)
public boolean hasBeforeHandshake(io.netty.channel.Channel channel,
String path)
public void doBeforeHandshake(io.netty.channel.Channel channel,
io.netty.handler.codec.http.FullHttpRequest req,
String path)
public void doOnOpen(io.netty.channel.Channel channel,
io.netty.handler.codec.http.FullHttpRequest req,
String path)
public void doOnClose(io.netty.channel.Channel channel)
public void doOnError(io.netty.channel.Channel channel,
Throwable throwable)
public void doOnMessage(io.netty.channel.Channel channel,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame)
public void doOnBinary(io.netty.channel.Channel channel,
io.netty.handler.codec.http.websocketx.WebSocketFrame frame)
public void doOnEvent(io.netty.channel.Channel channel,
Object evt)
public String getHost()
public int getPort()
public Set<WsPathMatcher> getPathMatcherSet()
public void addPathPojoMethodMapping(String path, PojoMethodMapping pojoMethodMapping)
Copyright © 2021. All rights reserved.