KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > net > ServerAddress


1 package org.sapia.ubik.net;
2
3 import java.io.Serializable JavaDoc;
4
5
6 /**
7  * This interface models the concept of "server address", which hides
8  * the transport-specific details (host, port, etc.).
9  * <p>
10  * Implementations of this interface should override the <code>equals</code>
11  * method.
12  *
13  * @author Yanick Duchesne
14  * <dl>
15  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
16  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
17  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
18  * </dl>
19  */

20 public interface ServerAddress extends Serializable JavaDoc {
21   /**
22    * Returns the "transport type" of the server corresponding
23    * to this server address. A transport type is an arbitrary,
24    * logical identifier.
25    *
26    * @return a transport type, as a <code>String</code>.
27    */

28   public String JavaDoc getTransportType();
29
30   /**
31    * Implementations should override this method in manner consistent
32    * with the method's specification (in the <code>Object</code> class).
33    *
34    * @see Object#equals(Object obj).
35    */

36   public boolean equals(Object JavaDoc o);
37 }
38
Popular Tags