public class Ws extends Object
| 构造器和说明 |
|---|
Ws(io.netty.channel.ChannelHandlerContext ctx,
byte[] binary,
String uid,
io.netty.handler.codec.http.HttpRequest request,
WsType type) |
Ws(io.netty.channel.ChannelHandlerContext ctx,
String uid,
io.netty.handler.codec.http.HttpRequest request,
WsType type) |
Ws(io.netty.channel.ChannelHandlerContext ctx,
String message,
String uid,
io.netty.handler.codec.http.HttpRequest request,
WsType type) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBinary() |
io.netty.channel.ChannelHandlerContext |
getCtx() |
String |
getMessage() |
Map<String,List<String>> |
getReqData() |
io.netty.handler.codec.http.HttpRequest |
getRequest() |
WsType |
getType() |
String |
getUid() |
String |
query(String name) |
void |
send(byte[] msg) |
void |
send(String msg) |
void |
sendBinary(byte[] msg) |
void |
sendBinary(io.netty.buffer.ByteBuf msg) |
void |
setBinary(byte[] binary) |
void |
setCtx(io.netty.channel.ChannelHandlerContext ctx) |
void |
setMessage(String message) |
void |
setReqData(Map<String,List<String>> reqData) |
void |
setRequest(io.netty.handler.codec.http.HttpRequest request) |
void |
setType(WsType type) |
void |
setUid(String uid) |
public Ws(io.netty.channel.ChannelHandlerContext ctx,
String uid,
io.netty.handler.codec.http.HttpRequest request,
WsType type)
public Ws(io.netty.channel.ChannelHandlerContext ctx,
String message,
String uid,
io.netty.handler.codec.http.HttpRequest request,
WsType type)
public WsType getType()
public void setType(WsType type)
public void send(String msg)
public void send(byte[] msg)
public void sendBinary(byte[] msg)
public void sendBinary(io.netty.buffer.ByteBuf msg)
public io.netty.channel.ChannelHandlerContext getCtx()
public void setCtx(io.netty.channel.ChannelHandlerContext ctx)
public String getMessage()
public void setMessage(String message)
public String getUid()
public void setUid(String uid)
public io.netty.handler.codec.http.HttpRequest getRequest()
public void setRequest(io.netty.handler.codec.http.HttpRequest request)
public byte[] getBinary()
public void setBinary(byte[] binary)
Copyright © 2022. All rights reserved.