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.SOAPFaultDetailImpl; 7 import org.apache.axis2.soap.impl.llom.SOAPProcessingException; 8 9 26 27 public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl{ 28 public SOAP12FaultDetailImpl(SOAPFault parent) throws SOAPProcessingException { 29 super(parent, true); 30 } 31 32 public SOAP12FaultDetailImpl(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 |