Class DapServerHandler

  • All Implemented Interfaces:
    RuntimeHookFactory, io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class DapServerHandler
    extends io.netty.channel.SimpleChannelInboundHandler<DapMessage>
    implements RuntimeHookFactory
    Author:
    pthomas3
    • Constructor Detail

      • DapServerHandler

        public DapServerHandler​(DapServer server)
    • Method Detail

      • isBreakpoint

        protected boolean isBreakpoint​(Step step,
                                       int line,
                                       ScenarioRuntime context)
      • normalizePath

        protected String normalizePath​(String path)
      • channelRead0

        protected void channelRead0​(io.netty.channel.ChannelHandlerContext ctx,
                                    DapMessage dm)
                             throws Exception
        Specified by:
        channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<DapMessage>
        Throws:
        Exception
      • evaluatePreStep

        protected void evaluatePreStep​(ScenarioRuntime context)
      • stopEvent

        protected void stopEvent​(long threadId,
                                 String reason,
                                 String description)
      • continueEvent

        protected void continueEvent​(long threadId)
      • nextFrameId

        protected long nextFrameId()
      • output

        protected void output​(String text)
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
                             throws Exception
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception
      • channelActive

        public void channelActive​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        channelActive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelActive in class io.netty.channel.ChannelInboundHandlerAdapter