3 package org.vamsas.client;
5 import java.io.Serializable;
8 * Uniquely describes a vamsas client application.
11 public class ClientHandle implements Serializable {
12 static final long serialVersionUID = 0;
17 public ClientHandle(String clientName, String version) {
19 this.clientName = clientName;
20 this.version = version;
23 * (non-unique) human readable vamsas client name
28 * the unambiguous client identifier
29 * This may be rewritten by the Vorba object if
30 * other clients with the same name, version
31 * and user are involved in a session.
37 * version modifier to tag application space
42 * @return Returns the clientUrn.
44 public String getClientUrn() {
49 * May become protected - should only be set by a Vorba object.
51 * The clientUrn to set.
53 public void setClientUrn(String clientUrn) {
54 this.clientUrn = clientUrn;
58 * @return Returns the version.
60 public String getVersion() {
68 public void setVersion(String version) {
69 this.version = version;
74 * @return Returns the clientName.
76 public String getClientName() {
82 * The clientName to set.
84 public void setClientName(String clientName) {
85 this.clientName = clientName;
88 public boolean equals(Object that) {
89 if (that instanceof ClientHandle)
90 return this.equals((ClientHandle) that);
93 public boolean equals(ClientHandle that) {
94 return (clientName.equals(that.clientName) && version.equals(that.version) && clientUrn.equals(that.clientUrn));