|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.xmpp.presence.XmppPresenceMessageMapper
public class XmppPresenceMessageMapper
Implementation of the strategy interface OutboundMessageMapper. This is the hook that lets the adapter receive various payloads from
components inside Spring Integration and forward them correctly as Presence instances.
| Constructor Summary | |
|---|---|
XmppPresenceMessageMapper()
|
|
| Method Summary | |
|---|---|
org.jivesoftware.smack.packet.Presence |
fromMessage(Message<?> message)
Builds a Presence object from the inbound Message headers, if possible. |
Message<?> |
toMessage(org.jivesoftware.smack.packet.Presence presence)
Returns a Message with payload Presence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmppPresenceMessageMapper()
| Method Detail |
|---|
public Message<?> toMessage(org.jivesoftware.smack.packet.Presence presence)
throws java.lang.Exception
Message with payload Presence
toMessage in interface InboundMessageMapper<org.jivesoftware.smack.packet.Presence>presence - the presence object that can be used to present the priority, status, mode, and type of a given roster entry. This will be decomposed into a series of headers, as well as a payload
java.lang.Exception - thrown if conversion should fail
public org.jivesoftware.smack.packet.Presence fromMessage(Message<?> message)
throws java.lang.Exception
Presence object from the inbound Message headers, if possible.
fromMessage in interface OutboundMessageMapper<org.jivesoftware.smack.packet.Presence>message - the Message whose headers and payload willl b
Message object
java.lang.Exception - if there is a problem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||