org.apache.axis2.soap.impl.llom
Class SOAPFaultImpl
java.lang.Object
org.apache.axis2.om.impl.llom.OMNodeImpl
org.apache.axis2.om.impl.llom.OMElementImpl
org.apache.axis2.soap.impl.llom.SOAPElement
org.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 java.lang.Exception |
e
|
Methods inherited from class org.apache.axis2.om.impl.llom.OMElementImpl |
addAttribute, addAttribute, addChild, buildNext, declareNamespace, declareNamespace, detach, discard, findNamespace, getAllDeclaredNamespaces, getAttribute, getAttributes, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstAttribute, getFirstChild, getFirstChildWithName, getFirstElement, getLocalName, getNamespace, getNextSibling, getQName, getText, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, isComplete, removeAttribute, serialize, serializeWithCache, setBuilder, setFirstChild, setLocalName, setNamespace, setText |
Methods inherited from class org.apache.axis2.om.impl.llom.OMNodeImpl |
build, getParent, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, serialize, serializeWithCache, setComplete, setNextSibling, setParent, setPreviousSibling, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axis2.om.OMElement |
addAttribute, addAttribute, addChild, declareNamespace, declareNamespace, findNamespace, getAllDeclaredNamespaces, getAttribute, getAttributes, getBuilder, getChildElements, getChildren, getChildrenWithName, getFirstAttribute, getFirstChild, getFirstChildWithName, getFirstElement, getLocalName, getNamespace, getQName, getText, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, setBuilder, setFirstChild, setLocalName, setNamespace, setText |
Methods inherited from interface org.apache.axis2.om.OMNode |
build, detach, discard, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache |
e
protected java.lang.Exception e
SOAPFaultImpl
public SOAPFaultImpl(SOAPBody parent,
java.lang.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
-
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
- 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 java.lang.Exception getException()
throws OMException
- If exception detailElement is not there we will return null
- Specified by:
getException
in interface SOAPFault
- Returns:
-
- Throws:
OMException
putExceptionToSOAPFault
protected void putExceptionToSOAPFault(java.lang.Exception e)
throws SOAPProcessingException
- Throws:
SOAPProcessingException
setNewElement
protected void setNewElement(OMElement myElement,
OMElement newElement)
getChildWithName
protected OMElement getChildWithName(java.lang.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