Class ChatMessageSendingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareMessageHandler
org.springframework.integration.xmpp.outbound.ChatMessageSendingMessageHandler
- All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>
,Aware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,InitializingBean
,ApplicationContextAware
,Ordered
,ExpressionCapable
,Orderable
,IntegrationPattern
,NamedComponent
,IntegrationManagement
,TrackableComponent
,MessageHandler
,reactor.core.CoreSubscriber<Message<?>>
MessageHandler that sends an XMPP Chat Message. Supported payload types are Smack Message
Message
or String.- Since:
- 2.0
- Author:
- Josh Long, Mario Gray, Oleg Zhurakousky, Artem Bilan, Florian Schmaus
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
IntegrationManagement.ManagementOverrides
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionChatMessageSendingMessageHandler
(org.jivesoftware.smack.XMPPConnection xmppConnection) -
Method Summary
Modifier and TypeMethodDescriptionSubclasses may implement this method to provide component type information.protected void
handleMessageInternal
(Message<?> message) void
setExtensionProvider
(org.jivesoftware.smack.provider.ExtensionElementProvider<? extends org.jivesoftware.smack.packet.ExtensionElement> extensionProvider) Specify anExtensionElementProvider
to build anExtensionElement
for theStanza.addExtension(ExtensionElement)
instead ofbody
.void
setHeaderMapper
(XmppHeaderMapper headerMapper) Methods inherited from class org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareMessageHandler
getXmppConnection, isInitialized, onInit
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
handleMessage, onComplete, onError, onNext, onSubscribe
Methods inherited from class org.springframework.integration.handler.MessageHandlerSupport
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface reactor.core.CoreSubscriber
currentContext
Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement
getThisAs
Methods inherited from interface org.springframework.integration.support.context.NamedComponent
getBeanName, getComponentName
-
Constructor Details
-
ChatMessageSendingMessageHandler
public ChatMessageSendingMessageHandler() -
ChatMessageSendingMessageHandler
public ChatMessageSendingMessageHandler(org.jivesoftware.smack.XMPPConnection xmppConnection)
-
-
Method Details
-
setHeaderMapper
-
setExtensionProvider
public void setExtensionProvider(org.jivesoftware.smack.provider.ExtensionElementProvider<? extends org.jivesoftware.smack.packet.ExtensionElement> extensionProvider) Specify anExtensionElementProvider
to build anExtensionElement
for theStanza.addExtension(ExtensionElement)
instead ofbody
.- Parameters:
extensionProvider
- theExtensionElementProvider
to use.- Since:
- 4.3
-
getComponentType
Description copied from class:IntegrationObjectSupport
Subclasses may implement this method to provide component type information.- Specified by:
getComponentType
in interfaceNamedComponent
- Overrides:
getComponentType
in classMessageHandlerSupport
-
handleMessageInternal
- Specified by:
handleMessageInternal
in classAbstractMessageHandler
-