seeorg.apache.avalon.framework.configuration.Configurable#configure(Configuration) Configuration configuration = handlerConfiguration.getChild("headername", false); if(configuration != null) { setHeaderName(configuration.getValue()); } configuration = handlerConfiguration.getChild("headervalue", false); if(configuration != null) { setHeaderValue(configuration.getValue()); }
Configuration configuration = handlerConfiguration.getChild("headername", false); if(configuration != null) { setHeaderName(configuration.getValue()); } configuration = handlerConfiguration.getChild("headervalue", false); if(configuration != null) { setHeaderValue(configuration.getValue()); }
Adds header to the messageseeorg.apache.james.smtpserver#onMessage(SMTPSession) try { MimeMessage message = session.getMail().getMessage (); //Set the header name and value (supplied at init time). if(headerName != null) { message.setHeader(headerName, headerValue); message.saveChanges(); } } catch (javax.mail.MessagingException me) { getLogger().error(me.getMessage()); }
try { MimeMessage message = session.getMail().getMessage (); //Set the header name and value (supplied at init time). if(headerName != null) { message.setHeader(headerName, headerValue); message.saveChanges(); } } catch (javax.mail.MessagingException me) { getLogger().error(me.getMessage()); }
Set the header nameparamheaderName String which represent the header name this.headerName = headerName;
this.headerName = headerName;
Set the header valueparamheaderValue String wich represetn the header value this.headerValue = headerValue;
this.headerValue = headerValue;