com.sun.xml.messaging.saaj.soap.impl
Class FaultImpl

java.lang.Object
  extended by com.sun.org.apache.xerces.internal.dom.NodeImpl
      extended by com.sun.org.apache.xerces.internal.dom.ChildNode
          extended by com.sun.org.apache.xerces.internal.dom.ParentNode
              extended by com.sun.org.apache.xerces.internal.dom.ElementImpl
                  extended by com.sun.org.apache.xerces.internal.dom.ElementNSImpl
                      extended by com.sun.xml.messaging.saaj.soap.impl.ElementImpl
                          extended by com.sun.xml.messaging.saaj.soap.impl.FaultImpl
All Implemented Interfaces:
Serializable, Cloneable, SOAPBodyElement, SOAPElement, SOAPFault, Element, EventTarget, Node, NodeList, TypeInfo
Direct Known Subclasses:
Fault1_1Impl, Fault1_2Impl

public abstract class FaultImpl
extends ElementImpl
implements SOAPFault

See Also:
Serialized Form

Field Summary
protected  Detail detail
           
protected  SOAPFaultElement faultActorElement
           
protected  SOAPFaultElement faultCodeElement
           
protected  SOAPFaultElement faultStringElement
           
 
Fields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, XMLNS_URI
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl
attributes, name
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
protected FaultImpl(SOAPDocumentImpl ownerDoc, NameImpl name)
           
 
Method Summary
 Detail addDetail()
           
protected  SOAPElement addElement(Name name)
           
protected  SOAPElement addElement(QName name)
           
protected  SOAPFaultElement addFaultCodeElement()
           
protected  FaultElementImpl addSOAPFaultElement(String localName)
           
protected abstract  void checkIfStandardFaultCode(String faultCode, String uri)
           
protected static QName convertCodeToQName(String code, SOAPElement codeContainingElement)
           
protected  SOAPElement convertToSoapElement(Element element)
           
protected abstract  DetailImpl createDetail()
           
protected abstract  FaultElementImpl createSOAPFaultElement(Name qname)
           
protected abstract  FaultElementImpl createSOAPFaultElement(QName qname)
           
protected abstract  FaultElementImpl createSOAPFaultElement(String localName)
           
protected abstract  void finallySetFaultCode(String faultcode)
           
protected  void findFaultActorElement()
           
protected  void findFaultCodeElement()
           
protected  void findFaultStringElement()
           
protected abstract  QName getDefaultFaultCode()
           
 Detail getDetail()
           
protected abstract  NameImpl getDetailName()
           
 String getFaultActor()
           
protected abstract  NameImpl getFaultActorName()
           
protected abstract  NameImpl getFaultCodeName()
           
protected abstract  NameImpl getFaultStringName()
           
 boolean hasDetail()
           
protected  void initializeDetail()
           
protected abstract  boolean isStandardFaultElement(String localName)
           
protected static String localeToXmlLang(Locale locale)
           
 SOAPElement setElementQName(QName newName)
           
abstract  void setFaultActor(String faultActor)
           
 void setFaultCode(Name faultCodeQName)
           
 void setFaultCode(QName faultCodeQName)
           
 void setFaultCode(String faultCode)
           
 void setFaultCode(String faultCode, String prefix, String uri)
           
protected static Locale xmlLangToLocale(String xmlLang)
          Convert an xml:lang attribute value into a Locale object
 
Methods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
addAttribute, addAttribute, addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, circumventBug5034339, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttributeValue, getAttributeValue, getAttributeValueFrom, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getElementName, getElementQName, getEncodingStyle, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getOwnerDocument, getParentElement, getPrefix, getQualifiedName, getSOAPNamespace, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, importElement, isNamespaceQualified, isNamespaceQualified, recycleNode, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, replaceElementWithSOAPElement, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setParentElement, setValue, tryToFindEncodingStyleAttributeName
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.soap.SOAPFault
addFaultReasonText, appendFaultSubcode, getFaultCode, getFaultCodeAsName, getFaultCodeAsQName, getFaultNode, getFaultReasonLocales, getFaultReasonText, getFaultReasonTexts, getFaultRole, getFaultString, getFaultStringLocale, getFaultSubcodes, removeAllFaultSubcodes, setFaultNode, setFaultRole, setFaultString, setFaultString
 
