KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > soap > impl > llom > soap12 > SOAP12FaultNodeImpl


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 /*
10  * Copyright 2004,2005 The Apache Software Foundation.
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  *
24  * author : Eran Chinthaka (chinthaka@apache.org)
25  */

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