Open SiteSearch 4.1.1
Final

ORG.oclc.ops
Class ServerLocation

java.lang.Object
  |
  +--ORG.oclc.ops.ServerLocation

public class ServerLocation
extends Object

The ServerLocation class provides a placeholder to contain the port and host location of a remote server.


Field Summary
 String host
          String data type containing the hostname where the server is running.
 int port
          integer data type containing the port where the server is running.
 
Constructor Summary
ServerLocation()
          Constructs a ServerLocation object.
ServerLocation(int port, String host)
          Constructs a ServerLocation object using the input port and host information.
 
Method Summary
 String host()
          Returns the String containing the server hostname.
 int port()
          Returns the integer containing the server port.
 String toString()
          Generates a String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

port

public int port
integer data type containing the port where the server is running.

host

public String host
String data type containing the hostname where the server is running.
Constructor Detail

ServerLocation

public ServerLocation()
Constructs a ServerLocation object.

ServerLocation

public ServerLocation(int port,
                      String host)
Constructs a ServerLocation object using the input port and host information.
Parameters:
port - the server port number
host - the server hostname
Method Detail

port

public int port()
Returns the integer containing the server port.
Returns:
String

host

public String host()
Returns the String containing the server hostname.
Returns:
String

toString

public String toString()
Generates a String representation of the object.
Returns:
String
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final