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;
20:
21: import javax.xml.ws.spi.Provider;
22: import java.util.List;
23: import java.util.Map;
24: import java.util.concurrent.Executor;
25:
26: public abstract class Endpoint {
27:
28: public Endpoint() {
29: }
30:
31: public static Endpoint create(Object implementor) {
32: return create(null, implementor);
33: }
34:
35: public static Endpoint create(String bindingId, Object implementor) {
36: return Provider.provider().createEndpoint(bindingId,
37: implementor);
38: }
39:
40: public abstract Binding getBinding();
41:
42: public abstract Object getImplementor();
43:
44: public abstract void publish(String s);
45:
46: public static Endpoint publish(String address, Object implementor) {
47: return Provider.provider().createAndPublishEndpoint(address,
48: implementor);
49: }
50:
51: public abstract void publish(Object obj);
52:
53: public abstract void stop();
54:
55: public abstract boolean isPublished();
56:
57: public abstract List<javax.xml.transform.Source> getMetadata();
58:
59: public abstract void setMetadata(
60: List<javax.xml.transform.Source> list);
61:
62: public abstract Executor getExecutor();
63:
64: public abstract void setExecutor(Executor executor);
65:
66: public abstract Map<java.lang.String, java.lang.Object> getProperties();
67:
68: public abstract void setProperties(
69: Map<java.lang.String, java.lang.Object> map);
70:
71: public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
72: public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
73: }
|