All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.xml.ws.spi.Provider Maven / Gradle / Ivy

There is a newer version: 8.0-6
Show newest version
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package javax.xml.ws.spi;

import org.w3c.dom.Element;

import javax.xml.namespace.QName;
import javax.xml.transform.Source;
import javax.xml.ws.Endpoint;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.Service;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
import java.net.URL;
import java.util.List;
import java.util.Map;

public abstract class Provider {
    public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
    private static final String DEFAULT_JAXWSPROVIDER = "org.apache.cxf.jaxws.spi.ProviderImpl";

    protected Provider() {
    }

    public static Provider provider() {
        return (Provider) FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);
    }

    /**
     * Creates a service delegate object for the URL and service Qname
     */
    public abstract ServiceDelegate createServiceDelegate(URL url, QName qname, Class class1);
    
    /**
     * Creates a service delegate object for the URL, service Qname, and web service features.
     * @since 2.2
     */
    public ServiceDelegate createServiceDelegate(URL url, QName qname, Class cls,
                                                 WebServiceFeature ... features) {
        throw new UnsupportedOperationException("JAX-WS 2.2 implementations must override this method.");        
    }

    /**
     * Creates an Endpoint object with the provided bindingId and implementation object.
     */
    public abstract Endpoint createEndpoint(String bindingId, Object obj);

    /**
     * Creates an Endpoint object with the provided bindingId, implementation class, invoker, and web service features.
     * @since 2.2
     */
    public Endpoint createEndpoint(String bindingId, Class cls, Invoker invoker, WebServiceFeature ... features) {
        throw new UnsupportedOperationException("JAX-WS 2.2 implementations must override this method.");        
    }
    
    /**
     * Creates an Endpoint object with the provided bindingId, implementation object, and web service features.
     * @since 2.2
     */
    public Endpoint createEndpoint(String bindingId, Object obj, WebServiceFeature ... features) {
        throw new UnsupportedOperationException("JAX-WS 2.2 implementations must override this method.");        
    }

    
    /**
     * Creates and publishes an Endpoint object with the specified address and implementation object.
     */
    public abstract Endpoint createAndPublishEndpoint(String s, Object obj);
    
    /**
     * Creates and publishes an Endpoint object with the specified address, implementation object and web service features.
     * @since 2.2
     */
    public Endpoint createAndPublishEndpoint(String address, Object obj, WebServiceFeature ... features) {
        throw new UnsupportedOperationException("JAX-WS 2.2 implementations must override this method.");
    }
    
    public abstract EndpointReference readEndpointReference(Source eprInfoset);
    
    public abstract  T getPort(EndpointReference endpointReference, Class serviceEndpointInterface, 
                                  WebServiceFeature... features);
    
    public abstract W3CEndpointReference createW3CEndpointReference(String address,
            QName serviceName,
            QName portName,
            List metadata,
            String wsdlDocumentLocation,
            List referenceParameters);
    

    
    /**
     * @since 2.2
     */
    public W3CEndpointReference createW3CEndpointReference(String address, 
                                                           QName interfaceName, 
                                                           QName serviceName,
                                                           QName portName,
                                                           List metadata,
                                                           String wsdlLocation,
                                                           List referenceParameters,
                                                           List elements,
                                                           Map attributes) {
        throw new UnsupportedOperationException("JAX-WS 2.2 implementations must override this method.");        
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy