Jwma

dtw.webmail.util.config
Class MailTransportAgent

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

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

This class...

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

Constructor Summary
MailTransportAgent()
          Constructs a new MailTransportAgent instance.
 
Method Summary
 java.lang.String getAddress()
          Returns the internet address of this MailTransportAgent.
 java.lang.String getName()
          Returns a common name for this MailTransportAgent.
 int getPort()
          Returns the port of this MailTransportAgent.
 java.lang.String getProtocol()
          Returns the protocol required for this MailTransportAgent.
 int getTransportLimit()
          Returns the maximum message size in kB's allowed for transport.
 boolean isAuthenticated()
          Tests if this MailTransportAgent should be used with authentication.
 boolean isSecure()
          Tests if the communication with this MailTransportAgent should be secure.
 void setAddress(java.lang.String address)
          Sets the internet address of this MailTransportAgent.
 void setAuthenticated(boolean auth)
          Sets the use of this MailTransportAgent to be authenticated.
 void setName(java.lang.String name)
          Sets the common name for this MailTransportAgent.
 void setPort(int port)
          Sets the port of this this MailTransportAgent.
 void setProtocol(java.lang.String protocol)
          Sets the protocol required for this MailTransportAgent.
 void setSecure(boolean secure)
          Sets the communication with this MailTransportAgent to be secure.
 void setTransportLimit(int size)
          Sets the maximum message size in kB's allowed for transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailTransportAgent

public MailTransportAgent()
Constructs a new MailTransportAgent instance.

Method Detail

getName

public java.lang.String getName()
Returns a common name for this MailTransportAgent. Naming for different transport agents should be kept unique.

Returns:
the name as String.

setName

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

Parameters:
name - the name as String.

getProtocol

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

Returns:
the protocol as String.

setProtocol

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

Parameters:
protocol - the protocol as String.

getAddress

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

Returns:
the address as String.

setAddress

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

Parameters:
address - the address as String.

getPort

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


setPort

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

Parameters:
port - the port as int

isSecure

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

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

setSecure

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

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

isAuthenticated

public boolean isAuthenticated()
Tests if this MailTransportAgent should be used with authentication.

Returns:
true if authenticated use, false otherwise.

setAuthenticated

public void setAuthenticated(boolean auth)
Sets the use of this MailTransportAgent to be authenticated.

Parameters:
auth - true if authenticated use, false otherwise.

getTransportLimit

public int getTransportLimit()
Returns the maximum message size in kB's allowed for transport.

Returns:
maximum size as int.

setTransportLimit

public void setTransportLimit(int size)
Sets the maximum message size in kB's allowed for transport.

Parameters:
size - the maximum size as int.

Jwma

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