All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.network.mail.base.ServerOptions

java.lang.Object
   |
   +----com.ibm.network.mail.base.ServerOptions

public class ServerOptions
extends Object
implements Serializable
ServerOptions hold the configuration information about a machine on a TCP/IP network. In the SMTP/POP3 beans, it is used to store information about the SMTP and POP3 servers.

Author:
Abdul Majeed Ghadialy

Constructor Index

 o ServerOptions(String, int)
Constructor for ServerOptions.

Method Index

 o getHost()
Returns the host name.
 o getPort()
Returns the port number.

Constructors

 o ServerOptions
 public ServerOptions(String host,
                      int port)
Constructor for ServerOptions. Creates a ServerOptions with the specified host and port.

Parameters:
host - hostname
port - port number
Throws: IllegalArgumentException
in case host is null or port < 1.

Methods

 o getHost
 public String getHost()
Returns the host name.

Returns:
the host name.
 o getPort
 public int getPort()
Returns the port number.

Returns:
the port number.

All Packages  Class Hierarchy  This Package  Previous  Next  Index