org.apache.james.smtpserver
Class SetMimeHeaderHandler

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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


Constructor Summary
SetMimeHeaderHandler()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration handlerConfiguration)
           
 void onMessage(SMTPSession session)
          Adds header to the message
 void setHeaderName(java.lang.String headerName)
          Set the header name
 void setHeaderValue(java.lang.String headerValue)
          Set the header value
 
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
 

Constructor Detail

SetMimeHeaderHandler

public SetMimeHeaderHandler()
Method Detail

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(java.lang.String headerName)
Set the header name

Parameters:
headerName - String which represent the header name

setHeaderValue

public void setHeaderValue(java.lang.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 © 2002-2007 The Apache Software Foundation. All Rights Reserved.