Package org.frankframework.senders
Class SenderWrapper
java.lang.Object
org.frankframework.senders.SenderBase
org.frankframework.senders.SenderWithParametersBase
org.frankframework.senders.SenderWrapperBase
org.frankframework.senders.SenderWrapper
- All Implemented Interfaces:
ICacheEnabled<String,
,String> AdapterAware
,IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,ISender
,ISenderWithParameters
,IWithParameters
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
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 org.frankframework.senders.SenderWrapperBase
adapter, configurationMetrics, senderWrapperProcessor
Fields inherited from class org.frankframework.senders.SenderWithParametersBase
parameterNamesMustBeUnique, paramList
Fields inherited from class org.frankframework.senders.SenderBase
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Stop/close the sender and deallocate resources.void
configure()
is called once at startup of the framework in the configure method of the owner of this sender.doSendMessage
(Message message, PipeLineSession session) specification of sender to send messages withprotected boolean
boolean
Whentrue
, the result of sendMessage is the reply of the request.void
open()
This method will be called to start the sender.void
specification of sender to send messages withMethods inherited from class org.frankframework.senders.SenderWrapperBase
getCache, getGetInputFromFixedValue, getGetInputFromSessionKey, getStoreInputInSessionKey, getStoreResultInSessionKey, isPreserveInput, sendMessage, setAdapter, setCache, setConfigurationMetrics, setGetInputFromFixedValue, setGetInputFromSessionKey, setPreserveInput, setSenderWrapperProcessor, setStoreInputInSessionKey, setStoreResultInSessionKey
Methods inherited from class org.frankframework.senders.SenderWithParametersBase
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
Methods inherited from class org.frankframework.senders.SenderBase
createBean, getApplicationContext, getConfigurationClassLoader, getLogPrefix, getName, setApplicationContext, setName
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
sendMessageOrThrow
-
Constructor Details
-
SenderWrapper
public SenderWrapper()
-
-
Method Details
-
isSenderConfigured
protected boolean isSenderConfigured()- Specified by:
isSenderConfigured
in classSenderWrapperBase
-
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 classSenderWrapperBase
- Throws:
ConfigurationException
-
open
Description copied from interface:ISender
This 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:
open
in interfaceISender
- Overrides:
open
in classSenderWrapperBase
- Throws:
SenderException
-
close
Description copied from interface:ISender
Stop/close the sender and deallocate resources.- Specified by:
close
in interfaceISender
- Overrides:
close
in classSenderWrapperBase
- Throws:
SenderException
-
doSendMessage
public SenderResult doSendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException - Specified by:
doSendMessage
in classSenderWrapperBase
- Throws:
SenderException
TimeoutException
-
isSynchronous
public boolean isSynchronous()Description copied from interface:ISender
Whentrue
, the result of sendMessage is the reply of the request. -
getSender
specification of sender to send messages with -
setSender
specification of sender to send messages with
-