public class ConfigurableHttpRequestHandler extends HttpRequestHandler
RequestHandlers are configured by the PluginManager.
| Constructor and Description |
|---|
ConfigurableHttpRequestHandler(FolderScanPluginManager pluginManager)
constructing a ConfigurableHttpRequestHandler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptInboundMessage(java.lang.Object msg) |
protected void |
handleRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest req,
io.netty.handler.codec.http.QueryStringDecoder decoder,
java.lang.String[] segments) |
channelRead0, exceptionCaughtchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic ConfigurableHttpRequestHandler(FolderScanPluginManager pluginManager)
pluginManager - a pluginManager instance used to search for available plug-ins to
process a request.protected void handleRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest req,
io.netty.handler.codec.http.QueryStringDecoder decoder,
java.lang.String[] segments)
throws ai.djl.ModelException
handleRequest in class HttpRequestHandlerai.djl.ModelExceptionpublic boolean acceptInboundMessage(java.lang.Object msg)
throws java.lang.Exception
acceptInboundMessage in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>java.lang.Exception