org.apache.james.smtpserver
Class SetMimeHeaderHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.smtpserver.SetMimeHeaderHandler
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, MessageHandler
- Direct Known Subclasses:
- AddHeaderHandler
- public class SetMimeHeaderHandler
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements MessageHandler, org.apache.avalon.framework.configuration.Configurable
Adds the header to the message
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetMimeHeaderHandler
public SetMimeHeaderHandler()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- See Also:
Configurable.configure(Configuration)
setHeaderName
public void setHeaderName(String headerName)
- Set the header name
- Parameters:
headerName
- String which represent the header name
setHeaderValue
public void setHeaderValue(String headerValue)
- Set the header value
- Parameters:
headerValue
- String wich represetn the header value
onMessage
public void onMessage(SMTPSession session)
- Adds header to the message
- Specified by:
onMessage
in interface MessageHandler
- See Also:
org.apache.james.smtpserver
"Copyright © 1999-2006 Apache Jakarta Project. All Rights Reserved."