Package com.intuit.karate.debug
Class DapServerHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<DapMessage>
-
- com.intuit.karate.debug.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 Summary
Constructors Constructor Description DapServerHandler(DapServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, DapMessage dm)protected voidcontinueEvent(long threadId)RuntimeHookcreate()protected voidevaluatePreStep(ScenarioRuntime context)protected StringevaluateVarExpression(Map<String,Variable> vars, String expression)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)protected booleanisBreakpoint(Step step, int line, ScenarioRuntime context)protected longnextFrameId()protected StringnormalizePath(String path)protected voidoutput(String text)protected voidstopEvent(long threadId, String reason, String description)-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
DapServerHandler
public DapServerHandler(DapServer server)
-
-
Method Detail
-
isBreakpoint
protected boolean isBreakpoint(Step step, int line, ScenarioRuntime context)
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, DapMessage dm) throws Exception- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<DapMessage>- Throws:
Exception
-
evaluateVarExpression
protected String evaluateVarExpression(Map<String,Variable> vars, String expression)
-
evaluatePreStep
protected void evaluatePreStep(ScenarioRuntime context)
-
create
public RuntimeHook create()
- Specified by:
createin interfaceRuntimeHookFactory
-
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:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
-