1 5 6 package javax.xml.ws; 7 8 import java.util.List ; 9 import java.util.Map ; 10 import javax.xml.ws.spi.Provider; 11 import javax.xml.ws.wsaddressing.W3CEndpointReference; 12 import org.w3c.dom.Element ; 13 14 15 51 public abstract class Endpoint { 52 53 56 public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service"; 57 58 61 public static final String WSDL_PORT = "javax.xml.ws.wsdl.port"; 62 63 64 79 public static Endpoint create(Object implementor) { 80 return create(null, implementor); 81 } 82 83 100 public static Endpoint create(String bindingId, Object implementor) { 101 return Provider.provider().createEndpoint(bindingId, implementor); 102 } 103 104 105 110 public abstract Binding getBinding(); 111 112 117 public abstract Object getImplementor(); 118 119 142 public abstract void publish(String address); 143 144 169 public static Endpoint publish(String address, Object implementor) { 170 return Provider.provider().createAndPublishEndpoint(address, implementor); 171 } 172 173 198 public abstract void publish(Object serverContext); 199 200 207 public abstract void stop(); 208 209 214 public abstract boolean isPublished(); 215 216 221 public abstract List <javax.xml.transform.Source > getMetadata(); 222 223 233 public abstract void setMetadata(List <javax.xml.transform.Source > metadata); 234 235 246 public abstract java.util.concurrent.Executor getExecutor(); 247 248 268 public abstract void setExecutor(java.util.concurrent.Executor executor); 269 270 271 277 public abstract Map <String ,Object > getProperties(); 278 279 285 public abstract void setProperties(Map <String ,Object > properties); 286 287 312 public abstract EndpointReference getEndpointReference(Element ... referenceParameters); 313 314 315 338 public abstract <T extends EndpointReference> T getEndpointReference(Class <T> clazz, 339 Element ... referenceParameters); 340 } 341 | Popular Tags |