public class MailetConfigImpl extends Object implements org.apache.mailet.MailetConfig
Constructor and Description |
---|
MailetConfigImpl()
No argument constructor for this object.
|
Modifier and Type | Method and Description |
---|---|
String |
getInitAttribute(String name)
Get the value of an (XML) attribute stored in this MailetConfig.
|
String |
getInitParameter(String name)
Get the value of an parameter stored in this MailetConfig.
|
Iterator<String> |
getInitParameterNames() |
org.apache.mailet.MailetContext |
getMailetContext()
Get the mailet's MailetContext object.
|
String |
getMailetName()
Get the name of the mailet.
|
void |
setConfiguration(org.apache.commons.configuration.Configuration newConfiguration)
Set the Avalon Configuration object for the mailet.
|
void |
setMailetContext(org.apache.mailet.MailetContext newContext)
Set the mailet's Avalon Configuration object.
|
void |
setMailetName(String newName)
Set the name for the mailet.
|
public MailetConfigImpl()
public String getInitParameter(String name)
getInitParameter
in interface org.apache.mailet.MailetConfig
name
- the name of the parameter whose value is to be retrieved.public Iterator<String> getInitParameterNames()
getInitParameterNames
in interface org.apache.mailet.MailetConfig
public String getInitAttribute(String name)
name
- the name of the attribute whose value is to be retrieved.public org.apache.mailet.MailetContext getMailetContext()
getMailetContext
in interface org.apache.mailet.MailetConfig
public void setMailetContext(org.apache.mailet.MailetContext newContext)
newContext
- the MailetContext for the mailetpublic void setConfiguration(org.apache.commons.configuration.Configuration newConfiguration)
newConfiguration
- the new Configuration for the mailetpublic String getMailetName()
getMailetName
in interface org.apache.mailet.MailetConfig
public void setMailetName(String newName)
newName
- the new name for the mailetCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.