public class HttpTioServerHandler extends Object implements org.tio.server.intf.TioServerHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected HttpConfig |
httpConfig |
static String |
REQUEST_KEY |
| 构造器和说明 |
|---|
HttpTioServerHandler(HttpConfig httpConfig,
HttpRequestHandler requestHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpRequest |
decode(ByteBuffer buffer,
int limit,
int position,
int readableLength,
org.tio.core.ChannelContext channelContext) |
ByteBuffer |
encode(org.tio.core.intf.Packet packet,
org.tio.core.TioConfig tioConfig,
org.tio.core.ChannelContext channelContext) |
HttpConfig |
getHttpConfig() |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
void |
setHttpConfig(HttpConfig httpConfig) |
protected HttpConfig httpConfig
public HttpTioServerHandler(HttpConfig httpConfig, HttpRequestHandler requestHandler)
public HttpRequest decode(ByteBuffer buffer, int limit, int position, int readableLength, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.TioDecodeException
decode 在接口中 org.tio.core.intf.TioHandlerorg.tio.core.exception.TioDecodeExceptionpublic ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.TioConfig tioConfig, org.tio.core.ChannelContext channelContext)
encode 在接口中 org.tio.core.intf.TioHandlerpublic HttpConfig getHttpConfig()
public void handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext)
throws Exception
handler 在接口中 org.tio.core.intf.TioHandlerExceptionpublic void setHttpConfig(HttpConfig httpConfig)
httpConfig - the httpConfig to setCopyright © 2022. All rights reserved.