Package org.frankframework.senders
Class AbstractSenderWithParameters
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
- All Implemented Interfaces:
FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IScopeProvider
,ISender
,ISenderWithParameters
,IWithParameters
,NameAware
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.Lifecycle
- Direct Known Subclasses:
AbstractBlockEnabledSender
,AbstractCollectorSender
,AbstractMailSender
,AbstractSenderWrapper
,CommandSender
,EchoSender
,FixedResultSender
,FrankSender
,IbisJavaSender
,IbisLocalSender
,LogSender
,MongoDbSender
,ReloadSender
,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 this component.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, isRunning, 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.HasApplicationContext
getApplicationContext, 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:IConfigurable
Configure this component.configure()
is called once at startup of the framework in the configure method of the owner of thisIConfigurable
. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractSender
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
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
-