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,AbstractFileSystemSender,AbstractMailSender,AbstractSenderWrapper,AmqpSender,CmisSender,CommandSender,EchoSender,FixedResultSender,FrankSender,IbisJavaSender,IbisLocalSender,IdinSender,LogSender,MongoDbSender,ReloadSender,WebServiceNtlmSender,XComSender,XfbSender,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
FieldsFields inherited from class org.frankframework.senders.AbstractSender
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidcheckStringAttributeOrParameter(String attributeName, String attributeValue, String parameterName) voidConfigure this component.booleanconsumesSessionVariable(String sessionKey) returnstrueif the sender or one of its children use the named session variable.return the Parametersprotected intgetParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, int attributeValue) protected StringgetParameterOverriddenAttributeValue(ParameterValueList pvl, String parameterName, String attributeValue) protected ParameterValueListgetParameterValueList(Message input, PipeLineSession session) Methods inherited from class org.frankframework.senders.AbstractSender
createBean, getLogPrefix, getName, isRunning, setApplicationContext, setName, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods 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:IConfigurableConfigure 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:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractSender- Throws:
ConfigurationException- in case it was not able to configure the component.
-
addParameter
- Specified by:
addParameterin interfaceIWithParameters
-
getParameterList
return the Parameters- Specified by:
getParameterListin 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:ISenderreturnstrueif 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:
consumesSessionVariablein interfaceISender- Specified by:
consumesSessionVariablein interfaceISenderWithParameters
-