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.impl.llom.SOAPFaultValueImpl; 6 import org.apache.axis2.soap.impl.llom.SOAPProcessingException; 7 8 25 26 public class SOAP11FaultValueImpl extends SOAPFaultValueImpl{ 27 public SOAP11FaultValueImpl(OMElement parent) throws SOAPProcessingException { 28 super(parent); 29 } 30 31 public SOAP11FaultValueImpl(OMElement parent, OMXMLParserWrapper builder) { 32 super(parent, builder); 33 } 34 35 36 protected void checkParent(OMElement parent) throws SOAPProcessingException { 37 if (!((parent instanceof SOAP11FaultSubCodeImpl)|| (parent instanceof SOAP11FaultCodeImpl))) { 38 throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation."+parent.getClass()); 39 } 40 } 41 } 42 | Popular Tags |