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

java.lang.Object
  extended byorg.apache.axis2.om.impl.dom.NodeImpl
      extended byorg.apache.axis2.om.impl.dom.ChildNode
          extended byorg.apache.axis2.om.impl.dom.ParentNode
              extended byorg.apache.axis2.om.impl.dom.ElementImpl
                  extended byorg.apache.axis2.soap.impl.dom.SOAPElement
                      extended byorg.apache.axis2.soap.impl.dom.SOAPFaultImpl
All Implemented Interfaces:
Cloneable, Element, Node, NodeList, org.apache.ws.commons.om.OMConstants, org.apache.ws.commons.om.OMContainer, org.apache.ws.commons.om.impl.OMContainerEx, org.apache.ws.commons.om.OMElement, org.apache.ws.commons.om.OMNode, org.apache.ws.commons.om.impl.OMNodeEx, org.apache.ws.commons.soap.SOAPFault
Direct Known Subclasses:
SOAP11FaultImpl, SOAP12FaultImpl

public abstract class SOAPFaultImpl
extends SOAPElement
implements org.apache.ws.commons.soap.SOAPFault, org.apache.ws.commons.om.OMConstants


Field Summary
protected  Exception e
           
 
Fields inherited from class org.apache.axis2.om.impl.dom.ElementImpl
localName, namespace
 
Fields inherited from class org.apache.axis2.om.impl.dom.ParentNode
firstChild, lastChild
 
Fields inherited from class org.apache.axis2.om.impl.dom.ChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl
builder, done, factory, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED
 
Fields inherited from interface org.apache.ws.commons.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.ws.commons.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
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent, Exception e, org.apache.ws.commons.soap.SOAPFactory factory)
          Constructor SOAPFaultImpl
SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent, org.apache.ws.commons.om.OMXMLParserWrapper builder, org.apache.ws.commons.soap.SOAPFactory factory)
          Constructor SOAPFaultImpl
SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent, org.apache.ws.commons.soap.SOAPFactory factory)
           
 
Method Summary
protected  org.apache.ws.commons.om.OMElement getChildWithName(String childName)
           
 org.apache.ws.commons.soap.SOAPFaultCode getCode()
           
 org.apache.ws.commons.soap.SOAPFaultDetail getDetail()
           
 Exception getException()
          If exception detailElement is not there we will return null
protected abstract  org.apache.ws.commons.soap.SOAPFaultDetail getNewSOAPFaultDetail(org.apache.ws.commons.soap.SOAPFault fault)
           
 org.apache.ws.commons.soap.SOAPFaultNode getNode()
           
 org.apache.ws.commons.soap.SOAPFaultReason getReason()
           
 org.apache.ws.commons.soap.SOAPFaultRole getRole()
           
protected  void putExceptionToSOAPFault(Exception e)
           
protected  void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput, boolean cache)
           
protected abstract  void serializeFaultNode(org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
           
 void setCode(org.apache.ws.commons.soap.SOAPFaultCode soapFaultCode)
           
 void setDetail(org.apache.ws.commons.soap.SOAPFaultDetail detail)
           
 void setException(Exception e)
           
protected  void setNewElement(org.apache.ws.commons.om.OMElement myElement, org.apache.ws.commons.om.OMElement newElement)
           
 void setNode(org.apache.ws.commons.soap.SOAPFaultNode node)
           
 void setReason(org.apache.ws.commons.soap.SOAPFaultReason reason)
           
 void setRole(org.apache.ws.commons.soap.SOAPFaultRole role)
           
 
Methods inherited from class org.apache.axis2.soap.impl.dom.SOAPElement
checkParent
 
Methods inherited from class org.apache.axis2.om.impl.dom.ElementImpl
addAttribute, addAttribute, cloneNode, cloneOMElement, declareNamespace, declareNamespace, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getBuilder, getChildElements, getElementsByTagName, getElementsByTagNameNS, getFirstElement, getLineNumber, getLocalName, getNamespace, getNamespaceURI, getNamespaceURI, getNextOMSibling, getNodeName, getNodeType, getPrefix, getQName, getSchemaTypeInfo, getTagName, getText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, hasAttribute, hasAttributeNS, hasAttributes, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeNamespace, resolveQName, serialize, serializeAndConsume, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setBuilder, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setLineNumber, setLocalName, setNamespace, setOwnerDocument, setText, setType, toString, toStringWithConsume
 
Methods inherited from class org.apache.axis2.om.impl.dom.ParentNode
addChild, buildNext, getChildNodes, getChildren, getChildrenWithName, getFirstChild, getFirstChildWithName, getFirstOMChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild, setFirstChild
 
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode
detach, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling
 
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl
appendChild, build, compareDocumentPosition, getBaseURI, getFeature, getLength, getNodeValue, getOMFactory, getOwnerDocument, getTextContent, getUserData, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, setComplete, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.ws.commons.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getText, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setText, toString, toStringWithConsume
 
Methods inherited from interface org.apache.ws.commons.om.OMNode
build, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.ws.commons.om.OMContainer
addChild, buildNext, getChildren, getChildrenWithName, getFirstChildWithName, getFirstOMChild, isComplete
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface org.apache.ws.commons.om.impl.OMContainerEx
setComplete
 

Field Detail

e

protected Exception e
Constructor Detail

SOAPFaultImpl

public SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent,
                     Exception e,
                     org.apache.ws.commons.soap.SOAPFactory factory)
              throws org.apache.ws.commons.soap.SOAPProcessingException
