basic example application skeleton and SimpleClientFactory .
[vamsas.git] / src / org / vamsas / client / ClientHandle.java
1 /*
2  */
3 package org.vamsas.client;
4
5 /**
6  * Uniquely describes a vamsas client application.
7  * @author jimp 
8  */
9 public class ClientHandle {
10   /**
11    * @param clientName
12    * @param version
13    */
14   public ClientHandle(String clientName, String version) {
15     super();
16     this.clientName = clientName;
17     this.version = version;
18   }
19   /**
20    * (non-unique) human readable vamsas client name
21    */
22   String clientName;
23
24   /**
25    * the unambiguous client identifier
26    * This may be rewritten by the Vorba object if
27    * other clients with the same name, version 
28    * and user are involved in a session.
29    * 
30    */
31   String clientUrn;
32
33   /**
34    * version modifier to tag application space
35    */
36   String version;
37
38   /**
39    * @return Returns the clientUrn.
40    */
41   public String getClientUrn() {
42     return clientUrn;
43   }
44
45   /**
46    * May become protected - should only be set by a Vorba object.
47    * @param clientUrn
48    *          The clientUrn to set.
49    */
50   public void setClientUrn(String clientUrn) {
51     this.clientUrn = clientUrn;
52   }
53
54   /**
55    * @return Returns the version.
56    */
57   public String getVersion() {
58     return version;
59   }
60
61   /**
62    * @param version
63    *          The version to set.
64    */
65   public void setVersion(String version) {
66     this.version = version;
67   }
68
69
70   /**
71    * @return Returns the clientName.
72    */
73   public String getClientName() {
74     return clientName;
75   }
76
77   /**
78    * @param clientName
79    *          The clientName to set.
80    */
81   public void setClientName(String clientName) {
82     this.clientName = clientName;
83   }
84 }