public abstract class SenderWithParametersBase extends SenderBase implements ISenderWithParameters
Modifier and Type | Field and Description |
---|---|
protected boolean |
parameterNamesMustBeUnique |
protected ParameterList |
paramList |
log
Constructor and Description |
---|
SenderWithParametersBase() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter p) |
protected void |
checkStringAttributeOrParameter(String attributeName,
String attributeValue,
String parameterName) |
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
boolean |
consumesSessionVariable(String sessionKey)
returns
true if the sender or one of its children use the named session variable. |
ParameterList |
getParameterList()
return the Parameters
|
protected int |
getParameterOverriddenAttributeValue(ParameterValueList pvl,
String parameterName,
int attributeValue) |
protected String |
getParameterOverriddenAttributeValue(ParameterValueList pvl,
String parameterName,
String attributeValue) |
protected ParameterValueList |
getParameterValueList(Message input,
PipeLineSession session) |
close, createBean, getLogPrefix, getName, isSynchronous, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isSynchronous, open, sendMessage, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
protected ParameterList paramList
protected boolean parameterNamesMustBeUnique
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SenderBase
ConfigurationException
public void addParameter(Parameter p)
addParameter
in interface IWithParameters
public ParameterList getParameterList()
getParameterList
in interface IWithParameters
protected void checkStringAttributeOrParameter(String attributeName, String attributeValue, String parameterName) throws ConfigurationException
ConfigurationException
protected String getParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, String attributeValue)
protected int getParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, int attributeValue)
protected ParameterValueList getParameterValueList(Message input, PipeLineSession session) throws SenderException
SenderException
public boolean consumesSessionVariable(String sessionKey)
ISender
true
if the sender or one of its children use the named session variable.
Callers can use this to determine if a message needs to be preserved.consumesSessionVariable
in interface ISender
consumesSessionVariable
in interface ISenderWithParameters
consumesSessionVariable
in class SenderBase
Copyright © 2023 Frank!Framework. All rights reserved.