Constructor SOAPFaultImpl

Parameters:
parent -
e -

SOAPFaultImpl

public SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent,
                     org.apache.ws.commons.soap.SOAPFactory factory)
              throws org.apache.ws.commons.soap.SOAPProcessingException

SOAPFaultImpl

public SOAPFaultImpl(org.apache.ws.commons.soap.SOAPBody parent,
                     org.apache.ws.commons.om.OMXMLParserWrapper builder,
                     org.apache.ws.commons.soap.SOAPFactory factory)
Constructor SOAPFaultImpl

Parameters:
parent -
builder -
Method Detail

setException

public void setException(Exception e)
Specified by:
setException in interface org.apache.ws.commons.soap.SOAPFault

getNewSOAPFaultDetail

protected abstract org.apache.ws.commons.soap.SOAPFaultDetail getNewSOAPFaultDetail(org.apache.ws.commons.soap.SOAPFault fault)
                                                                             throws org.apache.ws.commons.soap.SOAPProcessingException
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

setCode

public void setCode(org.apache.ws.commons.soap.SOAPFaultCode soapFaultCode)
             throws org.apache.ws.commons.soap.SOAPProcessingException
Specified by:
setCode in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

getCode

public org.apache.ws.commons.soap.SOAPFaultCode getCode()
Specified by:
getCode in interface org.apache.ws.commons.soap.SOAPFault

setReason

public void setReason(org.apache.ws.commons.soap.SOAPFaultReason reason)
               throws org.apache.ws.commons.soap.SOAPProcessingException
Specified by:
setReason in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

getReason

public org.apache.ws.commons.soap.SOAPFaultReason getReason()
Specified by:
getReason in interface org.apache.ws.commons.soap.SOAPFault

setNode

public void setNode(org.apache.ws.commons.soap.SOAPFaultNode node)
             throws org.apache.ws.commons.soap.SOAPProcessingException
Specified by:
setNode in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

getNode

public org.apache.ws.commons.soap.SOAPFaultNode getNode()
Specified by:
getNode in interface org.apache.ws.commons.soap.SOAPFault

setRole

public void setRole(org.apache.ws.commons.soap.SOAPFaultRole role)
             throws org.apache.ws.commons.soap.SOAPProcessingException
Specified by:
setRole in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

getRole

public org.apache.ws.commons.soap.SOAPFaultRole getRole()
Specified by:
getRole in interface org.apache.ws.commons.soap.SOAPFault

setDetail

public void setDetail(org.apache.ws.commons.soap.SOAPFaultDetail detail)
               throws org.apache.ws.commons.soap.SOAPProcessingException
Specified by:
setDetail in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

getDetail

public org.apache.ws.commons.soap.SOAPFaultDetail getDetail()
Specified by:
getDetail in interface org.apache.ws.commons.soap.SOAPFault

getException

public Exception getException()
                       throws org.apache.ws.commons.om.OMException
If exception detailElement is not there we will return null

Specified by:
getException in interface org.apache.ws.commons.soap.SOAPFault
Throws:
org.apache.ws.commons.om.OMException

putExceptionToSOAPFault

protected void putExceptionToSOAPFault(Exception e)
                                throws org.apache.ws.commons.soap.SOAPProcessingException
Throws:
org.apache.ws.commons.soap.SOAPProcessingException

setNewElement

protected void setNewElement(org.apache.ws.commons.om.OMElement myElement,
                             org.apache.ws.commons.om.OMElement newElement)

getChildWithName

protected org.apache.ws.commons.om.OMElement getChildWithName(String childName)

serialize

protected void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput,
                         boolean cache)
                  throws XMLStreamException
Overrides:
serialize in class ElementImpl
Throws:
XMLStreamException

serializeFaultNode

protected abstract void serializeFaultNode(org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
                                    throws XMLStreamException
Throws:
XMLStreamException