public class MessageImpl extends StringMapImpl implements Message
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>ACCEPT_CONTENT_TYPE, ASYNC_POST_RESPONSE_DISPATCH, ATTACHMENTS, BASE_PATH, CONNECTION_TIMEOUT, CONTENT_TYPE, DECOUPLED_CHANNEL_MESSAGE, EMPTY_PARTIAL_RESPONSE_MESSAGE, ENCODING, ENDPOINT_ADDRESS, 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_REPONSE, 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, SUSPENDED_INVOCATION, TRANSPORT, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE| Constructor and Description |
|---|
MessageImpl() |
MessageImpl(Message m) |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyContent(Message m1,
Message m2) |
String |
getAttachmentMimeType() |
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.
|
Destination |
getDestination() |
Exchange |
getExchange() |
String |
getId() |
InterceptorChain |
getInterceptorChain()
Returns a live copy of the messages interceptor chain.
|
Object |
put(String key,
Object value) |
<T> void |
removeContent(Class<T> format)
Removes a content from a message.
|
void |
resetContextCache() |
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 |
setContextualProperty(String key,
Object v) |
void |
setDestination(Destination d) |
void |
setExchange(Exchange e) |
void |
setId(String i) |
void |
setInterceptorChain(InterceptorChain ic) |
get, putclear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, valuesequals, hashCode, toStringpublic MessageImpl()
public MessageImpl(Message m)
public Collection<Attachment> getAttachments()
MessagegetAttachments in interface Messagepublic void setAttachments(Collection<Attachment> attachments)
setAttachments in interface Messagepublic String getAttachmentMimeType()
public Destination getDestination()
getDestination in interface Messagepublic Exchange getExchange()
getExchange in interface Messagepublic InterceptorChain getInterceptorChain()
MessagegetInterceptorChain in interface Messagepublic <T> T getContent(Class<T> format)
MessagegetContent in interface Messageformat - the expected content formatpublic <T> void setContent(Class<T> format, Object content)
MessagesetContent in interface Messageformat - the provided content formatcontent - the content to be encapsulatedpublic <T> void removeContent(Class<T> format)
MessageremoveContent in interface Messageformat - the format to removepublic Set<Class<?>> getContentFormats()
getContentFormats in interface Messagepublic void setDestination(Destination d)
public void setExchange(Exchange e)
setExchange in interface Messagepublic void setInterceptorChain(InterceptorChain ic)
setInterceptorChain in interface Messagepublic Object getContextualProperty(String key)
MessagegetContextualProperty in interface Messagekey - the Message interface's property strings that
correlates to the desired propertypublic void resetContextCache()
resetContextCache in interface Messagepublic void setContextualProperty(String key, Object v)
setContextualProperty in interface MessageApache CXF