Class EndpointImpl

java.lang.Object
jakarta.xml.ws.Endpoint
org.apache.cxf.jaxws.EndpointImpl
All Implemented Interfaces:
AutoCloseable, org.apache.cxf.configuration.Configurable, org.apache.cxf.interceptor.InterceptorProvider
Direct Known Subclasses:
EndpointDefinitionParser.SpringEndpointImpl, EndpointImpl

public class EndpointImpl extends jakarta.xml.ws.Endpoint implements org.apache.cxf.interceptor.InterceptorProvider, org.apache.cxf.configuration.Configurable, AutoCloseable
  • Field Details

    • CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY

      public static final String CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY
      This property controls whether the 'publishEndpoint' permission is checked using only the AccessController (i.e. when SecurityManager is not installed). By default this check is not done as the system property is not set.
      See Also:
    • CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER

      public static final String CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER
      See Also:
  • Constructor Details

    • EndpointImpl

      public EndpointImpl(Object implementor)
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus b, Object implementor, JaxWsServerFactoryBean sf)
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri, String wsdl)
      Parameters:
      b -
      i - The implementor object.
      bindingUri - The URI of the Binding being used. Optional.
      wsdl - The URL of the WSDL for the service, if different than the URL specified on the WebService annotation. Optional.
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri, String wsdl, jakarta.xml.ws.WebServiceFeature[] f)
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri)
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri, jakarta.xml.ws.WebServiceFeature[] features)
    • EndpointImpl

      public EndpointImpl(org.apache.cxf.Bus bus, Object implementor)
  • Method Details

    • setBus

      public void setBus(org.apache.cxf.Bus b)
    • getBus

      public org.apache.cxf.Bus getBus()
    • getBinding

      public jakarta.xml.ws.Binding getBinding()
      Specified by:
      getBinding in class jakarta.xml.ws.Endpoint
    • setExecutor

      public void setExecutor(Executor executor)
      Specified by:
      setExecutor in class jakarta.xml.ws.Endpoint
    • getExecutor

      public Executor getExecutor()
      Specified by:
      getExecutor in class jakarta.xml.ws.Endpoint
    • getService

      public org.apache.cxf.service.Service getService()
    • getServiceFactory

      public JaxWsServiceFactoryBean getServiceFactory()
    • getImplementor

      public Object getImplementor()
      Specified by:
      getImplementor in class jakarta.xml.ws.Endpoint
    • getImplementorClass

      public Class<?> getImplementorClass()
      Gets the class of the implementor.
      Returns:
      the class of the implementor object
    • getMetadata

      public List<Source> getMetadata()
      Specified by:
      getMetadata in class jakarta.xml.ws.Endpoint
    • getProperties

      public Map<String,Object> getProperties()
      Specified by:
      getProperties in class jakarta.xml.ws.Endpoint
    • isPublished

      public boolean isPublished()
      Specified by:
      isPublished in class jakarta.xml.ws.Endpoint
    • publish

      public void publish(Object arg0)

      This implementation performs no action except to check the publish permission.

      Specified by:
      publish in class jakarta.xml.ws.Endpoint
    • publish

      public void publish(String addr)
      Specified by:
      publish in class jakarta.xml.ws.Endpoint
    • setServiceFactory

      public void setServiceFactory(JaxWsServiceFactoryBean sf)
    • setMetadata

      public void setMetadata(List<Source> metadata)
      Specified by:
      setMetadata in class jakarta.xml.ws.Endpoint
    • setProperties

      public void setProperties(Map<String,Object> properties)
      Specified by:
      setProperties in class jakarta.xml.ws.Endpoint
    • stop

      public void stop()
      Specified by:
      stop in class jakarta.xml.ws.Endpoint
    • getBeanName

      public String getBeanName()
      Specified by:
      getBeanName in interface org.apache.cxf.configuration.Configurable
    • getServerFactory

      public JaxWsServerFactoryBean getServerFactory()
    • setServerFactory

      protected void setServerFactory(JaxWsServerFactoryBean bean)
    • checkProperties

      protected void checkProperties()
    • doPublish

      protected void doPublish(String addr)
      Performs the publication action by setting up a Server instance based on this endpoint's configuration.
      Parameters:
      addr - the optional endpoint address.
      Throws:
      IllegalStateException - if the endpoint cannot be published/republished
      SecurityException - if permission checking is enabled and policy forbids publishing
      jakarta.xml.ws.WebServiceException - if there is an error publishing the endpoint
      See Also:
    • getServer

      public org.apache.cxf.endpoint.ServerImpl getServer()
    • getServer

      public org.apache.cxf.endpoint.ServerImpl getServer(String addr)
    • checkPublishPermission

      protected void checkPublishPermission()
    • checkPublishable

      protected void checkPublishable()
      Checks the value of publishable and throws an IllegalStateException if the value is false.
      Throws:
      IllegalStateException - if publishable is false
    • publish

      public void publish()
    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress(String address)
    • getPublishedEndpointUrl

      public String getPublishedEndpointUrl()
      The published endpoint url is used for excplicitely specifying the url of the endpoint that would show up the generated wsdl definition, when the service is brought on line.
      Returns:
    • setPublishedEndpointUrl

      public void setPublishedEndpointUrl(String publishedEndpointUrl)
    • getEndpointName

      public QName getEndpointName()
    • setEndpointName

      public void setEndpointName(QName endpointName)
    • getServiceName

      public QName getServiceName()
    • setServiceName

      public void setServiceName(QName serviceName)
    • getWsdlLocation

      public String getWsdlLocation()
    • setWsdlLocation

      public void setWsdlLocation(String wsdlLocation)
    • setBindingUri

      public void setBindingUri(String binding)
    • getBindingUri

      public String getBindingUri()
    • setDataBinding

      public void setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding)
    • getDataBinding

      public org.apache.cxf.databinding.DataBinding getDataBinding()
    • getOutFaultInterceptors

      public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutFaultInterceptors()
      Specified by:
      getOutFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
    • getInFaultInterceptors

      public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()
      Specified by:
      getInFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
    • getInInterceptors

      public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()
      Specified by:
      getInInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
    • getOutInterceptors

      public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()
      Specified by:
      getOutInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
    • setInInterceptors

      public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
    • setInFaultInterceptors

      public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
    • setOutInterceptors

      public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
    • setOutFaultInterceptors

      public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
    • setHandlers

      public void setHandlers(List<jakarta.xml.ws.handler.Handler> h)
    • getHandlers

      public List<jakarta.xml.ws.handler.Handler> getHandlers()
    • getFeatures

      public List<org.apache.cxf.feature.Feature> getFeatures()
    • setFeatures

      public void setFeatures(List<? extends org.apache.cxf.feature.Feature> features)
    • getInvoker

      public org.apache.cxf.service.invoker.Invoker getInvoker()
    • setInvoker

      public void setInvoker(org.apache.cxf.service.invoker.Invoker invoker)
    • setImplementorClass

      public void setImplementorClass(Class<?> implementorClass)
    • setTransportId

      public void setTransportId(String transportId)
    • getTransportId

      public String getTransportId()
    • setBindingConfig

      public void setBindingConfig(org.apache.cxf.binding.BindingConfiguration config)
    • getBindingConfig

      public org.apache.cxf.binding.BindingConfiguration getBindingConfig()
    • getSchemaLocations

      public List<String> getSchemaLocations()
    • setSchemaLocations

      public void setSchemaLocations(List<String> schemaLocations)
    • getEndpointReference

      public jakarta.xml.ws.EndpointReference getEndpointReference(Element... referenceParameters)
      Specified by:
      getEndpointReference in class jakarta.xml.ws.Endpoint
    • getEndpointReference

      public <T extends jakarta.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters)
      Specified by:
      getEndpointReference in class jakarta.xml.ws.Endpoint
    • setEndpointContext

      public void setEndpointContext(jakarta.xml.ws.EndpointContext ctxt)
      Overrides:
      setEndpointContext in class jakarta.xml.ws.Endpoint
    • getEndpointContext

      public jakarta.xml.ws.EndpointContext getEndpointContext()
    • publish

      public void publish(jakarta.xml.ws.spi.http.HttpContext context)
      Overrides:
      publish in class jakarta.xml.ws.Endpoint
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception