fr.imag.adele.service.mailio
Interface ConfigMBean

All Known Implementing Classes:
MailConnectionFactory

public interface ConfigMBean

The MBean interface provides a service for configuring the instance with a JMX bundle

Author:
Didier Donsez (didier.donsez@ieee.org)

Method Summary
 void addMessageHeader(String name, String value)
          set the value of a message header
 String getMessageHeader(String name)
          get the value of a message header
 String[] getMessageHeaderNames()
          get the names of the message headers
 String getSmtpHost()
          get the current smtp host
 int getSmtpPort()
          get the current smtp port
 boolean getTrace()
          get the trace
 void reset()
          reset the configuration
 void setSmtpHost(String smtpHost)
          set the smtp host
 void setSmtpPort(int smtpPort)
          set the smtp port
 void setTrace(boolean trace)
          set the trace
 

Method Detail

setSmtpPort

public void setSmtpPort(int smtpPort)
set the smtp port


getSmtpPort

public int getSmtpPort()
get the current smtp port


setSmtpHost

public void setSmtpHost(String smtpHost)
set the smtp host


getSmtpHost

public String getSmtpHost()
get the current smtp host


getMessageHeaderNames

public String[] getMessageHeaderNames()
get the names of the message headers


getMessageHeader

public String getMessageHeader(String name)
get the value of a message header


addMessageHeader

public void addMessageHeader(String name,
                             String value)
set the value of a message header


setTrace

public void setTrace(boolean trace)
set the trace


getTrace

public boolean getTrace()
get the trace


reset

public void reset()
reset the configuration