org.apache.mailet
Interface MailetConfig

All Known Implementing Classes:
AbstractAddFooter, AbstractNotify, AbstractRedirect, AbstractVirtualUserTable, AddFooter, AddHabeasWarrantMark, AddHeader, AvalonListserv, AvalonListservManager, BayesianAnalysis, BayesianAnalysisFeeder, Bounce, ClamAVScan, CommandListservFooter, CommandListservManager, CommandListservProcessor, Counter, DSNBounce, DumpSystemErr, ExceptionThrowingMailet, Forward, FromRepository, GenericListserv, GenericListservManager, GenericMailet, Identity, JDBCAlias, JDBCListserv, JDBCVirtualUserTable, LocalDelivery, LogMessage, MailetConfigImpl, NotifyPostmaster, NotifySender, Null, PostmasterAlias, Redirect, RemoteDelivery, RemoveAllMailAttributes, RemoveMailAttribute, Resend, ServerTime, SetMailAttribute, SetMimeHeader, SMIMEAbstractSign, SMIMECheckSignature, SMIMEDecrypt, SMIMESign, ToMultiRepository, ToProcessor, ToRepository, UseHeaderRecipients, UsersRepositoryAliasingForwarding, WhiteListManager, XMLVirtualUserTable

public interface MailetConfig

A mailet configuration object used by a mailet container to pass information to a mailet during initialization.

The configuration information contains initialization parameters, which are a set of name/value pairs, and a MailetContext object, which gives the mailet information about the server.

Version:
1.0.0, 24/04/1999

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.
 

Method Detail

getInitParameter

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.

Parameters:
name - - a String specifying the name of the initialization parameter
Returns:
a String containing the value of the initialization parameter

getInitParameterNames

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.

Returns:
an Iterator of String objects containing the names of the mailet's initialization parameters

getMailetContext

MailetContext getMailetContext()
Returns a reference to the MailetContext in which the mailet is executing.

Returns:
a MailetContext object, used by the mailet to interact with its mailet container

getMailetName

java.lang.String getMailetName()
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.

Returns:
the name of the mailet instance


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.