Class FaultImpl
java.lang.Object
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
com.sun.xml.messaging.saaj.soap.impl.FaultImpl
- All Implemented Interfaces:
javax.xml.soap.Node,javax.xml.soap.SOAPBodyElement,javax.xml.soap.SOAPElement,javax.xml.soap.SOAPFault,Element,Node
- Direct Known Subclasses:
Fault1_1Impl,Fault1_2Impl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.xml.soap.Detailprotected javax.xml.soap.SOAPFaultElementprotected javax.xml.soap.SOAPFaultElementprotected javax.xml.soap.SOAPFaultElementFields inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
DSIG_NS, elementQName, log, WSU_NS, XENC_NS, XML_URI, XMLNS_URIFields 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFaultImpl(SOAPDocumentImpl ownerDoc, NameImpl name) FaultImpl(SOAPDocumentImpl ownerDoc, Element domElement) -
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.soap.Detailprotected javax.xml.soap.SOAPElementaddElement(QName name) protected javax.xml.soap.SOAPElementaddElement(javax.xml.soap.Name name) protected javax.xml.soap.SOAPFaultElementprotected FaultElementImpladdSOAPFaultElement(String localName) protected abstract voidcheckIfStandardFaultCode(String faultCode, String uri) protected static QNameconvertCodeToQName(String code, javax.xml.soap.SOAPElement codeContainingElement) protected javax.xml.soap.SOAPElementconvertToSoapElement(Element element) protected abstract DetailImplprotected abstract FaultElementImplcreateSOAPFaultElement(String localName) protected abstract FaultElementImplcreateSOAPFaultElement(QName qname) protected abstract FaultElementImplcreateSOAPFaultElement(javax.xml.soap.Name qname) protected abstract voidfinallySetFaultCode(String faultcode) protected voidprotected voidprotected voidprotected abstract QNamejavax.xml.soap.Detailprotected abstract NameImplprotected abstract NameImplprotected abstract NameImplprotected abstract NameImplbooleanprotected voidprotected abstract booleanisStandardFaultElement(String localName) protected static StringlocaleToXmlLang(Locale locale) javax.xml.soap.SOAPElementsetElementQName(QName newName) abstract voidsetFaultActor(String faultActor) voidsetFaultCode(String faultCode) voidsetFaultCode(String faultCode, String prefix, String uri) voidsetFaultCode(QName faultCodeQName) voidsetFaultCode(javax.xml.soap.Name faultCodeQName) protected static LocalexmlLangToLocale(String xmlLang) Convert an xml:lang attribute value into a Locale objectMethods inherited from class com.sun.xml.messaging.saaj.soap.impl.ElementImpl
addAttribute, addAttribute, addCDATA, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addNamespaceDeclaration, addNode, addText, addTextNode, appendChild, cloneNode, compareDocumentPosition, convertToSoapText, createElement, createElement, createQName, detachNode, doGetNamespacePrefixes, ensureNamespaceIsDeclared, findAndConvertChildElement, findChild, findEncodingStyleAttributeName, getAllAttributes, getAllAttributesAsQNames, getAllAttributesFrom, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributeValue, getAttributeValue, getAttributeValueFrom, getBaseURI, getChildElementNodes, getChildElements, getChildElements, getChildElements, getChildElementsFrom, getChildNodes, getDomElement, getElementName, getElementQName, getElementsByTagName, getElementsByTagNameNS, getEncodingStyle, getFeature, getFirstChild, getLastChild, getLocalName, getLocalPart, getNamespaceAttr, getNamespaceAttrFrom, getNamespaceContextNodes, getNamespaceContextNodes, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPrefix, getPreviousSibling, getQualifiedName, getSchemaTypeInfo, getSoapDocument, getSOAPNamespace, getTagName, getTextContent, getUserData, getValue, getValueNode, getValueNodeStrict, getVisibleNamespacePrefixes, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importElement, insertBefore, isDefaultNamespace, isEqualNode, isNamespaceQualified, isNamespaceQualified, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeAttribute, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeContents, removeNamespaceDeclaration, replaceChild, replaceElementWithSOAPElement, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setEncodingStyle, setEncodingStyleNamespace, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue, setParentElement, setPrefix, setTextContent, setUserData, setValue, tryToFindEncodingStyleAttributeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, setIdAttributeNSMethods inherited from interface javax.xml.soap.Node
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValueMethods 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, setUserDataMethods 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, setEncodingStyleMethods 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
-
Field Details
-
faultStringElement
protected javax.xml.soap.SOAPFaultElement faultStringElement -
faultActorElement
protected javax.xml.soap.SOAPFaultElement faultActorElement -
faultCodeElement
protected javax.xml.soap.SOAPFaultElement faultCodeElement -
detail
protected javax.xml.soap.Detail detail
-
-
Constructor Details
-
FaultImpl
-
FaultImpl
-
-
Method Details
-
getDetailName
-
getFaultCodeName
-
getFaultStringName
-
getFaultActorName
-
createDetail
-
createSOAPFaultElement
-
createSOAPFaultElement
-
createSOAPFaultElement
-
checkIfStandardFaultCode
protected abstract void checkIfStandardFaultCode(String faultCode, String uri) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
finallySetFaultCode
- Throws:
javax.xml.soap.SOAPException
-
isStandardFaultElement
-
getDefaultFaultCode
-
findFaultCodeElement
protected void findFaultCodeElement() -
findFaultActorElement
protected void findFaultActorElement() -
findFaultStringElement
protected void findFaultStringElement() -
setFaultCode
- Specified by:
setFaultCodein interfacejavax.xml.soap.SOAPFault- Throws:
javax.xml.soap.SOAPException
-
setFaultCode
public void setFaultCode(String faultCode, String prefix, String uri) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
setFaultCode
public void setFaultCode(javax.xml.soap.Name faultCodeQName) throws javax.xml.soap.SOAPException - Specified by:
setFaultCodein interfacejavax.xml.soap.SOAPFault- Throws:
javax.xml.soap.SOAPException
-
setFaultCode
- Specified by:
setFaultCodein interfacejavax.xml.soap.SOAPFault- Throws:
javax.xml.soap.SOAPException
-
convertCodeToQName
-
initializeDetail
protected void initializeDetail() -
getDetail
public javax.xml.soap.Detail getDetail()- Specified by:
getDetailin interfacejavax.xml.soap.SOAPFault
-
addDetail
public javax.xml.soap.Detail addDetail() throws javax.xml.soap.SOAPException- Specified by:
addDetailin interfacejavax.xml.soap.SOAPFault- Throws:
javax.xml.soap.SOAPException
-
hasDetail
public boolean hasDetail()- Specified by:
hasDetailin interfacejavax.xml.soap.SOAPFault
-
setFaultActor
- Specified by:
setFaultActorin interfacejavax.xml.soap.SOAPFault- Throws:
javax.xml.soap.SOAPException
-
getFaultActor
- Specified by:
getFaultActorin interfacejavax.xml.soap.SOAPFault
-
setElementQName
public javax.xml.soap.SOAPElement setElementQName(QName newName) throws javax.xml.soap.SOAPException - Specified by:
setElementQNamein interfacejavax.xml.soap.SOAPElement- Overrides:
setElementQNamein classElementImpl- Throws:
javax.xml.soap.SOAPException
-
convertToSoapElement
- Overrides:
convertToSoapElementin classElementImpl
-
addFaultCodeElement
protected javax.xml.soap.SOAPFaultElement addFaultCodeElement() throws javax.xml.soap.SOAPException- Throws:
javax.xml.soap.SOAPException
-
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException - Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addElement
- Overrides:
addElementin classElementImpl- Throws:
javax.xml.soap.SOAPException
-
addSOAPFaultElement
protected FaultElementImpl addSOAPFaultElement(String localName) throws javax.xml.soap.SOAPException - Throws:
javax.xml.soap.SOAPException
-
xmlLangToLocale
Convert an xml:lang attribute value into a Locale object- Parameters:
xmlLang- xml:lang attribute value- Returns:
- Locale
-
localeToXmlLang
-