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

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

public abstract class SOAPFaultImpl
extends SOAPElement
implements SOAPFault, OMConstants

Class SOAPFaultImpl


Field Summary
protected  java.lang.Exception e
           
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
nextSibling, nodeType, parent, previousSibling
 
Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
builder, done, factory
 
Fields inherited from interface org.apache.axiom.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.axiom.om.OMConstants
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI
 
Constructor Summary
protected SOAPFaultImpl(OMNamespace ns, SOAPFactory factory)
           
  SOAPFaultImpl(SOAPBody parent, java.lang.Exception e, SOAPFactory factory)
          Constructor SOAPFaultImpl
  SOAPFaultImpl(SOAPBody parent, OMXMLParserWrapper builder, SOAPFactory factory)
          Constructor SOAPFaultImpl
  SOAPFaultImpl(SOAPBody parent, SOAPFactory factory)
           
 
Method Summary
 java.lang.Exception getException()
          If exception detailElement is not there we will return null
protected abstract  SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
           
 void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache)
          Serializes the node.
protected  void putExceptionToSOAPFault(java.lang.Exception e)
           
protected abstract  void serializeFaultNode(javax.xml.stream.XMLStreamWriter writer)
           
 void setCode(SOAPFaultCode soapFaultCode)
           
 void setDetail(SOAPFaultDetail detail)
           
 void setException(java.lang.Exception e)
           
protected  void setNewElement(OMElement myElement, OMElement newElement)
           
 void setNode(SOAPFaultNode node)
           
 void setReason(SOAPFaultReason reason)
           
 void setRole(SOAPFaultRole role)
           
 
Methods inherited from class org.apache.axiom.soap.impl.llom.SOAPElement
checkParent, registerContentHandler, setParent
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl
addAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getFirstOMChildIfAvailable, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getText, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setComplete, setNextOMSibling, setPreviousOMSibling, setType
 
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.axiom.soap.SOAPFault
getCode, getDetail, getNode, getReason, getRole
 
Methods inherited from interface org.apache.axiom.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getBuilder, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getText, getTextAsQName, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume
 
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore
 
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.OMContainer
addChild, buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild
 
Methods inherited from interface org.apache.axiom.om.OMSerializable
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx
setComplete
 

Field Detail

e

protected java.lang.Exception e
Constructor Detail

SOAPFaultImpl

protected SOAPFaultImpl(OMNamespace ns,
                        SOAPFactory factory)

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent,
                     java.lang.Exception e,
                     SOAPFactory factory)
              throws SOAPProcessingException
Constructor SOAPFaultImpl

Parameters:
parent -
e -
Throws:
SOAPProcessingException

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent,
                     SOAPFactory factory)
              throws SOAPProcessingException
Throws:
SOAPProcessingException

SOAPFaultImpl

public SOAPFaultImpl(SOAPBody parent,
                     OMXMLParserWrapper builder,
                     SOAPFactory factory)
Constructor SOAPFaultImpl

Parameters:
parent -
builder -
Method Detail

setException

public void setException(java.lang.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
Specified by:
setCode in interface SOAPFault
Throws:
SOAPProcessingException

setReason

public void setReason(SOAPFaultReason reason)
               throws SOAPProcessingException
Specified by:
setReason in interface SOAPFault
Throws:
SOAPProcessingException

setNode

public void setNode(SOAPFaultNode node)
             throws SOAPProcessingException
Specified by:
setNode in interface SOAPFault
Throws:
SOAPProcessingException

setRole

public void setRole(SOAPFaultRole role)
             throws SOAPProcessingException
Specified by:
setRole in interface SOAPFault
Throws:
SOAPProcessingException

setDetail

public void setDetail(SOAPFaultDetail detail)
               throws SOAPProcessingException
Specified by:
setDetail in interface SOAPFault
Throws:
SOAPProcessingException

getException

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

Specified by:
getException in interface SOAPFault
Throws:
OMException

putExceptionToSOAPFault

protected void putExceptionToSOAPFault(java.lang.Exception e)
                                throws SOAPProcessingException
Throws:
SOAPProcessingException

setNewElement

protected void setNewElement(OMElement myElement,
                             OMElement newElement)

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
                              boolean cache)
                       throws javax.xml.stream.XMLStreamException
Description copied from class: OMSerializableImpl
Serializes the node.

Specified by:
internalSerialize in interface OMNodeEx
Overrides:
internalSerialize in class OMElementImpl
Throws:
javax.xml.stream.XMLStreamException

serializeFaultNode

protected abstract void serializeFaultNode(javax.xml.stream.XMLStreamWriter writer)
                                    throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.