net.agmodel.dbUtility
Class InternetHost

java.lang.Object
  extended bynet.agmodel.dbUtility.InternetHost
All Implemented Interfaces:
AccessMechanism
Direct Known Subclasses:
FTPSource, JDBC

public abstract class InternetHost
extends Object
implements AccessMechanism

An abstract class which holds host and port information for child classes

Author:
Matthew Laurenson

Constructor Summary
InternetHost(String aHost, int aPort)
           
 
Method Summary
 String getHost()
          Return the host IP address
 int getPort()
          Return the port used to connect to the host
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternetHost

public InternetHost(String aHost,
                    int aPort)
Method Detail

getHost

public String getHost()
Description copied from interface: AccessMechanism
Return the host IP address

Specified by:
getHost in interface AccessMechanism
Returns:
the host address

getPort

public int getPort()
Description copied from interface: AccessMechanism
Return the port used to connect to the host

Specified by:
getPort in interface AccessMechanism
Returns:
the host port


Copyright (C) NARC 2001 All Rights Reserved.