public class HttpProtocolHandler extends AbProtocolHandler
| Constructor and Description |
|---|
HttpProtocolHandler() |
HttpProtocolHandler(HttpConfig httpServerConfig) |
| Modifier and Type | Method and Description |
|---|---|
org.tio.core.intf.Packet |
decode(ByteBuffer buffer,
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() |
IHttpRequestHandler |
getHttpRequestHandler() |
void |
handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext) |
void |
init(ImConfig imConfig) |
IProtocol |
protocol() |
void |
setHttpConfig(HttpConfig httpConfig) |
void |
setHttpRequestHandler(IHttpRequestHandler httpRequestHandler) |
decodepublic HttpProtocolHandler()
public HttpProtocolHandler(HttpConfig httpServerConfig)
public void init(ImConfig imConfig) throws Exception
init in class AbProtocolHandlerExceptionpublic ByteBuffer encode(org.tio.core.intf.Packet packet, org.tio.core.GroupContext groupContext, org.tio.core.ChannelContext channelContext)
public void handler(org.tio.core.intf.Packet packet,
org.tio.core.ChannelContext channelContext)
throws Exception
Exceptionpublic org.tio.core.intf.Packet decode(ByteBuffer buffer, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
decode in class AbProtocolHandlerorg.tio.core.exception.AioDecodeExceptionpublic IHttpRequestHandler getHttpRequestHandler()
public void setHttpRequestHandler(IHttpRequestHandler httpRequestHandler)
public HttpConfig getHttpConfig()
public void setHttpConfig(HttpConfig httpConfig)
public IProtocol protocol()
protocol in class AbProtocolHandlerCopyright © 2018. All rights reserved.