1 /**
2 * .
3 * Copyright � 1999 Erich P G.
4 *
5 */
6
7 package autohit.transport;
8
9 import HTTPClient.NVPair;
10
11 /**
12 * A standard response to a Query.
13 *
14 * We are going to "borrow" a class from the HTTPClient lib--NVPair.
15 * However, this Query class is *NOT* specific to http transports.
16 *
17 * Some transport will allow more than one Response per Query. They can be
18 * chained via the 'next' field.
19 *
20 * @author Erich P. Gatejen
21 * @version 1.0
22 * <i>Version History</i>
23 * <code>EPG - Initial - 18Jan99
24 * EPG - Allow response chaining - 5Feb99</code>
25 *
26 */
27 public class Response {
28
29 // --- FINAL FIELDS ------------------------------------------------------
30
31 // --- FIELDS ------------------------------------------------------------
32
33 /**
34 * Headers.
35 */
36 public NVPair[] headers;
37
38 /**
39 * Response code.
40 */
41 public int code;
42
43 /**
44 * Content data.
45 */
46 public byte[] content;
47
48 /**
49 * Content length.
50 */
51 public int cLength;
52
53 /**
54 * Next response.
55 */
56 public Response next;
57
58 // --- PUBLIC METHODS ----------------------------------------------------
59
60 // --- PRIVATE METHODS ---------------------------------------------------
61 }
|