org.sapia.ubik.net
Interface ServerAddress

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
HttpAddress, InetServerAddress, NioAddress, ServletAddress, TCPAddress, UDPServerAddress

public interface ServerAddress
extends java.io.Serializable

This interface models the concept of "server address", which hides the transport-specific details (host, port, etc.).

Implementations of this interface should override the equals method.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 boolean equals(java.lang.Object o)
          Implementations should override this method in manner consistent with the method's specification (in the Object class).
 java.lang.String getTransportType()
          Returns the "transport type" of the server corresponding to this server address.
 

Method Detail

getTransportType

java.lang.String getTransportType()
Returns the "transport type" of the server corresponding to this server address. A transport type is an arbitrary, logical identifier.

Returns:
a transport type, as a String.

equals

boolean equals(java.lang.Object o)
Implementations should override this method in manner consistent with the method's specification (in the Object class).

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object obj).


Copyright © 2010 Sapia OSS. All Rights Reserved.