KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > soap > impl > llom > soap11 > SOAP11FaultNodeImpl


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 /*
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 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