public class HttpTioServerHandler extends Object implements org.tio.server.intf.TioServerHandler
| Modifier and Type | Field and Description |
|---|---|
protected HttpConfig |
httpConfig |
static String |
REQUEST_KEY |
| Constructor and Description |
|---|
HttpTioServerHandler(HttpConfig httpConfig,
HttpRequestHandler requestHandler) |
| Modifier and Type | Method and Description |
|---|---|
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 context) |
public static final String REQUEST_KEY
protected final 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 in interface 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 in interface org.tio.core.intf.TioHandlerpublic HttpConfig getHttpConfig()
Copyright © 2025. All rights reserved.