public class SetMimeHeaderHandler extends Object implements JamesMessageHook, InitializingLifecycleAwareProtocolHandler
Constructor and Description |
---|
SetMimeHeaderHandler() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init(org.apache.commons.configuration.Configuration config)
Init with the given
Configuration |
org.apache.james.protocols.smtp.hook.HookResult |
onMessage(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.mailet.Mail mail)
Adds header to the message
|
void |
setHeaderName(String headerName)
Set the header name
|
void |
setHeaderValue(String headerValue)
Set the header value
|
public void setHeaderName(String headerName)
headerName
- String which represent the header namepublic void setHeaderValue(String headerValue)
headerValue
- String which represents the header valuepublic org.apache.james.protocols.smtp.hook.HookResult onMessage(org.apache.james.protocols.smtp.SMTPSession session, org.apache.mailet.Mail mail)
onMessage
in interface JamesMessageHook
JamesMessageHook.onMessage(org.apache.james.protocols.smtp.SMTPSession,
org.apache.mailet.Mail)
public void init(org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandler
Configuration
init
in interface InitializingLifecycleAwareProtocolHandler
org.apache.commons.configuration.ConfigurationException
public void destroy()
destroy
in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.