1 package org.apache.axis2.soap.impl.llom.soap12; 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 SOAP12FaultNodeImpl extends SOAPFaultNodeImpl{ 28 public SOAP12FaultNodeImpl(SOAPFault parent) throws SOAPProcessingException { 29 super(parent); 30 } 31 32 public SOAP12FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder) { 33 super(parent, builder); 34 } 35 36 protected void checkParent(OMElement parent) throws SOAPProcessingException { 37 if (!(parent instanceof SOAP12FaultImpl)) { 38 throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation"); 39 } 40 } 41 } 42 | Popular Tags |