org.apache.axis2.soap.impl.llom
Class SOAPFaultImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.llom.OMNodeImpl
      extended byorg.apache.axis2.om.impl.llom.OMElementImpl
          extended byorg.apache.axis2.soap.impl.llom.SOAPElement
              extended byorg.apache.axis2.soap.impl.llom.SOAPFaultImpl
All Implemented Interfaces:
OMConstants, OMContainer, OMContainerEx, OMElement, OMNode, OMNodeEx, SOAPFault
Direct Known Subclasses:
SOAP11FaultImpl, SOAP12FaultImpl

public abstract class SOAPFaultImpl
extends SOAPElement
implements SOAPFault, OMConstants

Class SOAPFaultImpl


Field Summary
protected  Exception e
           
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMElementImpl
attributes, firstChild, localName, namespaces, noPrefixNamespaceCounter, ns
 
Fields inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
builder, done, nextSibling, nodeType, parent, previousSibling
 
Fields inherited from interface org.apache.axis2.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Fields inherited from interface org.apache.axis2.om.OMConstants
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DEFAULT_CHAR_SET_ENCODING, DEFAULT_XML_VERSION, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI
 
Constructor Summary
SOAPFaultImpl(SOAPBody parent)
           
SOAPFaultImpl(SOAPBody parent, Exception e)
          Constructor SOAPFaultImpl
SOAPFaultImpl(SOAPBody parent, OMXMLParserWrapper builder)
          Constructor SOAPFaultImpl
 
Method Summary
protected  OMElement getChildWithName(String childName)
           
 SOAPFaultCode getCode()
           
 SOAPFaultDetail getDetail()
           
 Exception getException()
          If exception detailElement is not there we will return null
protected abstract  SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
           
 SOAPFaultNode getNode()
           
 SOAPFaultReason getReason()
           
 SOAPFaultRole getRole()
           
protected  void putExceptionToSOAPFault(Exception e)
           
protected  void serialize(OMOutputImpl omOutput, boolean cache)
           
protected abstract  void serializeFaultNode(OMOutputImpl omOutput)
           
 void setCode(SOAPFaultCode soapFaultCode)
          SOAPFaultCode is a mandatory item in a Fault, in SOAP 1.2 specification
 void setDetail(SOAPFaultDetail detail)
          SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification
 void setException(Exception e)
           
protected  void setNewElement(OMElement myElement, OMElement newElement)
           
 void setNode(SOAPFaultNode node)
          SOAPFaultNode is an optional item in a Fault, in SOAP 1.2 specification
 void setReason(SOAPFaultReason reason)
          SOAPFaultReason is a mandatory item in a Fault, in SOAP 1.2 specification
 void setRole(SOAPFaultRole role)
          SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification
 
Methods inherited from class org.apache.axis2.soap.impl.llom.SOAPElement
checkParent
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMElementImpl
addAttribute, addAttribute, addChild, buildNext, cloneOMElement, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstChildWithName, getFirstElement, getFirstOMChild, getLocalName, getNamespace, getNextOMSibling, getQName, getText, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, isComplete, removeAttribute, resolveQName, serialize, serializeAndConsume, setBuilder, setFirstChild, setLocalName, setNamespace, setText, toString, toStringWithConsume
 
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl
build, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axis2.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getFirstElement, getLocalName, getNamespace, getQName, getText, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLocalName, setNamespace, setText, toString, toStringWithConsume
 
Methods inherited from interface org.apache.axis2.om.OMNode
build, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.axis2.om.OMContainer
addChild, buildNext, getChildren, getChildrenWithName, getFirstChildWithName, getFirstOMChild, isComplete
 
Methods inherited from interface org.apache.axis2.om.impl.OMContainerEx
setComplete
 

Field Detail

e

protected Exception e
Constructor Detail

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent,
                     Exception e)
              throws SOAPProcessingException
Constructor SOAPFaultImpl

Parameters:
parent -
e -

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent)
              throws SOAPProcessingException

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent,
                     OMXMLParserWrapper builder)
Constructor SOAPFaultImpl

Parameters:
parent -
builder -
Method Detail

setException

public void setException(Exception e)
Specified by:
setException in interface SOAPFault

getNewSOAPFaultDetail

protected abstract SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
                                                  throws SOAPProcessingException
Throws:
SOAPProcessingException

setCode

public void setCode(SOAPFaultCode soapFaultCode)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultCode is a mandatory item in a Fault, in SOAP 1.2 specification

Specified by:
setCode in interface SOAPFault
Parameters:
soapFaultCode -
Throws:
SOAPProcessingException

getCode

public SOAPFaultCode getCode()
Specified by:
getCode in interface SOAPFault

setReason

public void setReason(SOAPFaultReason reason)
               throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultReason is a mandatory item in a Fault, in SOAP 1.2 specification

Specified by:
setReason in interface SOAPFault
Parameters:
reason -
Throws:
SOAPProcessingException

getReason

public SOAPFaultReason getReason()
Specified by:
getReason in interface SOAPFault

setNode

public void setNode(SOAPFaultNode node)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultNode is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setNode in interface SOAPFault
Parameters:
node -
Throws:
SOAPProcessingException

getNode

public SOAPFaultNode getNode()
Specified by:
getNode in interface SOAPFault

setRole

public void setRole(SOAPFaultRole role)
             throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setRole in interface SOAPFault
Parameters:
role -
Throws:
SOAPProcessingException

getRole

public SOAPFaultRole getRole()
Specified by:
getRole in interface SOAPFault

setDetail

public void setDetail(SOAPFaultDetail detail)
               throws SOAPProcessingException
Description copied from interface: SOAPFault
SOAPFaultRoleImpl is an optional item in a Fault, in SOAP 1.2 specification

Specified by:
setDetail in interface SOAPFault
Parameters:
detail -
Throws:
SOAPProcessingException

getDetail

public SOAPFaultDetail getDetail()
Specified by:
getDetail in interface SOAPFault

getException

public Exception getException()
                       throws OMException
If exception detailElement is not there we will return null

Specified by:
getException in interface SOAPFault
Returns:
Returns Exception.
Throws:
OMException

putExceptionToSOAPFault

protected void putExceptionToSOAPFault(Exception e)
                                throws SOAPProcessingException
Throws:
SOAPProcessingException

setNewElement

protected void setNewElement(OMElement myElement,
                             OMElement newElement)

getChildWithName

protected OMElement getChildWithName(String childName)

serialize

protected void serialize(OMOutputImpl omOutput,
                         boolean cache)
                  throws XMLStreamException
Overrides:
serialize in class OMElementImpl
Throws:
XMLStreamException

serializeFaultNode

protected abstract void serializeFaultNode(OMOutputImpl omOutput)
                                    throws XMLStreamException
Throws:
XMLStreamException