Methods inherited from interface javax.xml.soap.SOAPElement
addAttribute, addAttribute, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addTextNode, createQName, getAllAttributes, getAllAttributesAsQNames, getAttributeValue, getAttributeValue, getChildElements, getChildElements, getChildElements, getElementName, getElementQName, getEncodingStyle, getNamespacePrefixes, getNamespaceURI, getVisibleNamespacePrefixes, removeAttribute, removeAttribute, removeContents, removeNamespaceDeclaration, setEncodingStyle
 
Methods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Field Detail

faultStringElement

protected SOAPFaultElement faultStringElement

faultActorElement

protected SOAPFaultElement faultActorElement

faultCodeElement

protected SOAPFaultElement faultCodeElement

detail

protected Detail detail
Constructor Detail

FaultImpl

protected FaultImpl(SOAPDocumentImpl ownerDoc,
                    NameImpl name)
Method Detail

getDetailName

protected abstract NameImpl getDetailName()

getFaultCodeName

protected abstract NameImpl getFaultCodeName()

getFaultStringName

protected abstract NameImpl getFaultStringName()

getFaultActorName

protected abstract NameImpl getFaultActorName()

createDetail

protected abstract DetailImpl createDetail()

createSOAPFaultElement

protected abstract FaultElementImpl createSOAPFaultElement(String localName)

createSOAPFaultElement

protected abstract FaultElementImpl createSOAPFaultElement(QName qname)

createSOAPFaultElement

protected abstract FaultElementImpl createSOAPFaultElement(Name qname)

checkIfStandardFaultCode

protected abstract void checkIfStandardFaultCode(String faultCode,
                                                 String uri)
                                          throws SOAPException
Throws:
SOAPException

finallySetFaultCode

protected abstract void finallySetFaultCode(String faultcode)
                                     throws SOAPException
Throws:
SOAPException

isStandardFaultElement

protected abstract boolean isStandardFaultElement(String localName)

getDefaultFaultCode

protected abstract QName getDefaultFaultCode()

findFaultCodeElement

protected void findFaultCodeElement()

findFaultActorElement

protected void findFaultActorElement()

findFaultStringElement

protected void findFaultStringElement()

setFaultCode

public void setFaultCode(String faultCode)
                  throws SOAPException
Specified by:
setFaultCode in interface SOAPFault
Throws:
SOAPException

setFaultCode

public void setFaultCode(String faultCode,
                         String prefix,
                         String uri)
                  throws SOAPException
Throws:
SOAPException

setFaultCode

public void setFaultCode(Name faultCodeQName)
                  throws SOAPException
Specified by:
setFaultCode in interface SOAPFault
Throws:
SOAPException

setFaultCode

public void setFaultCode(QName faultCodeQName)
                  throws SOAPException
Specified by:
setFaultCode in interface SOAPFault
Throws:
SOAPException

convertCodeToQName

protected static QName convertCodeToQName(String code,
                                          SOAPElement codeContainingElement)

initializeDetail

protected void initializeDetail()

getDetail

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

addDetail

public Detail addDetail()
                 throws SOAPException
Specified by:
addDetail in interface SOAPFault
Throws:
SOAPException

hasDetail

public boolean hasDetail()
Specified by:
hasDetail in interface SOAPFault

setFaultActor

public abstract void setFaultActor(String faultActor)
                            throws SOAPException
Specified by:
setFaultActor in interface SOAPFault
Throws:
SOAPException

getFaultActor

public String getFaultActor()
Specified by:
getFaultActor in interface SOAPFault

setElementQName

public SOAPElement setElementQName(QName newName)
                            throws SOAPException
Specified by:
setElementQName in interface SOAPElement
Overrides:
setElementQName in class ElementImpl
Throws:
SOAPException

convertToSoapElement

protected SOAPElement convertToSoapElement(Element element)
Overrides:
convertToSoapElement in class ElementImpl

addFaultCodeElement

protected SOAPFaultElement addFaultCodeElement()
                                        throws SOAPException
Throws:
SOAPException

addElement

protected SOAPElement addElement(Name name)
                          throws SOAPException
Overrides:
addElement in class ElementImpl
Throws:
SOAPException

addElement

protected SOAPElement addElement(QName name)
                          throws SOAPException
Overrides:
addElement in class ElementImpl
Throws:
SOAPException

addSOAPFaultElement

protected FaultElementImpl addSOAPFaultElement(String localName)
                                        throws SOAPException
Throws:
SOAPException

xmlLangToLocale

protected static Locale xmlLangToLocale(String xmlLang)
Convert an xml:lang attribute value into a Locale object


localeToXmlLang

protected static String localeToXmlLang(Locale locale)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.