public abstract class AbstractWrappedMessage extends Object implements Message
ACCEPT_CONTENT_TYPE, ASYNC_POST_RESPONSE_DISPATCH, ATTACHMENTS, BASE_PATH, CONNECTION_TIMEOUT, CONTENT_TYPE, DECOUPLED_CHANNEL_MESSAGE, EMPTY_PARTIAL_RESPONSE_MESSAGE, ENCODING, ENDPOINT_ADDRESS, ERROR_MESSAGE, EXCEPTION_CAUSE_SUFFIX, EXCEPTION_MESSAGE_CAUSE_ENABLED, FAULT_IN_INTERCEPTORS, FAULT_OUT_INTERCEPTORS, FAULT_STACKTRACE_ENABLED, FIXED_PARAMETER_ORDER, HTTP_REQUEST_METHOD, IN_INTERCEPTORS, INBOUND_MESSAGE, INTERCEPTOR_PROVIDERS, INVOCATION_CONTEXT, MAINTAIN_SESSION, MIME_HEADERS, MTOM_ENABLED, MTOM_THRESHOLD, ONE_WAY_REQUEST, OUT_INTERCEPTORS, PARTIAL_RESPONSE_MESSAGE, PATH_INFO, PROCESS_ONEWAY_RESPONSE, PROPOGATE_EXCEPTION, PROTOCOL_HEADERS, QUERY_STRING, RECEIVE_TIMEOUT, REQUEST_URI, REQUEST_URL, REQUESTOR_ROLE, RESPONSE_CODE, REST_MESSAGE, ROBUST_ONEWAY, SCHEMA_VALIDATION_ENABLED, SCHEMA_VALIDATION_TYPE, SERVICE_OBJECT, THREAD_CONTEXT_SWITCHED, TRANSPORT, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrappedMessage(Message msg) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
<T> T |
get(Class<T> key)
Convenience method for storing/retrieving typed objects from the map.
|
Object |
get(Object key) |
Collection<Attachment> |
getAttachments()
Retrieve any binary attachments associated with the message.
|
<T> T |
getContent(Class<T> format)
Retrieve the encapsulated content as a particular type.
|
Set<Class<?>> |
getContentFormats() |
Object |
getContextualProperty(String key)
Queries the Message object's metadata for a specific property.
|
Set<String> |
getContextualPropertyKeys() |
Destination |
getDestination() |
Exchange |
getExchange() |
String |
getId() |
InterceptorChain |
getInterceptorChain()
Returns a live copy of the messages interceptor chain.
|
Message |
getMessage() |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
<T> void |
put(Class<T> key,
T value)
Convenience method for storing/retrieving typed objects from the map.
|
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object key) |
<T> void |
removeContent(Class<T> format)
Removes a content from a message.
|
void |
resetContextCache()
Resets the cache of contextual properties that messages may contain.
|
void |
setAttachments(Collection<Attachment> attachments) |
<T> void |
setContent(Class<T> format,
Object content)
Provide the encapsulated content as a particular type (a result type
if message is outbound, a source type if message is inbound)
|
void |
setExchange(Exchange exchange) |
void |
setId(String id) |
void |
setInterceptorChain(InterceptorChain chain) |
void |
setMessage(Message message) |
int |
size() |
Collection<Object> |
values() |
protected AbstractWrappedMessage(Message msg)
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public boolean equals(Object o)
public Collection<Attachment> getAttachments()
Message
getAttachments
in interface Message
public void setAttachments(Collection<Attachment> attachments)
setAttachments
in interface Message
public Message getMessage()
public void setMessage(Message message)
public Destination getDestination()
getDestination
in interface Message
public Exchange getExchange()
getExchange
in interface Message
public final void setExchange(Exchange exchange)
setExchange
in interface Message
public InterceptorChain getInterceptorChain()
Message
getInterceptorChain
in interface Message
public void setInterceptorChain(InterceptorChain chain)
setInterceptorChain
in interface Message
public <T> T getContent(Class<T> format)
Message
getContent
in interface Message
format
- the expected content formatpublic <T> void removeContent(Class<T> format)
Message
removeContent
in interface Message
format
- the format to removepublic Set<Class<?>> getContentFormats()
getContentFormats
in interface Message
public int hashCode()
public <T> void setContent(Class<T> format, Object content)
Message
setContent
in interface Message
format
- the provided content formatcontent
- the content to be encapsulatedpublic <T> T get(Class<T> key)
StringMap
public <T> void put(Class<T> key, T value)
StringMap
public Object getContextualProperty(String key)
Message
getContextualProperty
in interface Message
key
- the Message interface's property strings that
correlates to the desired propertypublic Set<String> getContextualPropertyKeys()
getContextualPropertyKeys
in interface Message
public void resetContextCache()
Message
resetContextCache
in interface Message
Apache CXF