public class HttpTioServerHandler extends Object implements org.tio.server.intf.TioServerHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.tio.http.common.HttpConfig |
httpConfig |
static String |
REQUEST_KEY |
| 构造器和说明 |
|---|
HttpTioServerHandler(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.tio.http.common.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) |
org.tio.http.common.HttpConfig |
getHttpConfig() |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
void |
setHttpConfig(org.tio.http.common.HttpConfig httpConfig) |
public HttpTioServerHandler(org.tio.http.common.HttpConfig httpConfig,
org.tio.http.common.handler.HttpRequestHandler requestHandler)
public org.tio.http.common.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 org.tio.http.common.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(org.tio.http.common.HttpConfig httpConfig)
httpConfig - the httpConfig to setCopyright © 2022. All rights reserved.