01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.server.webservices.saaj;
17:
18: import javax.xml.namespace.QName;
19: import javax.xml.soap.Detail;
20: import javax.xml.soap.Name;
21: import javax.xml.soap.SOAPElement;
22: import javax.xml.soap.SOAPException;
23: import javax.xml.soap.SOAPFactory;
24: import javax.xml.soap.SOAPFault;
25:
26: public class SoapFactoryImpl extends SOAPFactory {
27:
28: private SOAPFactory getSOAPFactory() throws SOAPException {
29: SOAPFactory factory = (SOAPFactory) SaajFactoryFinder
30: .find("javax.xml.soap.SOAPFactory");
31: return factory;
32:
33: }
34:
35: public Detail createDetail() throws SOAPException {
36: return getSOAPFactory().createDetail();
37: }
38:
39: public SOAPElement createElement(Name arg0) throws SOAPException {
40: return getSOAPFactory().createElement(arg0);
41: }
42:
43: public SOAPElement createElement(String arg0) throws SOAPException {
44: return getSOAPFactory().createElement(arg0);
45: }
46:
47: public SOAPElement createElement(String arg0, String arg1,
48: String arg2) throws SOAPException {
49: return getSOAPFactory().createElement(arg0, arg1, arg2);
50: }
51:
52: public SOAPFault createFault() throws SOAPException {
53: return getSOAPFactory().createFault();
54: }
55:
56: public SOAPFault createFault(String arg0, QName arg1)
57: throws SOAPException {
58: return getSOAPFactory().createFault(arg0, arg1);
59: }
60:
61: public Name createName(String arg0) throws SOAPException {
62: return getSOAPFactory().createName(arg0);
63: }
64:
65: public Name createName(String arg0, String arg1, String arg2)
66: throws SOAPException {
67: return getSOAPFactory().createName(arg0, arg1, arg2);
68: }
69:
70: }
|