KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.axis2.soap.impl.llom.soap12;
2
3 import org.apache.axis2.om.OMException;
4 import org.apache.axis2.om.OMXMLParserWrapper;
5 import org.apache.axis2.soap.SOAPEnvelope;
6 import org.apache.axis2.soap.SOAPFault;
7 import org.apache.axis2.soap.impl.llom.SOAPBodyImpl;
8 import org.apache.axis2.soap.impl.llom.SOAPProcessingException;
9
10 /*
11  * Copyright 2004,2005 The Apache Software Foundation.
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License");
14  * you may not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  *
25  * author : Eran Chinthaka (chinthaka@apache.org)
26  */

27
28 public class SOAP12BodyImpl extends SOAPBodyImpl{
29     /**
30      * @param envelope
31      */

32     public SOAP12BodyImpl(SOAPEnvelope envelope) throws SOAPProcessingException {
33         super(envelope);
34     }
35
36     /**
37      * Constructor SOAPBodyImpl
38      *
39      * @param envelope
40      * @param builder
41      */

42     public SOAP12BodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
43         super(envelope, builder);
44     }
45
46     public SOAPFault addFault(Exception JavaDoc e) throws OMException {
47         SOAPFault soapFault = new SOAP12FaultImpl(this, e);
48         addFault(soapFault);
49         return soapFault;
50     }
51 }
52
Popular Tags