com.lightdev.app.trec.client
Class ServerAddress

java.lang.Object
  extended by com.lightdev.app.trec.client.ServerAddress
All Implemented Interfaces:
Serializable

public class ServerAddress
extends Object
implements Serializable

Address of a server in the context of the Light Development Transparent Remote Computing (TREC) platform.

Version:
2, 31.12.2005
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software
See Also:
Server, Serialized Form

Constructor Summary
ServerAddress(String urlStr)
          create a new instance of a ServerAddress object
ServerAddress(String urlStr, boolean encrypted)
          create a new instance of a ServerAddress object
ServerAddress(String urlStr, boolean encrypted, String proxyUrl, int proxyPort)
          create a new instance of a ServerAddress object
 
Method Summary
 boolean equals(Object obj)
          determine whether or not a given object is equal to this object
 boolean getEncrypted()
          determine whether or not this address refers to a server which is expected to use SSL
 int getProxyPort()
          get port number of proxy server to connect thorugh
 String getProxyUrl()
          get url string of proxy server to connect through
 String getUrlString()
          get the url string this server address refers to
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAddress

public ServerAddress(String urlStr)
create a new instance of a ServerAddress object

Parameters:
urlStr - the url string this address refers to

ServerAddress

public ServerAddress(String urlStr,
                     boolean encrypted)
create a new instance of a ServerAddress object

Parameters:
urlStr - the url string this address refers to
encrypted - true, when the server uses SSL

ServerAddress

public ServerAddress(String urlStr,
                     boolean encrypted,
                     String proxyUrl,
                     int proxyPort)
create a new instance of a ServerAddress object

Parameters:
urlStr - the url string this address refers to
encrypted - true when the server uses SSL
proxyUrl - url of proxy to connect through
proxyPort - port of proxy to connect through
Method Detail

equals

public boolean equals(Object obj)
determine whether or not a given object is equal to this object

Overrides:
equals in class Object
Returns:
true when both objects are equal, false if not

getUrlString

public String getUrlString()
get the url string this server address refers to

Returns:
the url string

getEncrypted

public boolean getEncrypted()
determine whether or not this address refers to a server which is expected to use SSL

Returns:
ture, when the server is expected to use SSL

getProxyUrl

public String getProxyUrl()
get url string of proxy server to connect through

Returns:
proxy url string

getProxyPort

public int getProxyPort()
get port number of proxy server to connect thorugh

Returns:
proxy port number