Jwma

dtw.webmail.util.config
Class PostOffice

java.lang.Object
  |
  +--dtw.webmail.util.config.PostOffice
All Implemented Interfaces:
java.io.Serializable

public class PostOffice
extends java.lang.Object
implements java.io.Serializable

This class...

Version:
(created Feb 13, 2003)
Author:
Dieter Wimberger (wimpi)
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_MIXED
          Defines a mixed type post office, were folders in the store can have subfolders and messages at the same time.
static java.lang.String TYPE_PLAIN
          Defines a plain type post office, were folders in the store cannot have subfolders and messages at the same time.
 
Constructor Summary
PostOffice()
          Constructs a new PostOffice instance.
 
Method Summary
 java.lang.String getAddress()
          Returns the internet address of this PostOffice.
 java.lang.String getName()
          Returns a common name for this PostOffice.
 int getPort()
          Returns the port of this PostOffice.
 java.lang.String getProtocol()
          Returns the protocol required for this PostOffice.
 java.lang.String getReplyToDomain()
          Returns the reply-to domain setting for this PostOffice.
 java.lang.String getRootFolder()
          Returns the default root folder this PostOffice.
 java.lang.String getType()
          Returns the type of this PostOffice.
 boolean isDefault()
          Tests if this PostOffice is the default.
 boolean isSecure()
          Tests if the communication with this PostOffice should be secure.
 boolean isType(java.lang.String type)
          Tests if this PostOffice is of a given type.
 void setAddress(java.lang.String address)
          Sets the internet address of this PostOffice.
 void setDefault(boolean aDefault)
          Sets the default flag for this PostOffice.
 void setName(java.lang.String name)
          Sets the common name for this PostOffice.
 void setPort(int port)
          Sets the port of this this PostOffice.
 void setProtocol(java.lang.String protocol)
          Sets the protocol required for this PostOffice.
 void setReplyToDomain(java.lang.String domain)
          Sets the reply-to domain for this PostOffice.
 void setRootFolder(java.lang.String folder)
          Sets the default root folder for this PostOffice.
 void setSecure(boolean secure)
          Sets the communication with this PostOffice to be secure.
 void setType(java.lang.String type)
          Sets the type of this PostOffice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_MIXED

public static final java.lang.String TYPE_MIXED
Defines a mixed type post office, were folders in the store can have subfolders and messages at the same time.

See Also:
Constant Field Values

TYPE_PLAIN

public static final java.lang.String TYPE_PLAIN
Defines a plain type post office, were folders in the store cannot have subfolders and messages at the same time.

See Also:
Constant Field Values
Constructor Detail

PostOffice

public PostOffice()
Constructs a new PostOffice instance.

Method Detail

getName

public java.lang.String getName()
Returns a common name for this PostOffice. Naming for different post offices should be kept unique.

Returns:
the name as String.

setName

public void setName(java.lang.String name)
Sets the common name for this PostOffice.

Parameters:
name - the name as String.

getProtocol

public java.lang.String getProtocol()
Returns the protocol required for this PostOffice.

Returns:
the protocol as String.

setProtocol

public void setProtocol(java.lang.String protocol)
Sets the protocol required for this PostOffice.

Parameters:
protocol - the protocol as String.

getType

public java.lang.String getType()
Returns the type of this PostOffice.

Returns:
the type as String.
See Also:
TYPE_MIXED, TYPE_PLAIN

setType

public void setType(java.lang.String type)
Sets the type of this PostOffice.

Parameters:
type - the type as String.
See Also:
TYPE_MIXED, TYPE_PLAIN

isType

public boolean isType(java.lang.String type)
Tests if this PostOffice is of a given type.

Returns:
true if of the given type, false otherwise.
See Also:
TYPE_MIXED, TYPE_PLAIN

getAddress

public java.lang.String getAddress()
Returns the internet address of this PostOffice.

Returns:
the address as String.

setAddress

public void setAddress(java.lang.String address)
Sets the internet address of this PostOffice.

Parameters:
address - the address as String.

getPort

public int getPort()
Returns the port of this PostOffice.


setPort

public void setPort(int port)
Sets the port of this this PostOffice.

Parameters:
port - the port as int

isSecure

public boolean isSecure()
Tests if the communication with this PostOffice should be secure.

Returns:
true if secure, false otherwise.
See Also:
#getSecureSocketFactory()

setSecure

public void setSecure(boolean secure)
Sets the communication with this PostOffice to be secure.

Parameters:
secure - true if secure, false otherwise.
See Also:
#setSecureSocketFactory(String factory)

getRootFolder

public java.lang.String getRootFolder()
Returns the default root folder this PostOffice.

Returns:
the folder as String.

setRootFolder

public void setRootFolder(java.lang.String folder)
Sets the default root folder for this PostOffice.

Parameters:
folder - the folder as String.

getReplyToDomain

public java.lang.String getReplyToDomain()
Returns the reply-to domain setting for this PostOffice.

Returns:
the reply-to domain as String.

setReplyToDomain

public void setReplyToDomain(java.lang.String domain)
Sets the reply-to domain for this PostOffice.

Parameters:
domain - the reply-to domain as String.

isDefault

public boolean isDefault()
Tests if this PostOffice is the default.

Returns:
true if default, false otherwise.

setDefault

public void setDefault(boolean aDefault)
Sets the default flag for this PostOffice.


Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)