Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.message
Class MessageUtils

    java.lang.Object
      org.apache.cxf.message.MessageUtils

    public final class MessageUtils

extends java.lang.Object

Holder for utility methods relating to messages.

Method Summary
`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` | `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(java.lang.Object value)` Returns true if a value is either the String "true" (regardless of case) or Boolean.TRUE.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### isOutbound

    public static boolean isOutbound(Message message)

  Determine if message is outbound.

  Parameters:
    `message` - the current Message
  Returns:
    true iff the message direction is outbound

### isFault

    public static boolean isFault(Message message)

  Determine if message is fault.

  Parameters:
    `message` - the current Message
  Returns:
    true iff the message is a fault

### getFaultMode

    public static FaultMode getFaultMode(Message message)

  Determine the fault mode for the underlying (fault) message (for use on server side only).

  Parameters:
    `message` - the fault message
  Returns:
    the FaultMode

### isRequestor

    public static boolean isRequestor(Message message)

  Determine if current messaging role is that of requestor.

  Parameters:
    `message` - the current Message
  Returns:
    true iff the current messaging role is that of requestor

### isPartialResponse

    public static boolean isPartialResponse(Message message)

  Determine if the current message is a partial response.

  Parameters:
    `message` - the current message
  Returns:
    true iff the current messags is a partial response

### isTrue

    public static boolean isTrue(java.lang.Object value)

  Returns true if a value is either the String "true" (regardless of case) or Boolean.TRUE.

  Parameters:
    `value` -
  Returns:
    true iff value is either the String "true" or Boolean.TRUE

### isDOMPresent

    public static boolean isDOMPresent(Message m)

  Returns true if the underlying content format is a W3C DOM or a SAAJ message.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF