|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.message.AbstractWrappedMessage
public abstract class AbstractWrappedMessage
A base class to build your own message implementations on.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
AbstractWrappedMessage(Message msg)
|
Method Summary | ||
---|---|---|
void |
clear()
|
|
boolean |
containsKey(Object key)
|
|
boolean |
containsValue(Object value)
|
|
Set<Map.Entry<String,Object>> |
entrySet()
|
|
boolean |
equals(Object o)
|
|
|
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. |
|
|
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()
|
|
|
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)
|
|
|
removeContent(Class<T> format)
Removes a content from a message. |
|
void |
resetContextCache()
|
|
void |
setAttachments(Collection<Attachment> attachments)
|
|
|
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 |
setExchange(Exchange exchange)
|
|
void |
setId(String id)
|
|
void |
setInterceptorChain(InterceptorChain chain)
|
|
void |
setMessage(Message message)
|
|
int |
size()
|
|
Collection<Object> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractWrappedMessage(Message msg)
Method Detail |
---|
public void clear()
clear
in interface Map<String,Object>
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public Set<Map.Entry<String,Object>> entrySet()
entrySet
in interface Map<String,Object>
public boolean equals(Object o)
equals
in interface Map<String,Object>
equals
in class Object
public Object get(Object key)
get
in interface Map<String,Object>
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 String getId()
getId
in interface Message
public void setId(String id)
setId
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 format
public <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()
hashCode
in interface Map<String,Object>
hashCode
in class Object
public boolean isEmpty()
isEmpty
in interface Map<String,Object>
public Set<String> keySet()
keySet
in interface Map<String,Object>
public Object put(String key, Object value)
put
in interface Map<String,Object>
public void putAll(Map<? extends String,? extends Object> t)
putAll
in interface Map<String,Object>
public Object remove(Object key)
remove
in interface Map<String,Object>
public <T> void setContent(Class<T> format, Object content)
Message
setContent
in interface Message
format
- the provided content formatcontent
- the content to be encapsulatedpublic int size()
size
in interface Map<String,Object>
public Collection<Object> values()
values
in interface Map<String,Object>
public <T> T get(Class<T> key)
StringMap
get
in interface StringMap
key
- the key
public <T> void put(Class<T> key, T value)
StringMap
put
in interface StringMap
key
- the keyvalue
- the valuepublic Object getContextualProperty(String key)
Message
getContextualProperty
in interface Message
key
- the Message interface's property strings that
correlates to the desired property
public void setContextualProperty(String key, Object v)
setContextualProperty
in interface Message
public Set<String> getContextualPropertyKeys()
getContextualPropertyKeys
in interface Message
public void resetContextCache()
resetContextCache
in interface Message
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |