Package org.yamcs.web
Class IndexHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
-
- org.yamcs.http.Handler
-
- org.yamcs.web.IndexHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class IndexHandler extends Handler
Handler that always responds with the contents of the index.html file of the webapp. The file is generated dynamically because we do some templating on it.
-
-
Constructor Summary
Constructors Constructor Description IndexHandler(YConfiguration config, HttpServer httpServer, Path webRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(HandlerContext ctx)-
Methods inherited from class org.yamcs.http.Handler
channelRead0
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
IndexHandler
public IndexHandler(YConfiguration config, HttpServer httpServer, Path webRoot)
-
-
Method Detail
-
handle
public void handle(HandlerContext ctx)
-
-