cgl.narada.wsinfra.util
Class FaultCreator

java.lang.Object
  extended by cgl.narada.wsinfra.util.FaultCreator

public class FaultCreator
extends Object

This class enables the creation of faults. Note that currently this class creates on SOAP 1.1 faults, it should be no big deal to have a similar capability for SOAP 1.2. If a need arises one will be provided.


Method Summary
 void copyFaultIntoSOAPBody(EnvelopeDocument envelopeDocument, FaultDocument faultDocument)
          Copies the content of the Fault element into the SOAP Body
 EnvelopeDocument createFault(QName faultCodeQName, String reason, EndpointReferenceType faultTo)
           
 EnvelopeDocument createFault(QName faultCodeQName, String reason, String faultActor, EndpointReferenceType faultTo)
           
 EnvelopeDocument createFault(QName faultCodeQName, String reason, XmlObject detailObject, EndpointReferenceType faultTo)
           
 EnvelopeDocument createFault(QName faultCodeQName, String reason, XmlObject detailObject, String faultActor, EndpointReferenceType faultTo)
           
 FaultDocument getFaultDocument(QName faultCodeQName, String reason)
          Initializes a fault document and returns it
static FaultCreator getInstance()
          Get an instance of the FaultCreator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FaultCreator getInstance()
Get an instance of the FaultCreator


createFault

public EnvelopeDocument createFault(QName faultCodeQName,
                                    String reason,
                                    EndpointReferenceType faultTo)

createFault

public EnvelopeDocument createFault(QName faultCodeQName,
                                    String reason,
                                    XmlObject detailObject,
                                    EndpointReferenceType faultTo)

createFault

public EnvelopeDocument createFault(QName faultCodeQName,
                                    String reason,
                                    String faultActor,
                                    EndpointReferenceType faultTo)

createFault

public EnvelopeDocument createFault(QName faultCodeQName,
                                    String reason,
                                    XmlObject detailObject,
                                    String faultActor,
                                    EndpointReferenceType faultTo)

getFaultDocument

public FaultDocument getFaultDocument(QName faultCodeQName,
                                      String reason)
Initializes a fault document and returns it


copyFaultIntoSOAPBody

public void copyFaultIntoSOAPBody(EnvelopeDocument envelopeDocument,
                                  FaultDocument faultDocument)
Copies the content of the Fault element into the SOAP Body



For comments and suggestions please send e-mail to The NaradaBrokering Project