Package org.apache.cxf.message
Class AbstractWrappedMessage
- java.lang.Object
- 
- org.apache.cxf.message.AbstractWrappedMessage
 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.cxf.message.MessageACCEPT_CONTENT_TYPE, ASYNC_POST_RESPONSE_DISPATCH, ATTACHMENTS, BASE_PATH, CONNECTION_TIMEOUT, CONTENT_TRANSFER_ENCODING, 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_202_RESPONSE_ONEWAY_OR_PARTIAL, PROCESS_ONEWAY_RESPONSE, PROPAGATE_202_RESPONSE_ONEWAY_OR_PARTIAL, 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, THREAD_SAFE_STAX_FACTORIES, TRANSPORT, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractWrappedMessage(Message msg)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()booleanequals(Object o)<T> Tget(Class<T> key)Convenience method for storing/retrieving typed objects from the map.Objectget(Object key)Collection<Attachment>getAttachments()Retrieve any binary attachments associated with the message.<T> TgetContent(Class<T> format)Retrieve the encapsulated content as a particular type.Set<Class<?>>getContentFormats()ObjectgetContextualProperty(String key)Queries the Message object's metadata for a specific property.Set<String>getContextualPropertyKeys()DestinationgetDestination()ExchangegetExchange()StringgetId()InterceptorChaingetInterceptorChain()Returns a live copy of the messages interceptor chain.MessagegetMessage()inthashCode()booleanisEmpty()Set<String>keySet()<T> voidput(Class<T> key, T value)Convenience method for storing/retrieving typed objects from the map.Objectput(String key, Object value)voidputAll(Map<? extends String,? extends Object> t)<T> Tremove(Class<T> key)Convenience method for removing typed objects from the map.Objectremove(Object key)<T> voidremoveContent(Class<T> format)Removes a content from a message.voidresetContextCache()Resets the cache of contextual properties that messages may contain.voidsetAttachments(Collection<Attachment> attachments)<T> voidsetContent(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)voidsetExchange(Exchange exchange)voidsetId(String id)voidsetInterceptorChain(InterceptorChain chain)voidsetMessage(Message message)intsize()Collection<Object>values()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractWrappedMessageprotected AbstractWrappedMessage(Message msg) 
 
- 
 - 
Method Detail- 
containsKeypublic boolean containsKey(Object key) - Specified by:
- containsKeyin interface- Map<String,Object>
 
 - 
containsValuepublic boolean containsValue(Object value) - Specified by:
- containsValuein interface- Map<String,Object>
 
 - 
equalspublic boolean equals(Object o) 
 - 
getAttachmentspublic Collection<Attachment> getAttachments() Description copied from interface:MessageRetrieve any binary attachments associated with the message.- Specified by:
- getAttachmentsin interface- Message
- Returns:
- a collection containing the attachments
 
 - 
setAttachmentspublic void setAttachments(Collection<Attachment> attachments) - Specified by:
- setAttachmentsin interface- Message
 
 - 
getMessagepublic Message getMessage() 
 - 
setMessagepublic void setMessage(Message message) 
 - 
getDestinationpublic Destination getDestination() - Specified by:
- getDestinationin interface- Message
- Returns:
- the associated Destination if message is inbound, null otherwise
 
 - 
getExchangepublic Exchange getExchange() - Specified by:
- getExchangein interface- Message
 
 - 
setExchangepublic final void setExchange(Exchange exchange) - Specified by:
- setExchangein interface- Message
 
 - 
getInterceptorChainpublic InterceptorChain getInterceptorChain() Description copied from interface:MessageReturns a live copy of the messages interceptor chain. This is useful when an interceptor wants to modify the interceptor chain on the fly.- Specified by:
- getInterceptorChainin interface- Message
- Returns:
- the interceptor chain used to process the message
 
 - 
setInterceptorChainpublic void setInterceptorChain(InterceptorChain chain) - Specified by:
- setInterceptorChainin interface- Message
 
 - 
getContentpublic <T> T getContent(Class<T> format) Description copied from interface:MessageRetrieve the encapsulated content as a particular type. The content is available as a result type if the message is outbound. The content is available as a source type if message is inbound. If the content is not available as the specified type null is returned.- Specified by:
- getContentin interface- Message
- Parameters:
- format- the expected content format
- Returns:
- the encapsulated content
 
 - 
removeContentpublic <T> void removeContent(Class<T> format) Description copied from interface:MessageRemoves a content from a message. If some contents are completely consumed, removing them is a good idea- Specified by:
- removeContentin interface- Message
- Parameters:
- format- the format to remove
 
 - 
getContentFormatspublic Set<Class<?>> getContentFormats() - Specified by:
- getContentFormatsin interface- Message
- Returns:
- the set of currently encapsulated content formats
 
 - 
hashCodepublic int hashCode() 
 - 
setContentpublic <T> void setContent(Class<T> format, Object content) Description copied from interface:MessageProvide the encapsulated content as a particular type (a result type if message is outbound, a source type if message is inbound)- Specified by:
- setContentin interface- Message
- Parameters:
- format- the provided content format
- content- the content to be encapsulated
 
 - 
getpublic <T> T get(Class<T> key) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName());
 - 
putpublic <T> void put(Class<T> key, T value) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value);
 - 
removepublic <T> T remove(Class<T> key) Description copied from interface:StringMapConvenience method for removing typed objects from the map. equivalent to: (T)remove(key.getName());
 - 
getContextualPropertypublic Object getContextualProperty(String key) Description copied from interface:MessageQueries the Message object's metadata for a specific property.- Specified by:
- getContextualPropertyin interface- Message
- Parameters:
- key- the Message interface's property strings that correlates to the desired property
- Returns:
- the property's value
 
 - 
getContextualPropertyKeyspublic Set<String> getContextualPropertyKeys() - Specified by:
- getContextualPropertyKeysin interface- Message
- Returns:
- set of defined contextual property keys
 
 - 
resetContextCachepublic void resetContextCache() Description copied from interface:MessageResets the cache of contextual properties that messages may contain. Subsequent calls to getContextualProperty will likely recalculate the cache.- Specified by:
- resetContextCachein interface- Message
 
 
- 
 
-