Fault1_1Impl.java revision 325
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
*
* @author SAAJ RI Development Team
*/
public class Fault1_1Impl extends FaultImpl {
"com.sun.xml.internal.messaging.saaj.soap.ver1_1.LocalStrings");
}
protected NameImpl getDetailName() {
return NameImpl.createDetail1_1Name();
}
protected NameImpl getFaultCodeName() {
}
protected NameImpl getFaultStringName() {
}
protected NameImpl getFaultActorName() {
}
protected DetailImpl createDetail() {
return new Detail1_1Impl(
}
return new FaultElement1_1Impl(
}
throws SOAPException {
// SOAP 1.1 doesn't seem to mandate using faultcode from a particular
// set of values.
// Also need to be backward compatible.
}
}
public String getFaultCode() {
if (this.faultCodeElement == null)
return this.faultCodeElement.getValue();
}
public Name getFaultCodeAsName() {
if (faultcodeString == null) {
return null;
}
if (prefixIndex == -1) {
// Not a valid SOAP message, but we return the unqualified name
// anyway since some apps do not strictly conform to SOAP
// specs. A message that does not contain a <faultcode>
// element itself is also not valid in which case we return
// null instead of throwing an exception so this is consistent.
}
// Get the prefix and map it to a namespace name (AKA namespace URI)
if (this.faultCodeElement == null)
}
public QName getFaultCodeAsQName() {
if (faultcodeString == null) {
return null;
}
if (this.faultCodeElement == null)
}
if (this.faultStringElement == null)
if (this.faultStringElement == null)
else {
this.faultStringElement.removeContents();
//this.faultStringElement.removeAttributeNS("http://www.w3.org/XML/1998/namespace", "lang");
}
}
public String getFaultString() {
if (this.faultStringElement == null)
return this.faultStringElement.getValue();
}
public Locale getFaultStringLocale() {
if (this.faultStringElement == null)
if (this.faultStringElement != null) {
if (xmlLangAttr != null)
return xmlLangToLocale(xmlLangAttr);
}
return null;
}
throws SOAPException {
}
return true;
}
return false;
}
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"appendFaultSubcode");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public void removeAllFaultSubcodes() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"removeAllFaultSubcodes");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public Iterator getFaultSubcodes() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultSubcodes");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultReasonText");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public Iterator getFaultReasonTexts() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultReasonTexts");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public Iterator getFaultReasonLocales() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultReasonLocales");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
throws SOAPException {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"addFaultReasonText");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public String getFaultRole() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultRole");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"setFaultRole");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
public String getFaultNode() {
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"getFaultNode");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
"SAAJ0303.ver1_1.msg.op.unsupported.in.SOAP1.1",
"setFaultNode");
throw new UnsupportedOperationException("Not supported in SOAP 1.1");
}
protected QName getDefaultFaultCode() {
}
throws SOAPException {
if (hasDetail()) {
throw new SOAPExceptionImpl("Cannot add Detail, Detail already exists");
}
}
return super.addChildElement(element);
}
return new FaultElement1_1Impl(
qname);
}
return new FaultElement1_1Impl(
}
throws SOAPException {
prefix = "ns0";
}
}
}
if (this.faultCodeElement == null)
if (this.faultCodeElement == null)
this.faultCodeElement = addFaultCodeElement();
else
this.faultCodeElement.removeContents();
}
}
//cannot allow an empty URI for a non-Empty prefix
throw new SOAPExceptionImpl("Empty/Null NamespaceURI specified for faultCode \"" + prefix + ":" + faultCode + "\"");
} else {
uri = "";
}
}
} else {
}
}
return true;
}
return true;
}
return false;
}
if (this.faultActorElement == null)
if (this.faultActorElement != null)
this.faultActorElement.detachNode();
if (faultActor == null)
return;
this.faultActorElement =
if (hasDetail()) {
return;
}
addNode(this.faultActorElement);
}
}