org.apache.james.core
Class MailetConfigImpl
java.lang.Object
|
+--org.apache.james.core.MailetConfigImpl
- All Implemented Interfaces:
- MailetConfig
- public class MailetConfigImpl
- extends java.lang.Object
- implements MailetConfig
- Author:
- Serge Knystautas
Method Summary |
java.lang.String |
getInitParameter(java.lang.String name)
Returns a String containing the value of the named initialization
parameter, or null if the parameter does not exist. |
java.util.Iterator |
getInitParameterNames()
Returns the names of the mailet's initialization parameters as an
Iterator of String objects, or an empty Iterator if the mailet has
no initialization parameters. |
MailetContext |
getMailetContext()
Returns a reference to the MailetContext in which the mailet is
executing. |
java.lang.String |
getMailetName()
Returns the name of this mailet instance. |
void |
setConfiguration(org.apache.avalon.framework.configuration.Configuration newConfiguration)
|
void |
setMailetContext(MailetContext newContext)
|
void |
setMailetName(java.lang.String newName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailetConfigImpl
public MailetConfigImpl()
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Description copied from interface:
MailetConfig
- Returns a String containing the value of the named initialization
parameter, or null if the parameter does not exist.
- Specified by:
getInitParameter
in interface MailetConfig
- Following copied from interface:
org.apache.mailet.MailetConfig
- Parameters:
name
- - a String specifying the name of the initialization parameter- Returns:
- a String containing the value of the initialization parameter
getInitParameterNames
public java.util.Iterator getInitParameterNames()
- Description copied from interface:
MailetConfig
- Returns the names of the mailet's initialization parameters as an
Iterator of String objects, or an empty Iterator if the mailet has
no initialization parameters.
- Specified by:
getInitParameterNames
in interface MailetConfig
- Following copied from interface:
org.apache.mailet.MailetConfig
- Returns:
- an Iterator of String objects containing the names of the mailet's
initialization parameters
getMailetContext
public MailetContext getMailetContext()
- Description copied from interface:
MailetConfig
- Returns a reference to the MailetContext in which the mailet is
executing.
- Specified by:
getMailetContext
in interface MailetConfig
- Following copied from interface:
org.apache.mailet.MailetConfig
- Returns:
- a MailetContext object, used by the mailet to interact with its
mailet container
setMailetContext
public void setMailetContext(MailetContext newContext)
setConfiguration
public void setConfiguration(org.apache.avalon.framework.configuration.Configuration newConfiguration)
getMailetName
public java.lang.String getMailetName()
- Description copied from interface:
MailetConfig
- Returns the name of this mailet instance. The name may be provided via
server administration, assigned in the application deployment descriptor,
or for an unregistered (and thus unnamed) mailet instance it will be the
mailet's class name.
- Specified by:
getMailetName
in interface MailetConfig
- Following copied from interface:
org.apache.mailet.MailetConfig
- Returns:
- the name of the mailet instance
setMailetName
public void setMailetName(java.lang.String newName)
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."