|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
|
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 |
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 |
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 Objectpublic Object get(Object key)
get in interface Map<String,Object>public Collection<Attachment> getAttachments()
Message
getAttachments in interface Messagepublic void setAttachments(Collection<Attachment> attachments)
setAttachments in interface Messagepublic Message getMessage()
public void setMessage(Message message)
public Destination getDestination()
getDestination in interface Messagepublic Exchange getExchange()
getExchange in interface Messagepublic final void setExchange(Exchange exchange)
setExchange in interface Messagepublic String getId()
getId in interface Messagepublic void setId(String id)
setId in interface Messagepublic InterceptorChain getInterceptorChain()
Message
getInterceptorChain in interface Messagepublic void setInterceptorChain(InterceptorChain chain)
setInterceptorChain in interface Messagepublic <T> T getContent(Class<T> format)
Message
getContent in interface Messageformat - the expected content format
public <T> void removeContent(Class<T> format)
Message
removeContent in interface Messageformat - the format to removepublic Set<Class<?>> getContentFormats()
getContentFormats in interface Messagepublic int hashCode()
hashCode in interface Map<String,Object>hashCode in class Objectpublic 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 Messageformat - 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 StringMapkey - the key
public <T> void put(Class<T> key,
T value)
StringMap
put in interface StringMapkey - the keyvalue - the valuepublic Object getContextualProperty(String key)
Message
getContextualProperty in interface Messagekey - the Message interface's property strings that
correlates to the desired property
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||