org.springframework.integration.xmpp.support
Class DefaultXmppHeaderMapper
java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
org.springframework.integration.xmpp.support.DefaultXmppHeaderMapper
- All Implemented Interfaces:
- RequestReplyHeaderMapper<org.jivesoftware.smack.packet.Message>, XmppHeaderMapper
public class DefaultXmppHeaderMapper
- extends AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
- implements XmppHeaderMapper
Default implementation of XmppHeaderMapper
.
- Since:
- 2.1
- Author:
- Mark Fisher, Oleg Zhurakousky
Method Summary |
protected java.util.Map<java.lang.String,java.lang.Object> |
extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
|
protected java.util.Map<java.lang.String,java.lang.Object> |
extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
|
protected java.lang.String |
getStandardHeaderPrefix()
Returns the list of standard REPLY headers. |
protected java.util.List<java.lang.String> |
getStandardReplyHeaderNames()
Returns the list of standard REQUEST headers. |
protected java.util.List<java.lang.String> |
getStandardRequestHeaderNames()
Returns the PREFIX used by standard headers (if any) |
protected void |
populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers,
org.jivesoftware.smack.packet.Message target)
|
protected void |
populateUserDefinedHeader(java.lang.String headerName,
java.lang.Object headerValue,
org.jivesoftware.smack.packet.Message target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultXmppHeaderMapper
public DefaultXmppHeaderMapper()
extractStandardHeaders
protected java.util.Map<java.lang.String,java.lang.Object> extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
- Specified by:
extractStandardHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
extractUserDefinedHeaders
protected java.util.Map<java.lang.String,java.lang.Object> extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
- Specified by:
extractUserDefinedHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
populateStandardHeaders
protected void populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers,
org.jivesoftware.smack.packet.Message target)
- Specified by:
populateStandardHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
populateUserDefinedHeader
protected void populateUserDefinedHeader(java.lang.String headerName,
java.lang.Object headerValue,
org.jivesoftware.smack.packet.Message target)
- Specified by:
populateUserDefinedHeader
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
getStandardReplyHeaderNames
protected java.util.List<java.lang.String> getStandardReplyHeaderNames()
- Description copied from class:
AbstractHeaderMapper
- Returns the list of standard REQUEST headers. Implementation provided by a subclass
- Overrides:
getStandardReplyHeaderNames
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
getStandardRequestHeaderNames
protected java.util.List<java.lang.String> getStandardRequestHeaderNames()
- Description copied from class:
AbstractHeaderMapper
- Returns the PREFIX used by standard headers (if any)
- Overrides:
getStandardRequestHeaderNames
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
getStandardHeaderPrefix
protected java.lang.String getStandardHeaderPrefix()
- Description copied from class:
AbstractHeaderMapper
- Returns the list of standard REPLY headers. Implementation provided by a subclass
- Specified by:
getStandardHeaderPrefix
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>