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) |
decode
public HttpProtocolHandler()
public HttpProtocolHandler(HttpConfig httpServerConfig)
public void init(ImConfig imConfig) throws Exception
init
in class AbProtocolHandler
Exception
public 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
Exception
public org.tio.core.intf.Packet decode(ByteBuffer buffer, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
decode
in class AbProtocolHandler
org.tio.core.exception.AioDecodeException
public IHttpRequestHandler getHttpRequestHandler()
public void setHttpRequestHandler(IHttpRequestHandler httpRequestHandler)
public HttpConfig getHttpConfig()
public void setHttpConfig(HttpConfig httpConfig)
public IProtocol protocol()
protocol
in class AbProtocolHandler
Copyright © 2018. All rights reserved.