public interface Message extends StringMap
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT_CONTENT_TYPE |
static String |
ASYNC_POST_RESPONSE_DISPATCH
Boolean property specifying if the server should send the response
asynchronously.
|
static String |
ATTACHMENTS |
static String |
BASE_PATH |
static String |
CONNECTION_TIMEOUT |
static String |
CONTENT_TYPE |
static String |
DECOUPLED_CHANNEL_MESSAGE
Boolean property specifying if this message arrived via a
decoupled endpoint.
|
static String |
EMPTY_PARTIAL_RESPONSE_MESSAGE |
static String |
ENCODING |
static String |
ENDPOINT_ADDRESS |
static String |
ERROR_MESSAGE |
static String |
EXCEPTION_CAUSE_SUFFIX
A very unique delimiter used for exception with FAULT_STACKTRACE_ENABLED enable,
which is easy for client to differentiate the cause and stacktrace when unmarsall
a fault message
|
static String |
EXCEPTION_MESSAGE_CAUSE_ENABLED
Boolean property specifying if the name of the exception that caused
the Java stack trace is returned.
|
static String |
FAULT_IN_INTERCEPTORS |
static String |
FAULT_OUT_INTERCEPTORS |
static String |
FAULT_STACKTRACE_ENABLED
Boolean property specifying if the Java stack trace is returned as a
SOAP fault message.
|
static String |
FIXED_PARAMETER_ORDER |
static String |
HTTP_REQUEST_METHOD |
static String |
IN_INTERCEPTORS
Some properties to allow adding interceptors to the chain
on a per-request basis.
|
static String |
INBOUND_MESSAGE
Boolean property specifying if the message is inbound.
|
static String |
INTERCEPTOR_PROVIDERS
As above, but Collection
|
static String |
INVOCATION_CONTEXT
A Map keyed by a string that stores optional context information
associated with the invocation that spawned the message.
|
static String |
MAINTAIN_SESSION |
static String |
MIME_HEADERS
A Map containing the MIME headers for a SOAP message.
|
static String |
MTOM_ENABLED
Boolean property specifying in the runtime is configured to process
MTOM attachments.
|
static String |
MTOM_THRESHOLD |
static String |
ONE_WAY_REQUEST |
static String |
OUT_INTERCEPTORS |
static String |
PARTIAL_RESPONSE_MESSAGE |
static String |
PATH_INFO |
static String |
PROCESS_ONEWAY_RESPONSE
Boolean property specifying if oneWay response must be processed.
|
static String |
PROPOGATE_EXCEPTION |
static String |
PROTOCOL_HEADERS |
static String |
QUERY_STRING |
static String |
RECEIVE_TIMEOUT |
static String |
REQUEST_URI |
static String |
REQUEST_URL |
static String |
REQUESTOR_ROLE
Boolean property specifying if the message is a request message.
|
static String |
RESPONSE_CODE |
static String |
REST_MESSAGE |
static String |
ROBUST_ONEWAY |
static String |
SCHEMA_VALIDATION_ENABLED
Runtime schema validation property
|
static String |
SCHEMA_VALIDATION_TYPE
The default values for schema validation will be set in the service model using this property
|
static String |
SERVICE_OBJECT
Current Service Object
|
static String |
THREAD_CONTEXT_SWITCHED
Boolean property specifying if the thread which runs a request is
different to the thread which created this Message.
|
static String |
TRANSPORT |
static String |
WSDL_DESCRIPTION |
static String |
WSDL_INTERFACE |
static String |
WSDL_OPERATION |
static String |
WSDL_PORT |
static String |
WSDL_SERVICE |
Modifier and Type | Method and Description |
---|---|
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.
|
Set<String> |
getContextualPropertyKeys() |
Destination |
getDestination() |
Exchange |
getExchange() |
String |
getId() |
InterceptorChain |
getInterceptorChain()
Returns a live copy of the messages interceptor chain.
|
<T> void |
removeContent(Class<T> format)
Removes a content from a message.
|
void |
resetContextCache()
Resets the cache of contextual properties that messages may contain.
|
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 |
setExchange(Exchange exchange) |
void |
setId(String id) |
void |
setInterceptorChain(InterceptorChain chain) |
static final String TRANSPORT
static final String REST_MESSAGE
static final String REQUESTOR_ROLE
static final String INBOUND_MESSAGE
static final String INVOCATION_CONTEXT
static final String SERVICE_OBJECT
static final String MIME_HEADERS
static final String ASYNC_POST_RESPONSE_DISPATCH
static final String DECOUPLED_CHANNEL_MESSAGE
static final String PARTIAL_RESPONSE_MESSAGE
static final String EMPTY_PARTIAL_RESPONSE_MESSAGE
static final String ONE_WAY_REQUEST
static final String PROCESS_ONEWAY_RESPONSE
static final String THREAD_CONTEXT_SWITCHED
static final String ROBUST_ONEWAY
static final String HTTP_REQUEST_METHOD
static final String REQUEST_URI
static final String REQUEST_URL
static final String PROTOCOL_HEADERS
static final String RESPONSE_CODE
static final String ERROR_MESSAGE
static final String ENDPOINT_ADDRESS
static final String PATH_INFO
static final String QUERY_STRING
static final String PROPOGATE_EXCEPTION
static final String MTOM_ENABLED
static final String MTOM_THRESHOLD
static final String SCHEMA_VALIDATION_ENABLED
static final String SCHEMA_VALIDATION_TYPE
static final String FAULT_STACKTRACE_ENABLED
static final String EXCEPTION_MESSAGE_CAUSE_ENABLED
static final String EXCEPTION_CAUSE_SUFFIX
static final String CONTENT_TYPE
static final String ACCEPT_CONTENT_TYPE
static final String BASE_PATH
static final String ENCODING
static final String FIXED_PARAMETER_ORDER
static final String MAINTAIN_SESSION
static final String ATTACHMENTS
static final String WSDL_DESCRIPTION
static final String WSDL_SERVICE
static final String WSDL_PORT
static final String WSDL_INTERFACE
static final String WSDL_OPERATION
static final String IN_INTERCEPTORS
static final String OUT_INTERCEPTORS
static final String FAULT_IN_INTERCEPTORS
static final String FAULT_OUT_INTERCEPTORS
static final String INTERCEPTOR_PROVIDERS
static final String CONNECTION_TIMEOUT
static final String RECEIVE_TIMEOUT
String getId()
void setId(String id)
InterceptorChain getInterceptorChain()
void setInterceptorChain(InterceptorChain chain)
Destination getDestination()
Exchange getExchange()
void setExchange(Exchange exchange)
Collection<Attachment> getAttachments()
void setAttachments(Collection<Attachment> attachments)
<T> T getContent(Class<T> format)
format
- the expected content format<T> void setContent(Class<T> format, Object content)
format
- the provided content formatcontent
- the content to be encapsulatedSet<Class<?>> getContentFormats()
<T> void removeContent(Class<T> format)
format
- the format to removeObject getContextualProperty(String key)
key
- the Message interface's property strings that
correlates to the desired propertyvoid resetContextCache()
Apache CXF