public class EmailSender extends BaseComponent
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_BODY |
static String |
PARAM_BODYTEMPLATE |
static String |
PARAM_FROM |
static String |
PARAM_FROM_DISPLAY |
static String |
PARAM_SMTPPORT |
static String |
PARAM_SMTPPROTOCOL |
static String |
PARAM_SMTPSERVER |
static String |
PARAM_SUBJECT |
static String |
PARAM_TO |
Constructor and Description |
---|
EmailSender() |
Modifier and Type | Method and Description |
---|---|
protected ParameterParser |
createParser() |
protected CompositeParameters |
createParser(AS2Message msg,
Throwable t,
boolean terminated) |
protected String |
getTemplateText() |
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
protected String |
parseText(AS2Message msg,
String text) |
protected String |
parseText(Throwable t,
boolean terminated,
String text) |
protected void |
sendMessage(String subject,
String text) |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
public static final String PARAM_FROM_DISPLAY
public static final String PARAM_FROM
public static final String PARAM_TO
public static final String PARAM_SMTPSERVER
public static final String PARAM_SMTPPORT
public static final String PARAM_SMTPPROTOCOL
public static final String PARAM_SUBJECT
public static final String PARAM_BODY
public static final String PARAM_BODYTEMPLATE
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseComponent
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
protected String getTemplateText() throws InvalidParameterException
InvalidParameterException
protected ParameterParser createParser()
protected CompositeParameters createParser(AS2Message msg, Throwable t, boolean terminated)
protected String parseText(Throwable t, boolean terminated, String text) throws InvalidParameterException
InvalidParameterException
protected String parseText(AS2Message msg, String text) throws InvalidParameterException
InvalidParameterException
protected void sendMessage(String subject, String text) throws OpenAS2Exception
OpenAS2Exception
Copyright © 2018. All rights reserved.