// // (C) COPYRIGHT International Business Machines Corp. 1997 // All Rights Reserved // Licensed Materials - Property of IBM // // US Government Users Restricted Rights - Use, duplication or // disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // /* * $Header: /home/gda/dxcvs/dx/src/ui++/java/dx/protocol/execOnceMsg.java,v 1.1.1.1 1999/03/24 15:17:32 gda Exp $ */ package dx.protocol; import java.net.*; import java.util.*; // // public class execOnceMsg extends threadMsg { private String macro; public String getMacroName() { return macro; } public void setMacroName(String c) { macro = c; } public execOnceMsg() { super(); macro = null; } public execOnceMsg(String inputLine) { super(inputLine); macro = null; try { int comma = inputLine.indexOf((int)','); macro = inputLine.substring(comma+1); // // hack to deal with the fact that there is a subclass // comma = macro.indexOf((int)','); if (comma != -1) macro = macro.substring(0, comma); } catch (Exception e) { } } public static String GetCommand() throws ClassNotFoundException { return Class.forName("dx.protocol.execOnceMsg").getName(); } public String toString() { return getHeader() + "," + macro; } }