001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.geronimo.webservices.saaj;
018
019 import javax.xml.namespace.QName;
020 import javax.xml.soap.Detail;
021 import javax.xml.soap.Name;
022 import javax.xml.soap.SOAPElement;
023 import javax.xml.soap.SOAPException;
024 import javax.xml.soap.SOAPFactory;
025 import javax.xml.soap.SOAPFault;
026
027 public class GeronimoSOAPFactory extends SOAPFactory {
028
029 private SOAPFactory getSOAPFactory() throws SOAPException {
030 SOAPFactory factory =
031 (SOAPFactory)SAAJFactoryFinder.find("javax.xml.soap.SOAPFactory");
032 return factory;
033
034 }
035 public Detail createDetail() throws SOAPException {
036 return getSOAPFactory().createDetail();
037 }
038
039 public SOAPElement createElement(Name arg0) throws SOAPException {
040 return getSOAPFactory().createElement(arg0);
041 }
042
043 public SOAPElement createElement(String arg0) throws SOAPException {
044 return getSOAPFactory().createElement(arg0);
045 }
046
047 public SOAPElement createElement(String arg0, String arg1, String arg2) throws SOAPException {
048 return getSOAPFactory().createElement(arg0, arg1, arg2);
049 }
050
051 public SOAPFault createFault() throws SOAPException {
052 return getSOAPFactory().createFault();
053 }
054
055 public SOAPFault createFault(String arg0, QName arg1) throws SOAPException {
056 return getSOAPFactory().createFault(arg0, arg1);
057 }
058
059 public Name createName(String arg0) throws SOAPException {
060 return getSOAPFactory().createName(arg0);
061 }
062
063 public Name createName(String arg0, String arg1, String arg2) throws SOAPException {
064 return getSOAPFactory().createName(arg0, arg1, arg2);
065 }
066
067 }