1 |
tdb |
1.6 |
//---PACKAGE DECLARATION--- |
2 |
tdb |
1.1 |
package uk.ac.ukc.iscream.client; |
3 |
|
|
|
4 |
tdb |
1.6 |
//---IMPORTS--- |
5 |
|
|
import uk.ac.ukc.iscream.componentmanager.*; |
6 |
|
|
import uk.ac.ukc.iscream.core.*; |
7 |
tdb |
1.2 |
import uk.ac.ukc.iscream.util.*; |
8 |
tdb |
1.1 |
|
9 |
tdb |
1.6 |
/** |
10 |
|
|
* A servant for the LocalClient. |
11 |
|
|
* |
12 |
|
|
* @author $Author$ |
13 |
|
|
* @version $Id$ |
14 |
|
|
*/ |
15 |
tdb |
1.1 |
class ClientServant extends ClientPOA { |
16 |
tdb |
1.6 |
|
17 |
|
|
//---FINAL ATTRIBUTES--- |
18 |
|
|
|
19 |
|
|
/** |
20 |
|
|
* The current CVS revision of this class |
21 |
|
|
*/ |
22 |
|
|
public static final String REVISION = "$Revision: 1.1 $"; |
23 |
|
|
|
24 |
|
|
//---STATIC METHODS--- |
25 |
|
|
|
26 |
|
|
//---CONSTRUCTORS--- |
27 |
|
|
|
28 |
|
|
//---PUBLIC METHODS--- |
29 |
|
|
|
30 |
|
|
/** |
31 |
|
|
* This should deal with the data... :) |
32 |
|
|
* |
33 |
|
|
* @param xml The String of XML data |
34 |
|
|
*/ |
35 |
tdb |
1.1 |
public void receiveXML(String xml) { |
36 |
tdb |
1.6 |
// queue the xml? |
37 |
|
|
//XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml); |
38 |
|
|
//XMLPacket packet = xmlPacketMaker.createXMLPacket(); |
39 |
|
|
// deal with the packet here, somehow, maybe... |
40 |
tdb |
1.1 |
} |
41 |
tdb |
1.6 |
|
42 |
|
|
/** |
43 |
|
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
44 |
|
|
* method to provide clean logging (every class should have this). |
45 |
|
|
* |
46 |
|
|
* This uses the uk.ac.ukc.iscream.util.FormatName class |
47 |
|
|
* to format the toString() |
48 |
|
|
* |
49 |
|
|
* @return the name of this class and its CVS revision |
50 |
|
|
*/ |
51 |
|
|
public String toString() { |
52 |
|
|
return FormatName.getName( |
53 |
|
|
_name, |
54 |
|
|
getClass().getName(), |
55 |
|
|
REVISION); |
56 |
|
|
} |
57 |
|
|
|
58 |
|
|
//---PRIVATE METHODS--- |
59 |
|
|
|
60 |
|
|
//---ACCESSOR/MUTATOR METHODS--- |
61 |
|
|
|
62 |
|
|
//---ATTRIBUTES--- |
63 |
|
|
|
64 |
|
|
/** |
65 |
|
|
* This is the friendly identifier of the |
66 |
|
|
* component this class is running in. |
67 |
|
|
* eg, a Filter may be called "filter1", |
68 |
|
|
* If this class does not have an owning |
69 |
|
|
* component, a name from the configuration |
70 |
|
|
* can be placed here. This name could also |
71 |
|
|
* be changed to null for utility classes. |
72 |
|
|
*/ |
73 |
|
|
private String _name = ClientMain.NAME; |
74 |
|
|
|
75 |
|
|
/** |
76 |
|
|
* This holds a reference to the |
77 |
|
|
* system logger that is being used. |
78 |
|
|
*/ |
79 |
|
|
private Logger _logger = ReferenceManager.getInstance().getLogger(); |
80 |
|
|
|
81 |
|
|
//---STATIC ATTRIBUTES--- |
82 |
|
|
|
83 |
tdb |
1.1 |
} |