public class EmailLogger extends BaseLogger
| Modifier and Type | Field | 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 |
PARAM_EXCEPTIONS, PARAM_SHOW, VALUE_SHOW_ALL, VALUE_SHOW_EXCEPTIONS, VALUE_SHOW_INFO, VALUE_SHOW_TERMINATED| Constructor | Description |
|---|---|
EmailLogger() |
| Modifier and Type | Method | Description |
|---|---|---|
protected ParameterParser |
createParser() |
|
protected CompositeParameters |
createParser(AS2Message msg,
Throwable t,
boolean terminated) |
|
protected void |
doLog(Throwable t,
boolean terminated) |
|
void |
doLog(Level level,
String msgText,
Message as2Msg) |
|
protected String |
getShowDefaults() |
|
protected String |
getSubject(Throwable t) |
|
protected String |
getSubject(Level level,
String msg) |
|
protected String |
getTemplateText() |
|
void |
init(Session session,
Map<String,String> parameters) |
Component lifecycle hook.
|
protected String |
parseText(Throwable t,
boolean terminated,
String text) |
|
protected String |
parseText(AS2Message msg,
String text) |
|
protected void |
sendMessage(String subject,
String text) |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParametergetFormatter, isLogging, isShowing, log, log, setFormatterdestroy, getName, getParameters, getSessionpublic 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
Componentinit in interface Componentinit in class BaseComponentsession - the component uses this object to access other componentsparameters - configuration values for the componentOpenAS2Exception - If an error occurs while initializing the componentSessionpublic void doLog(Level level, String msgText, Message as2Msg)
doLog in class BaseLoggerprotected void doLog(Throwable t, boolean terminated)
doLog in class BaseLoggerprotected String getShowDefaults()
getShowDefaults in class BaseLoggerprotected String getSubject(Level level, String msg) throws OpenAS2Exception
OpenAS2Exceptionprotected String getTemplateText() throws InvalidParameterException
InvalidParameterExceptionprotected ParameterParser createParser()
protected CompositeParameters createParser(AS2Message msg, Throwable t, boolean terminated)
protected String parseText(Throwable t, boolean terminated, String text) throws InvalidParameterException
InvalidParameterExceptionprotected String parseText(AS2Message msg, String text) throws InvalidParameterException
InvalidParameterExceptionprotected void sendMessage(String subject, String text) throws OpenAS2Exception
OpenAS2ExceptionCopyright © 2018. All rights reserved.