public class HttpServerAioHandler extends Object implements org.tio.server.intf.ServerAioHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected HttpConfig |
httpConfig |
static String |
REQUEST_KEY |
| 构造器和说明 |
|---|
HttpServerAioHandler(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.GroupContext groupContext,
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 HttpServerAioHandler(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.AioDecodeException
decode 在接口中 org.tio.core.intf.AioHandlerorg.tio.core.exception.AioDecodeExceptionpublic ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
encode 在接口中 org.tio.core.intf.AioHandlerpublic HttpConfig getHttpConfig()
public void handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext)
throws Exception
handler 在接口中 org.tio.core.intf.AioHandlerExceptionpublic void setHttpConfig(HttpConfig httpConfig)
httpConfig - the httpConfig to setCopyright © 2018. All rights reserved.