public interface SOAPFaultClassifier extends OMElement
SOAPFaultCode
and SOAPFaultSubCode
.
This interface enables manipulation of SOAP fault codes and SOAP fault sub
codes using common code.CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
SOAPFaultSubCode |
getSubCode() |
SOAPFaultValue |
getValue()
Get the
SOAPFaultValue for this fault code or subcode. |
QName |
getValueAsQName()
Get the value of this fault code or subcode.
|
void |
setSubCode(SOAPFaultSubCode subCode)
Fault SubCode can contain an optional SubCode
|
void |
setValue(QName value)
Set the value of this fault code or subcode.
|
void |
setValue(SOAPFaultValue value)
Fault SubCode contain only one mandatory Value child.
|
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore
addChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXResult, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren
build, close, isComplete, serialize, serialize, serializeAndConsume
clone, getOMFactory
getLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, hasName, setLocalName, setNamespace
void setValue(SOAPFaultValue value) throws SOAPProcessingException
value
- SOAPProcessingException
SOAPFaultValue getValue()
SOAPFaultValue
for this fault code or subcode. Note that for SOAP 1.1, the
return value will always be null
. Use getValueAsQName()
as a SOAP
version independent way to extract the value of a fault code or subcode.SOAPFaultValue
object or null
if there is no
SOAPFaultValue
void setValue(QName value)
SOAPFaultCode
element.
For SOAP 1.2, the method ensures that the SOAPFaultCode
or SOAPFaultSubCode
element has a child of type SOAPFaultValue
child (creating one if necessary) and sets
the text content of that child. In both cases, the method adds an appropriate namespace
declaration if necessary.value
- the QName for the fault code or subcode valueQName getValueAsQName()
SOAPFaultCode
) and resolves it as a QName
. For SOAP 1.2, it locates the
SOAPFaultValue
child, extracts the text content from that element and resolves it as
a QName
.
The method returns null
if it fails to extract the value. Note that invalid SOAP
faults are very common (especially with SOAP 1.1). Therefore the caller must be prepared to
get a null
value.
null
if the value
could not be determinedvoid setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException
subCode
- SOAPProcessingException
SOAPFaultSubCode getSubCode()
Copyright © The Apache Software Foundation. All Rights Reserved.