KickJava   Java API By Example, From Geeks To Geeks.

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


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

27 public class SOAP11Factory extends SOAPLinkedListImplFactory {
28     /**
29      * Eran Chinthaka (chinthaka@apache.org)
30      */

31
32     public SOAPEnvelope createSOAPEnvelope() {
33         return new SOAPEnvelopeImpl(new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX));
34     }
35
36     public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
37         return new SOAP11HeaderImpl(envelope);
38     }
39
40     public SOAPHeader createSOAPHeader(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
41         return new SOAP11HeaderImpl(envelope, builder);
42     }
43
44     public SOAPHeaderBlock createSOAPHeaderBlock(String JavaDoc localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
45         return new SOAP11HeaderBlockImpl(localName, ns, parent);
46     }
47
48     public SOAPHeaderBlock createSOAPHeaderBlock(String JavaDoc localName, OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder) throws SOAPProcessingException {
49         return new SOAP11HeaderBlockImpl(localName, ns, parent, builder);
50     }
51
52     public SOAPFault createSOAPFault(SOAPBody parent, Exception JavaDoc e) throws SOAPProcessingException {
53         return new SOAP11FaultImpl(parent, e);
54     }
55
56     public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
57         return new SOAP11FaultImpl(parent);
58     }
59
60     public SOAPFault createSOAPFault(SOAPBody parent, OMXMLParserWrapper builder) {
61         return new SOAP11FaultImpl(parent, builder);
62     }
63
64     public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
65         return new SOAP11BodyImpl(envelope);
66     }
67
68     public SOAPBody createSOAPBody(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
69         return new SOAP11BodyImpl(envelope, builder);
70     }
71
72     public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
73         return new SOAP11FaultCodeImpl(parent);
74     }
75
76     public SOAPFaultCode createSOAPFaultCode(SOAPFault parent, OMXMLParserWrapper builder) {
77         return new SOAP11FaultCodeImpl(parent, builder);
78     }
79
80     public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
81         return new SOAP11FaultValueImpl(parent);
82     }
83
84     public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent, OMXMLParserWrapper builder) {
85         return new SOAP11FaultValueImpl(parent, builder);
86     }
87
88     //added
89
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
90         return new SOAP11FaultValueImpl(parent);
91     }
92
93     //added
94
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
95         return new SOAP11FaultValueImpl(parent, builder);
96     }
97
98     //changed
99
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
100         return new SOAP11FaultSubCodeImpl(parent);
101     }
102
103     //changed
104
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent, OMXMLParserWrapper builder) {
105         return new SOAP11FaultSubCodeImpl(parent, builder);
106     }
107
108     public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
109         return new SOAP11FaultSubCodeImpl(parent);
110     }
111
112     public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent, OMXMLParserWrapper builder) {
113         return new SOAP11FaultSubCodeImpl(parent, builder);
114     }
115
116     public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
117         return new SOAP11FaultReasonImpl(parent);
118     }
119
120     public SOAPFaultReason createSOAPFaultReason(SOAPFault parent, OMXMLParserWrapper builder) {
121         return new SOAP11FaultReasonImpl(parent, builder);
122     }
123
124     public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
125         return new SOAP11FaultTextImpl(parent);
126     }
127
128     public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent, OMXMLParserWrapper builder) {
129         return new SOAP11FaultTextImpl(parent, builder);
130     }
131
132     public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
133         return new SOAP11FaultNodeImpl(parent);
134     }
135
136     public SOAPFaultNode createSOAPFaultNode(SOAPFault parent, OMXMLParserWrapper builder) {
137         return new SOAP11FaultNodeImpl(parent, builder);
138     }
139
140     public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
141         return new SOAP11FaultRoleImpl(parent);
142     }
143
144     public SOAPFaultRole createSOAPFaultRole(SOAPFault parent, OMXMLParserWrapper builder) {
145         return new SOAP11FaultRoleImpl(parent, builder);
146     }
147
148     public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
149         return new SOAP11FaultDetailImpl(parent);
150     }
151
152     public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent, OMXMLParserWrapper builder) {
153         return new SOAP11FaultDetailImpl(parent, builder);
154     }
155
156     public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
157         OMNamespace ns =
158                 new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
159                         SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
160         SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns);
161         SOAPHeader headerImpl = createSOAPHeader(env);
162         SOAPBody bodyImpl = createSOAPBody(env);
163         return env;
164     }
165
166
167
168 }
169
Popular Tags