net.agmodel.dbUtility
Class InternetHost
java.lang.Object
net.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
|
Method Summary |
String |
getHost()
Return the host IP address |
int |
getPort()
Return the port used to connect to the host |
InternetHost
public InternetHost(String aHost,
int aPort)
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.