1 package org.apache.axis2.soap.impl.llom.soap11; 2 3 import org.apache.axis2.om.OMElement; 4 import org.apache.axis2.om.OMXMLParserWrapper; 5 import org.apache.axis2.soap.SOAPFault; 6 import org.apache.axis2.soap.impl.llom.SOAPFaultNodeImpl; 7 import org.apache.axis2.soap.impl.llom.SOAPProcessingException; 8 9 26 27 public class SOAP11FaultNodeImpl extends SOAPFaultNodeImpl { 28 29 public SOAP11FaultNodeImpl(SOAPFault parent) throws SOAPProcessingException { 30 super(parent); 31 } 32 33 public SOAP11FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder) { 34 super(parent, builder); 35 } 36 37 protected void checkParent(OMElement parent) throws SOAPProcessingException { 38 if (!(parent instanceof SOAP11FaultImpl)) { 39 throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation"); 40 } 41 } 42 } 43 | Popular Tags |