1 /**
2 * .
3 * Copyright � 1999 Erich P G.
4 *
5 */
6
7 package autohit.vm;
8
9 import java.io.Serializable;
10
11 /**
12 * A Virtual Machine instruction. This implements a GET query. It is up to transport
13 * registered with the VM to actually perform the GET. While this instruction is
14 * primarily designed to handle HTTP GET operations, a different transport could use it
15 * effectively.
16 *
17 * @see autohit.vm.VMInstruction
18 *
19 * @author Erich P. Gatejen
20 * @version 1.0
21 * <i>Version History</i>
22 * <code>EPG - Initial - 5Jan99</code>
23 *
24 */
25 public class VMIGet extends VMInstruction {
26
27 // --- FINAL FIELDS ------------------------------------------------------
28
29 // --- FIELDS ------------------------------------------------------------
30
31 /**
32 * The query string. For the HTTP Transport this will be a URL without the
33 * domain.
34 * @serial
35 */
36 public String qs;
37
38 // --- PUBLIC METHODS ----------------------------------------------------
39
40 /**
41 * Default constructor.
42 */
43 public VMIGet() {
44 nToken = VMInstruction.GET;
45 }
46
47 /**
48 * Dump this Instruction. Mostly for debugging.
49 *
50 * @return a String containing the dump.
51 */
52 public String toString() {
53 StringBuffer d = new StringBuffer();
54 d.append(" VMIGet ---------------------------- \n");
55 d.append(" qs = " + qs + "\n");
56 return d.toString();
57 }
58
59 // --- PRIVATE METHODS ---------------------------------------------------
60
61 }
|