toolbox.services.ws
Class CXFHelper

Package class diagram package CXFHelper
java.lang.Object
  extended by toolbox.services.ws.CXFHelper

public class CXFHelper
extends java.lang.Object

Helper class to obtain information from the CXF exchange and messages.


Field Summary
static java.lang.String WSA_ACTION
           
static java.lang.String WSA_ADDRESS
           
static java.lang.String WSA_FAULT_TO
           
static java.lang.String WSA_MSG_ID
           
static java.lang.String WSA_NS_URI
           
static java.lang.String WSA_RELATES_TO
           
static java.lang.String WSA_REPLY_TO
           
static java.lang.String WSA_TO
           
 
Method Summary
static org.w3c.dom.Element getInHeaderElement(java.lang.String qn, org.apache.cxf.message.Exchange context)
          Return the XML element that represents the named header.
static java.lang.String getInHeaderValue(java.lang.String qn, org.apache.cxf.message.Exchange context)
          Return the value of the named header as a String.
static java.lang.String getInHeaderValue(java.lang.String parentQn, java.lang.String childQn, org.apache.cxf.message.Exchange context)
          Return the value of the named child header inside the named parent header.
static java.lang.String getWsaAction(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing Action header.
static java.lang.String getWsaFaultTo(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing FaultTo header.
static java.lang.String getWsaMessageID(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing MessageID header.
static java.lang.String getWsaRelatesTo(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing RelatesTo header.
static java.lang.String getWsaReplyTo(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing ReplyTo header.
static java.lang.String getWsaTo(org.apache.cxf.message.Exchange context)
          Return the value of the WS-Addressing To header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSA_NS_URI

public static final java.lang.String WSA_NS_URI
See Also:
Constant Field Values

WSA_MSG_ID

public static final java.lang.String WSA_MSG_ID
See Also:
Constant Field Values

WSA_ACTION

public static final java.lang.String WSA_ACTION
See Also:
Constant Field Values

WSA_TO

public static final java.lang.String WSA_TO
See Also:
Constant Field Values

WSA_REPLY_TO

public static final java.lang.String WSA_REPLY_TO
See Also:
Constant Field Values

WSA_FAULT_TO

public static final java.lang.String WSA_FAULT_TO
See Also:
Constant Field Values

WSA_RELATES_TO

public static final java.lang.String WSA_RELATES_TO
See Also:
Constant Field Values

WSA_ADDRESS

public static final java.lang.String WSA_ADDRESS
See Also:
Constant Field Values
Method Detail

getInHeaderValue

public static java.lang.String getInHeaderValue(java.lang.String qn,
                                                org.apache.cxf.message.Exchange context)
Return the value of the named header as a String.

Parameters:
qn - String containing the qname of the header that must be returned. This value must be in the form {namespace}localName
context - The cxf exchange containing the message.
Returns:
String instance containing the value of the named header.

getInHeaderValue

public static java.lang.String getInHeaderValue(java.lang.String parentQn,
                                                java.lang.String childQn,
                                                org.apache.cxf.message.Exchange context)
Return the value of the named child header inside the named parent header.

Parameters:
parentQn - String containing the qname of the parent header This value must be in the form {namespace}localName
childQn - String containing the qname of the child header that must be returned. This value must be in the form {namespace}localName
context - The cxf exchange containing the message.
Returns:
String instance containing the value of the named header.

getInHeaderElement

public static org.w3c.dom.Element getInHeaderElement(java.lang.String qn,
                                                     org.apache.cxf.message.Exchange context)
Return the XML element that represents the named header.

Parameters:
qn - String containing the qname of the header that must be returned. This value must be in the form {namespace}localName
context - The cxf exchange containing the message.
Returns:
Element instance containing the header block.

getWsaAction

public static java.lang.String getWsaAction(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing Action header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the Action header value.

getWsaMessageID

public static java.lang.String getWsaMessageID(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing MessageID header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the MessageID header value.

getWsaTo

public static java.lang.String getWsaTo(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing To header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the To header value.

getWsaRelatesTo

public static java.lang.String getWsaRelatesTo(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing RelatesTo header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the RelatesTo header value.

getWsaReplyTo

public static java.lang.String getWsaReplyTo(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing ReplyTo header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the ReplyTo header value.

getWsaFaultTo

public static java.lang.String getWsaFaultTo(org.apache.cxf.message.Exchange context)
Return the value of the WS-Addressing FaultTo header.

Parameters:
context - The cxf exchange containing the message.
Returns:
String containing the FaultTo header value.