com.sun.xml.ws.transport.http.server
Class EndpointImpl

java.lang.Object
  extended by javax.xml.ws.Endpoint
      extended by com.sun.xml.ws.transport.http.server.EndpointImpl

public class EndpointImpl
extends javax.xml.ws.Endpoint

Implements Endpoint.

This class accumulates the information necessary to create WSEndpoint, and then when publish(java.lang.String) method is called it will be created.

This object also allows accumulated information to be retrieved.


Field Summary
 
Fields inherited from class javax.xml.ws.Endpoint
WSDL_PORT, WSDL_SERVICE
 
Constructor Summary
EndpointImpl(BindingID bindingId, java.lang.Class implClass, javax.xml.ws.spi.Invoker invoker, javax.xml.ws.WebServiceFeature... features)
           
EndpointImpl(BindingID bindingId, java.lang.Object impl, javax.xml.ws.WebServiceFeature... features)
           
EndpointImpl(WSEndpoint wse, java.lang.Object serverContext)
          Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.
EndpointImpl(WSEndpoint wse, java.lang.Object serverContext, javax.xml.ws.EndpointContext ctxt)
          Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.
EndpointImpl(WSEndpoint wse, java.lang.String address)
          Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.
EndpointImpl(WSEndpoint wse, java.lang.String address, javax.xml.ws.EndpointContext ctxt)
          Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.
 
Method Summary
 javax.xml.ws.Binding getBinding()
           
<T extends javax.xml.ws.EndpointReference>
T
getEndpointReference(java.lang.Class<T> clazz, org.w3c.dom.Element... referenceParameters)
           
 javax.xml.ws.EndpointReference getEndpointReference(org.w3c.dom.Element... referenceParameters)
           
 java.util.concurrent.Executor getExecutor()
           
 java.lang.Object getImplementor()
           
 java.util.List<javax.xml.transform.Source> getMetadata()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 boolean isPublished()
           
 void publish(javax.xml.ws.spi.http.HttpContext serverContext)
           
 void publish(java.lang.Object serverContext)
           
 void publish(java.lang.String address)
           
 void setEndpointContext(javax.xml.ws.EndpointContext ctxt)
           
 void setExecutor(java.util.concurrent.Executor executor)
           
 void setMetadata(java.util.List<javax.xml.transform.Source> metadata)
           
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> map)
           
 void stop()
           
 
Methods inherited from class javax.xml.ws.Endpoint
create, create, create, create, publish, publish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointImpl

public EndpointImpl(@NotNull
                    BindingID bindingId,
                    @NotNull
                    java.lang.Object impl,
                    javax.xml.ws.WebServiceFeature... features)

EndpointImpl

public EndpointImpl(@NotNull
                    BindingID bindingId,
                    @NotNull
                    java.lang.Class implClass,
                    javax.xml.ws.spi.Invoker invoker,
                    javax.xml.ws.WebServiceFeature... features)

EndpointImpl

public EndpointImpl(WSEndpoint wse,
                    java.lang.Object serverContext)
Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.

Wraps an already created WSEndpoint into an EndpointImpl, and immediately publishes it with the given context.

Parameters:
wse - created endpoint
serverContext - supported http context

EndpointImpl

public EndpointImpl(WSEndpoint wse,
                    java.lang.Object serverContext,
                    javax.xml.ws.EndpointContext ctxt)
Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.

Wraps an already created WSEndpoint into an EndpointImpl, and immediately publishes it with the given context.

Parameters:
wse - created endpoint
serverContext - supported http context
ctxt - endpoint context

EndpointImpl

public EndpointImpl(WSEndpoint wse,
                    java.lang.String address)
Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.

Wraps an already created WSEndpoint into an EndpointImpl, and immediately publishes it with the given context.

Parameters:
wse - created endpoint
address - endpoint address

EndpointImpl

public EndpointImpl(WSEndpoint wse,
                    java.lang.String address,
                    javax.xml.ws.EndpointContext ctxt)
Deprecated. This is a backdoor method. Don't use it unless you know what you are doing.

Wraps an already created WSEndpoint into an EndpointImpl, and immediately publishes it with the given context.

Parameters:
wse - created endpoint
address - endpoint address
ctxt - endpoint context
Method Detail

getBinding

public javax.xml.ws.Binding getBinding()
Specified by:
getBinding in class javax.xml.ws.Endpoint

getImplementor

public java.lang.Object getImplementor()
Specified by:
getImplementor in class javax.xml.ws.Endpoint

publish

public void publish(java.lang.String address)
Specified by:
publish in class javax.xml.ws.Endpoint

publish

public void publish(java.lang.Object serverContext)
Specified by:
publish in class javax.xml.ws.Endpoint

publish

public void publish(javax.xml.ws.spi.http.HttpContext serverContext)
Overrides:
publish in class javax.xml.ws.Endpoint

stop

public void stop()
Specified by:
stop in class javax.xml.ws.Endpoint

isPublished

public boolean isPublished()
Specified by:
isPublished in class javax.xml.ws.Endpoint

getMetadata

public java.util.List<javax.xml.transform.Source> getMetadata()
Specified by:
getMetadata in class javax.xml.ws.Endpoint

setMetadata

public void setMetadata(java.util.List<javax.xml.transform.Source> metadata)
Specified by:
setMetadata in class javax.xml.ws.Endpoint

getExecutor

public java.util.concurrent.Executor getExecutor()
Specified by:
getExecutor in class javax.xml.ws.Endpoint

setExecutor

public void setExecutor(java.util.concurrent.Executor executor)
Specified by:
setExecutor in class javax.xml.ws.Endpoint

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Specified by:
getProperties in class javax.xml.ws.Endpoint

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.Object> map)
Specified by:
setProperties in class javax.xml.ws.Endpoint

getEndpointReference

public javax.xml.ws.EndpointReference getEndpointReference(org.w3c.dom.Element... referenceParameters)
Specified by:
getEndpointReference in class javax.xml.ws.Endpoint

getEndpointReference

public <T extends javax.xml.ws.EndpointReference> T getEndpointReference(java.lang.Class<T> clazz,
                                                                         org.w3c.dom.Element... referenceParameters)
Specified by:
getEndpointReference in class javax.xml.ws.Endpoint

setEndpointContext

public void setEndpointContext(javax.xml.ws.EndpointContext ctxt)
Overrides:
setEndpointContext in class javax.xml.ws.Endpoint


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.