public class DefaultXmppHeaderMapper extends AbstractHeaderMapper<org.jivesoftware.smack.packet.Message> implements XmppHeaderMapper
XmppHeaderMapper
.AbstractHeaderMapper.CompositeHeaderMatcher, AbstractHeaderMapper.ContentBasedHeaderMatcher, AbstractHeaderMapper.HeaderMatcher, AbstractHeaderMapper.PatternBasedHeaderMatcher, AbstractHeaderMapper.PrefixBasedMatcher, AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
logger, NON_STANDARD_HEADER_NAME_PATTERN, STANDARD_REPLY_HEADER_NAME_PATTERN, STANDARD_REQUEST_HEADER_NAME_PATTERN
Constructor and Description |
---|
DefaultXmppHeaderMapper() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
Extract the standard headers from the specified source.
|
protected Map<String,Object> |
extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
Extract the user-defined headers from the specified source.
|
protected void |
populateStandardHeaders(Map<String,Object> headers,
org.jivesoftware.smack.packet.Message target)
Populate the specified standard headers to the specified source.
|
protected void |
populateUserDefinedHeader(String headerName,
Object headerValue,
org.jivesoftware.smack.packet.Message target)
Populate the specified user-defined headers to the specified source.
|
createDefaultHeaderMatcher, createHeaderMatcher, createTargetPropertyName, fromHeadersToReply, fromHeadersToRequest, getClassLoader, getHeaderIfAvailable, getTransientHeaderNames, populateStandardHeaders, setBeanClassLoader, setReplyHeaderNames, setRequestHeaderNames, toHeadersFromReply, toHeadersFromRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
protected Map<String,Object> extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
AbstractHeaderMapper
extractStandardHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
source
- the source object to extract standard headers.protected Map<String,Object> extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
AbstractHeaderMapper
extractUserDefinedHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
source
- the source object to extract user defined headers.protected void populateStandardHeaders(Map<String,Object> headers, org.jivesoftware.smack.packet.Message target)
AbstractHeaderMapper
populateStandardHeaders
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
headers
- the map of standard headers to be populated.target
- the target object to populate headers.protected void populateUserDefinedHeader(String headerName, Object headerValue, org.jivesoftware.smack.packet.Message target)
AbstractHeaderMapper
populateUserDefinedHeader
in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
headerName
- the user defined header name to be populated.headerValue
- the user defined header value to be populated.target
- the target object to populate headers.