org.apache.james.core
Class MailetConfigImpl

java.lang.Object
  extended by org.apache.james.core.MailetConfigImpl
All Implemented Interfaces:
MailetConfig

public class MailetConfigImpl
extends java.lang.Object
implements MailetConfig

Implements the configuration object for a Mailet.

Version:
CVS $Revision: 494012 $ $Date: 2007-01-08 10:23:58 +0000 (Mon, 08 Jan 2007) $

Constructor Summary
MailetConfigImpl()
          No argument constructor for this object.
 
Method Summary
 java.lang.String getInitAttribute(java.lang.String name)
          Get the value of an (XML) attribute stored in this MailetConfig.
 java.lang.String getInitParameter(java.lang.String name)
          Get the value of an parameter stored in this MailetConfig.
 java.util.Iterator getInitParameterNames()
          Returns an iterator over the set of configuration parameter names.
 MailetContext getMailetContext()
          Get the mailet's MailetContext object.
 java.lang.String getMailetName()
          Get the name of the mailet.
 void setConfiguration(org.apache.avalon.framework.configuration.Configuration newConfiguration)
          Set the Avalon Configuration object for the mailet.
 void setMailetContext(MailetContext newContext)
          Get the mailet's Avalon Configuration object.
 void setMailetName(java.lang.String newName)
          Set the name for the mailet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailetConfigImpl

public MailetConfigImpl()
No argument constructor for this object.

Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Get the value of an parameter stored in this MailetConfig. Multi-valued parameters are returned as a comma-delineated string.

Specified by:
getInitParameter in interface MailetConfig
Parameters:
name - the name of the parameter whose value is to be retrieved.
Returns:
the parameter value

getInitParameterNames

public java.util.Iterator getInitParameterNames()
Returns an iterator over the set of configuration parameter names.

Specified by:
getInitParameterNames in interface MailetConfig
Returns:
an iterator over the set of configuration parameter names.

getInitAttribute

public java.lang.String getInitAttribute(java.lang.String name)
Get the value of an (XML) attribute stored in this MailetConfig.

Parameters:
name - the name of the attribute whose value is to be retrieved.
Returns:
the attribute value or null if missing

getMailetContext

public MailetContext getMailetContext()
Get the mailet's MailetContext object.

Specified by:
getMailetContext in interface MailetConfig
Returns:
the MailetContext for the mailet

setMailetContext

public void setMailetContext(MailetContext newContext)
Get the mailet's Avalon Configuration object.


setConfiguration

public void setConfiguration(org.apache.avalon.framework.configuration.Configuration newConfiguration)
Set the Avalon Configuration object for the mailet.

Parameters:
newConfiguration - the new Configuration for the mailet

getMailetName

public java.lang.String getMailetName()
Get the name of the mailet.

Specified by:
getMailetName in interface MailetConfig
Returns:
the name of the mailet

setMailetName

public void setMailetName(java.lang.String newName)
Set the name for the mailet.

Parameters:
newName - the new name for the mailet


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.