org.apache.axis2.jaxws.message.util
Class XMLFaultUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.message.util.XMLFaultUtils

public class XMLFaultUtils
extends java.lang.Object

Collection of utilities used by the Message implementation to process XMLFaults.

See Also:
XMLFault

Constructor Summary
XMLFaultUtils()
           
 
Method Summary
static SOAPFault createSAAJFault(XMLFault xmlFault, SOAPBody body)
          Create a SOAPFault representing the XMLFault.
static org.apache.axiom.soap.SOAPFault createSOAPFault(XMLFault xmlFault, org.apache.axiom.soap.SOAPBody body, boolean ignoreDetailBlocks)
          Create a SOAPFault representing the XMLFault and attach it to body.
static XMLFault createXMLFault(SOAPFault soapFault)
          Create XMLFault
static XMLFault createXMLFault(org.apache.axiom.soap.SOAPFault soapFault, Block[] detailBlocks)
          Create an XMLFault object from a SOAPFault and detail Blocks
static XMLFault createXMLFault(SOAPFault soapFault, Block[] detailBlocks)
          Create an XMLFault object from a SOAPFault and detail Blocks
static boolean isFault(SOAPEnvelope envelope)
           
static boolean isFault(org.apache.axiom.soap.SOAPEnvelope envelope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFaultUtils

public XMLFaultUtils()
Method Detail

isFault

public static boolean isFault(SOAPEnvelope envelope)
                       throws SOAPException
Parameters:
envelope - javax.xml.soap.SOAPEnvelope
Returns:
true if the SOAPEnvelope contains a SOAPFault
Throws:
SOAPException

isFault

public static boolean isFault(org.apache.axiom.soap.SOAPEnvelope envelope)
Parameters:
envelope - org.apache.axiom.soap.SOAPEnvelope
Returns:
true if the SOAPEnvelope contains a SOAPFault

createXMLFault

public static XMLFault createXMLFault(org.apache.axiom.soap.SOAPFault soapFault,
                                      Block[] detailBlocks)
                               throws WebServiceException
Create an XMLFault object from a SOAPFault and detail Blocks

Parameters:
soapFault -
detailBlocks -
Returns:
Throws:
WebServiceException

createXMLFault

public static XMLFault createXMLFault(SOAPFault soapFault)
                               throws WebServiceException
Create XMLFault

Parameters:
soapFault -
Returns:
xmlFault
Throws:
WebServiceException

createXMLFault

public static XMLFault createXMLFault(SOAPFault soapFault,
                                      Block[] detailBlocks)
                               throws WebServiceException
Create an XMLFault object from a SOAPFault and detail Blocks

Parameters:
soapFault -
detailBlocks -
Returns:
Throws:
WebServiceException

createSOAPFault

public static org.apache.axiom.soap.SOAPFault createSOAPFault(XMLFault xmlFault,
                                                              org.apache.axiom.soap.SOAPBody body,
                                                              boolean ignoreDetailBlocks)
                                                       throws WebServiceException
Create a SOAPFault representing the XMLFault and attach it to body. If there are 1 or more detail Blocks on the XMLFault, a SOAPFaultDetail is attached. If ignoreDetailBlocks=false, then OMElements are added to the SOAPFaultDetail. If ignoreDetailBlocks=true, then the Detail Blocks are ignored (this is necessary for XMLSpine processing)

Parameters:
xmlFault -
body - - Assumes that the body is empty
ignoreDetailBlocks - true or fals
Returns:
SOAPFault (which is attached to body)
Throws:
WebServiceException

createSAAJFault

public static SOAPFault createSAAJFault(XMLFault xmlFault,
                                        SOAPBody body)
                                 throws SOAPException,
                                        WebServiceException
Create a SOAPFault representing the XMLFault. If there are 1 or more detail Blocks on the XMLFault, a SOAPFaultDetail is attached.

Parameters:
xmlFault -
body -
Returns:
SOAPFault (which is attached to body)
Throws:
SOAPException
WebServiceException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.