Package org.frankframework.senders
Class AbstractSenderWithParameters
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
- All Implemented Interfaces:
IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,ISender
,ISenderWithParameters
,IWithParameters
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
AbstractBlockEnabledSender
,AbstractCollectorSender
,AbstractMailSender
,AbstractSenderWrapper
,CommandSender
,EchoSender
,FixedResultSender
,FrankSender
,IbisJavaSender
,IbisLocalSender
,LogSender
,MongoDbSender
,ReloadSender
,SchedulerSender
,XmlJmsBrowserSender
,XsltSender
public abstract class AbstractSenderWithParameters
extends AbstractSender
implements ISenderWithParameters
Provides a base class for senders with parameters.
- Since:
- 4.3
- Author:
- Gerrit van Brakel
-
Field Summary
Fields inherited from class org.frankframework.senders.AbstractSender
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
checkStringAttributeOrParameter
(String attributeName, String attributeValue, String parameterName) void
configure()
is called once at startup of the framework in the configure method of the owner of this sender.boolean
consumesSessionVariable
(String sessionKey) returnstrue
if the sender or one of its children use the named session variable.return the Parametersprotected int
getParameterOverriddenAttributeValue
(ParameterValueList pvl, String parameterName, int attributeValue) protected String
getParameterOverriddenAttributeValue
(ParameterValueList pvl, String parameterName, String attributeValue) protected ParameterValueList
getParameterValueList
(Message input, PipeLineSession session) Methods inherited from class org.frankframework.senders.AbstractSender
createBean, getApplicationContext, getConfigurationClassLoader, getLogPrefix, getName, setApplicationContext, setName, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.IConfigurationAware
getApplicationContext, getName
Methods inherited from interface org.frankframework.core.INamedObject
getName, setName
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.ISender
isSynchronous, sendMessage, sendMessageOrThrow, start, stop
-
Field Details
-
paramList
-
parameterNamesMustBeUnique
protected boolean parameterNamesMustBeUnique
-
-
Constructor Details
-
AbstractSenderWithParameters
public AbstractSenderWithParameters()
-
-
Method Details
-
configure
Description copied from interface: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 theconfigure()
oropen()
method, to improve performance.- Specified by:
configure
in interfaceIConfigurable
- Specified by:
configure
in interfaceISender
- Overrides:
configure
in classAbstractSender
- Throws:
ConfigurationException
-
addParameter
- Specified by:
addParameter
in interfaceIWithParameters
-
getParameterList
return the Parameters- Specified by:
getParameterList
in interfaceIWithParameters
-
checkStringAttributeOrParameter
protected void checkStringAttributeOrParameter(String attributeName, String attributeValue, String parameterName) throws ConfigurationException - Throws:
ConfigurationException
-
getParameterOverriddenAttributeValue
protected String getParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, String attributeValue) -
getParameterOverriddenAttributeValue
protected int getParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, int attributeValue) -
getParameterValueList
@Nullable protected ParameterValueList getParameterValueList(Message input, PipeLineSession session) throws SenderException - Throws:
SenderException
-
consumesSessionVariable
Description copied from interface:ISender
returnstrue
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.- Specified by:
consumesSessionVariable
in interfaceISender
- Specified by:
consumesSessionVariable
in interfaceISenderWithParameters
-