Package org.frankframework.core
Interface IPushingListener<M>
- Type Parameters:
M
- the raw message type
- All Superinterfaces:
org.springframework.context.ApplicationContextAware
,org.springframework.beans.factory.Aware
,FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IListener<M>
,IScopeProvider
,NameAware
- All Known Subinterfaces:
IPortConnectedListener<M>
,ISapListener<F>
- All Known Implementing Classes:
ApiListener
,BisJmsListener
,CmisEventListener
,EsbJmsListener
,FrankListener
,FxfListener
,JavaListener
,JmsListener
,MqttListener
,PushingJmsListener
,PushingListenerAdapter
,RestListener
,SapListener
,SapListener
,SapListenerImpl
,TibcoLogJmsListener
,WebServiceListener
Defines listening behaviour of message driven receivers.
- Since:
- 4.2
- Author:
- Gerrit van Brakel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setExceptionListener
(IbisExceptionListener listener) Set a (single) listener that will be notified of any exceptions.void
setHandler
(IMessageHandler<M> handler) Set the handler that will do the processing of the message.wrapRawMessage
(M rawMessage, PipeLineSession session) Wrap a raw message in a MessageWrapper.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.IConfigurable
configure
Methods inherited from interface org.frankframework.core.IListener
afterMessageProcessed, extractMessage, start, stop
-
Method Details
-
setHandler
Set the handler that will do the processing of the message. Each of the received messages must be pushed through handler.processMessage() -
setExceptionListener
Set a (single) listener that will be notified of any exceptions. The listener should use this listener to notify the receiver of any exception that occurs outside the processing of a message. -
wrapRawMessage
Wrap a raw message in a MessageWrapper. PopulatePipeLineSession
with properties from the message.- Parameters:
rawMessage
- The raw message data, unwrappedsession
-PipeLineSession
to populate with properties from the message.- Returns:
- Wrapped raw message
- Throws:
ListenerException
- If any exception occurs during wrapping, aListenerException
is thrown.
-