public final class MessageUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getContextualBoolean(Message m,
String key,
boolean defaultValue) |
static Object |
getContextualProperty(Message m,
String propPreferred,
String propDefault) |
static FaultMode |
getFaultMode(Message message)
Determine the fault mode for the underlying (fault) message
(for use on server side only).
|
static boolean |
isDOMPresent(Message m)
Returns true if the underlying content format is a W3C DOM or a SAAJ message.
|
static boolean |
isEmptyPartialResponse(Message message)
Determines if the current message is an empty partial response, which
is a partial response with an empty content.
|
static boolean |
isFault(Message message)
Determine if message is fault.
|
static boolean |
isOutbound(Message message)
Determine if message is outbound.
|
static boolean |
isPartialResponse(Message message)
Determine if the current message is a partial response.
|
static boolean |
isRequestor(Message message)
Determine if current messaging role is that of requestor.
|
static boolean |
isTrue(Object value)
Returns true if a value is either the String "true" (regardless of case) or Boolean.TRUE.
|
public static boolean isOutbound(Message message)
message
- the current Messagepublic static boolean isFault(Message message)
message
- the current Messagepublic static FaultMode getFaultMode(Message message)
message
- the fault messagepublic static boolean isRequestor(Message message)
message
- the current Messagepublic static boolean isPartialResponse(Message message)
message
- the current messagepublic static boolean isEmptyPartialResponse(Message message)
message
- the current messagepublic static boolean isTrue(Object value)
value
- public static boolean getContextualBoolean(Message m, String key, boolean defaultValue)
public static Object getContextualProperty(Message m, String propPreferred, String propDefault)
public static boolean isDOMPresent(Message m)
Apache CXF