Class SenderWrapper
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
org.frankframework.senders.AbstractSenderWrapper
org.frankframework.senders.SenderWrapper
- All Implemented Interfaces:
ICacheEnabled<String,String>, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle
Wrapper for senders, that allows to get input from a session variable, and to store output in a session variable.
- Since:
- 4.9
- Author:
- Gerrit van Brakel
- Parameters
- any parameters defined on the SenderWrapper will be handed to the sender, if this is a
ISenderWithParameters
-
Field Summary
Fields inherited from class AbstractSenderWrapper
configurationMetrics, senderWrapperProcessorFields inherited from class AbstractSenderWithParameters
parameterNamesMustBeUnique, paramListFields inherited from class AbstractSender
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this component.doSendMessage(@NonNull Message message, @NonNull PipeLineSession session) protected booleanbooleanWhentrue, the result of sendMessage is the reply of the request.voidstart()This method will be called to start the sender.voidstop()Stop/close the sender and deallocate resources.Methods inherited from class AbstractSenderWrapper
sendMessage, setGetInputFromFixedValue, setGetInputFromSessionKey, setName, setPreserveInput, setStoreInputInSessionKey, setStoreResultInSessionKeyMethods inherited from class AbstractSenderWithParameters
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueListMethods inherited from class AbstractSender
createBean, getLogPrefix, getName, isRunning, setApplicationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface ICacheEnabled
getCache, setCacheMethods inherited from interface ISender
sendMessageOrThrow
-
Constructor Details
-
SenderWrapper
public SenderWrapper()
-
-
Method Details
-
isSenderConfigured
protected boolean isSenderConfigured()- Specified by:
isSenderConfiguredin classAbstractSenderWrapper
-
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 classAbstractSenderWrapper- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:ISenderThis method will be called to start the sender. After this method is called the sendMessage method may be called. Purpose of this method is to reduce creating connections to databases etc. in thesendMessage()method.- Specified by:
startin interfaceISender- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classAbstractSenderWrapper
-
stop
public void stop()Description copied from interface:ISenderStop/close the sender and deallocate resources.- Specified by:
stopin interfaceISender- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- Overrides:
stopin classAbstractSenderWrapper
-
doSendMessage
public SenderResult doSendMessage(@NonNull Message message, @NonNull PipeLineSession session) throws SenderException, TimeoutException - Specified by:
doSendMessagein classAbstractSenderWrapper- Throws:
SenderExceptionTimeoutException
-
isSynchronous
public boolean isSynchronous()Description copied from interface:ISenderWhentrue, the result of sendMessage is the reply of the request.
-