com.jthomas.mailfaces
Class FaceServer

java.lang.Object
  |
  +--com.jthomas.mailfaces.FaceServer

public class FaceServer
extends java.lang.Object

Each FaceServer object contains the information needed to create a Mailbox object for the specified server. The FaceServer class object maintains a list of these FaceServer objects. It contains a createMailbox method that acts as a factory for FaceMailbox objects.

Author:
John Thomas FaceMailbox

Constructor Summary
FaceServer(java.lang.String mailServer)
          Constructor for a FaceServer object It will parse the FaceServer information from the Options file and get the following information for each server (if available)
Type ( Pop3,APOP,IMAP)
Host
Userid
Password
 
Method Summary
static void createList()
          createList is a Class method that will create an array of FaceServer Objects based on the current FaceOptions information.
 FaceMailbox createMailbox()
          Method: createMailbox() Create the appropriate type of FaceMailbox object for this FaceServer.
static int getCount()
          Class method to return a count of the number of servers.
 java.lang.String getHost()
           
static FaceServer[] getList()
          Class method to return a list of FaceServer objects.
 boolean getLoginInfo()
          Use the PromptLogin dialog to get any missing Login info
 java.lang.String getName()
           
 java.lang.String getPass()
           
 java.lang.String getType()
           
 java.lang.String getUser()
           
 void setRespecify(boolean flag)
          Set a flag so that User is forced to respecify the Server information This could be done when the connection could not be made so we want to let the user check if all the info was supplied correctly.
 java.lang.String toString()
           
 boolean verifyLoginInfo()
          verifyLoginInfo Check that all of the required Login information is avaiable If there is no information at all, then check the Properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaceServer

public FaceServer(java.lang.String mailServer)
Constructor for a FaceServer object It will parse the FaceServer information from the Options file and get the following information for each server (if available)
Type ( Pop3,APOP,IMAP)
Host
Userid
Password

Method Detail

createList

public static void createList()
createList is a Class method that will create an array of FaceServer Objects based on the current FaceOptions information.


getList

public static FaceServer[] getList()
Class method to return a list of FaceServer objects.


getCount

public static int getCount()
Class method to return a count of the number of servers.


createMailbox

public FaceMailbox createMailbox()
Method: createMailbox() Create the appropriate type of FaceMailbox object for this FaceServer.

Returns:
FaceMailbox
See Also:
Mailbox

getType

public java.lang.String getType()

getHost

public java.lang.String getHost()

getUser

public java.lang.String getUser()

getPass

public java.lang.String getPass()

getName

public java.lang.String getName()

getLoginInfo

public boolean getLoginInfo()
Use the PromptLogin dialog to get any missing Login info


setRespecify

public void setRespecify(boolean flag)
Set a flag so that User is forced to respecify the Server information This could be done when the connection could not be made so we want to let the user check if all the info was supplied correctly.


verifyLoginInfo

public boolean verifyLoginInfo()
verifyLoginInfo Check that all of the required Login information is avaiable If there is no information at all, then check the Properties file.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object