org.apache.cxf.message
Interface Message
- All Superinterfaces:
- java.util.Map<java.lang.String,java.lang.Object>, StringMap
- All Known Implementing Classes:
- AbstractWrappedMessage, JBIMessage, MessageImpl, SoapMessage, XMLMessage, XMLMessage
public interface Message
- extends StringMap
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
TRANSPORT
static final java.lang.String TRANSPORT
- See Also:
- Constant Field Values
REQUESTOR_ROLE
static final java.lang.String REQUESTOR_ROLE
- See Also:
- Constant Field Values
INBOUND_MESSAGE
static final java.lang.String INBOUND_MESSAGE
- See Also:
- Constant Field Values
INVOCATION_CONTEXT
static final java.lang.String INVOCATION_CONTEXT
- See Also:
- Constant Field Values
MIME_HEADERS
static final java.lang.String MIME_HEADERS
- See Also:
- Constant Field Values
ASYNC_POST_RESPONSE_DISPATCH
static final java.lang.String ASYNC_POST_RESPONSE_DISPATCH
- See Also:
- Constant Field Values
DECOUPLED_CHANNEL_MESSAGE
static final java.lang.String DECOUPLED_CHANNEL_MESSAGE
- See Also:
- Constant Field Values
PARTIAL_RESPONSE_MESSAGE
static final java.lang.String PARTIAL_RESPONSE_MESSAGE
- See Also:
- Constant Field Values
PROTOCOL_HEADERS
static final java.lang.String PROTOCOL_HEADERS
RESPONSE_CODE
static final java.lang.String RESPONSE_CODE
ENDPOINT_ADDRESS
static final java.lang.String ENDPOINT_ADDRESS
HTTP_REQUEST_METHOD
static final java.lang.String HTTP_REQUEST_METHOD
PATH_INFO
static final java.lang.String PATH_INFO
QUERY_STRING
static final java.lang.String QUERY_STRING
MTOM_ENABLED
static final java.lang.String MTOM_ENABLED
- See Also:
- Constant Field Values
SCHEMA_VALIDATION_ENABLED
static final java.lang.String SCHEMA_VALIDATION_ENABLED
- See Also:
- Constant Field Values
FAULT_STACKTRACE_ENABLED
static final java.lang.String FAULT_STACKTRACE_ENABLED
- See Also:
- Constant Field Values
CONTENT_TYPE
static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
ACCEPT_CONTENT_TYPE
static final java.lang.String ACCEPT_CONTENT_TYPE
- See Also:
- Constant Field Values
BASE_PATH
static final java.lang.String BASE_PATH
ENCODING
static final java.lang.String ENCODING
FIXED_PARAMETER_ORDER
static final java.lang.String FIXED_PARAMETER_ORDER
MAINTAIN_SESSION
static final java.lang.String MAINTAIN_SESSION
ATTACHMENTS
static final java.lang.String ATTACHMENTS
WSDL_DESCRIPTION
static final java.lang.String WSDL_DESCRIPTION
- See Also:
- Constant Field Values
WSDL_SERVICE
static final java.lang.String WSDL_SERVICE
- See Also:
- Constant Field Values
WSDL_PORT
static final java.lang.String WSDL_PORT
- See Also:
- Constant Field Values
WSDL_INTERFACE
static final java.lang.String WSDL_INTERFACE
- See Also:
- Constant Field Values
WSDL_OPERATION
static final java.lang.String WSDL_OPERATION
- See Also:
- Constant Field Values
getId
java.lang.String getId()
setId
void setId(java.lang.String id)
getInterceptorChain
InterceptorChain getInterceptorChain()
setInterceptorChain
void setInterceptorChain(InterceptorChain chain)
getDestination
Destination getDestination()
- Returns:
- the associated Destination if message is inbound, null otherwise
getExchange
Exchange getExchange()
setExchange
void setExchange(Exchange exchange)
getAttachments
java.util.Collection<Attachment> getAttachments()
setAttachments
void setAttachments(java.util.Collection<Attachment> attachments)
getContent
<T> T getContent(java.lang.Class<T> format)
- Retrieve the encapsulated content as a particular type (a result type
if message is outbound, a source type if message is inbound)
- Parameters:
format
- the expected content format
- Returns:
- the encapsulated content
setContent
<T> void setContent(java.lang.Class<T> format,
java.lang.Object content)
- Provide the encapsulated content as a particular type (a result type
if message is outbound, a source type if message is inbound)
- Parameters:
format
- the provided content formatcontent
- the content to be encapsulated
getContentFormats
java.util.Set<java.lang.Class<?>> getContentFormats()
- Returns:
- the set of currently encapsulated content formats
removeContent
<T> void removeContent(java.lang.Class<T> format)
- Removes a content from a message. If some contents are completely consumed,
removing them is a good idea
- Parameters:
format
- the format to remove
getContextualProperty
java.lang.Object getContextualProperty(java.lang.String key)
Apache CXF