001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019
020 package javax.xml.ws.spi;
021
022 import javax.xml.bind.JAXBContext;
023 import javax.xml.namespace.QName;
024 import javax.xml.ws.Dispatch;
025 import javax.xml.ws.EndpointReference;
026 import javax.xml.ws.Service;
027 import javax.xml.ws.WebServiceFeature;
028 import javax.xml.ws.handler.HandlerResolver;
029 import java.net.URL;
030 import java.util.Iterator;
031 import java.util.concurrent.Executor;
032
033 public abstract class ServiceDelegate {
034
035 protected ServiceDelegate() {
036 }
037
038 public abstract <T> T getPort(QName qname, Class<T> class1);
039
040 public abstract <T> T getPort(Class<T> class1);
041
042 public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features);
043
044 public abstract <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features);
045
046 public abstract <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features);
047
048 public abstract void addPort(QName qname, String bindingId, String s);
049
050 public abstract <T>Dispatch<T> createDispatch(QName qname, Class<T> class1, Service.Mode mode);
051
052 public abstract Dispatch<Object> createDispatch(QName qname, JAXBContext jaxbcontext, javax.xml.ws.Service.Mode mode);
053
054 public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode, WebServiceFeature... features);
055
056 public abstract <T> Dispatch<T> createDispatch(EndpointReference endpointReference, Class<T> type, Service.Mode mode, WebServiceFeature... features);
057
058 public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features);
059
060 public abstract Dispatch<Object> createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features);
061
062 public abstract QName getServiceName();
063
064 public abstract Iterator<QName> getPorts();
065
066 public abstract URL getWSDLDocumentLocation();
067
068 public abstract HandlerResolver getHandlerResolver();
069
070 public abstract void setHandlerResolver(HandlerResolver handlerresolver);
071
072 public abstract Executor getExecutor();
073
074 public abstract void setExecutor(Executor executor);
075 }