1 55 56 package org.apache.bsf.debug.meta; 57 58 import java.io.*; 59 import java.net.*; 60 import org.apache.bsf.debug.jsdi.*; 61 import org.apache.bsf.debug.*; 62 import org.apache.bsf.debug.util.*; 63 64 public class DebuggerDispatcher extends JsCallbacksDispatcher { 65 66 public DebuggerDispatcher(SocketConnection con) { 67 super(con); 68 } 69 70 public void dispatch(ResultCell rcell) throws Exception { 71 72 String lang; 73 int tid, uid; 74 boolean bool; 75 BSFDebugger self; 76 JsEngine engine; 77 78 self = (BSFDebugger) rcell.selfSkel; 79 switch (rcell.methodId) { 80 81 case DebugConstants.BSFD_CREATED_ENGINE: 82 lang = (String )rcell.readObject(); 83 engine = (JsEngine)rcell.readObject(); 84 self.createdEngine(lang,engine); 85 rcell.voidResult(); 86 break; 87 88 case DebugConstants.BSFD_DELETED_ENGINE: 89 engine = (JsEngine)rcell.readObject(); 90 self.deletedEngine(engine); 91 rcell.voidResult(); 92 break; 93 94 case DebugConstants.BSFD_DISCONNECT: 95 self.disconnect(); 96 rcell.voidResult(); 97 break; 98 default: 99 super.dispatch(rcell); 100 } 101 } 102 } 103 | Popular Tags |