01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package javax.xml.ws.spi;
20:
21: import javax.xml.bind.JAXBContext;
22: import javax.xml.namespace.QName;
23: import javax.xml.ws.Dispatch;
24: import javax.xml.ws.handler.HandlerResolver;
25: import java.net.URI;
26: import java.net.URL;
27: import java.util.Iterator;
28: import java.util.concurrent.Executor;
29:
30: public abstract class ServiceDelegate {
31:
32: protected ServiceDelegate() {
33: }
34:
35: public abstract <T> T getPort(QName qname, Class<T> class1);
36:
37: public abstract <T> T getPort(Class<T> class1);
38:
39: public abstract void addPort(QName qname, String bindingId, String s);
40:
41: public abstract <T> Dispatch<T> createDispatch(QName qname,
42: Class<T> class1, javax.xml.ws.Service.Mode mode);
43:
44: public abstract Dispatch<java.lang.Object> createDispatch(
45: QName qname, JAXBContext jaxbcontext,
46: javax.xml.ws.Service.Mode mode);
47:
48: public abstract QName getServiceName();
49:
50: public abstract Iterator<javax.xml.namespace.QName> getPorts();
51:
52: public abstract URL getWSDLDocumentLocation();
53:
54: public abstract HandlerResolver getHandlerResolver();
55:
56: public abstract void setHandlerResolver(
57: HandlerResolver handlerresolver);
58:
59: public abstract Executor getExecutor();
60:
61: public abstract void setExecutor(Executor executor);
62: }
|