Class EndpointImpl

    • Field Detail

      • 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:
        Constant Field Values
      • CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER

        public static final String CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER
        See Also:
        Constant Field Values
    • Constructor Detail

      • EndpointImpl

        public EndpointImpl​(Object implementor)
      • 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,
                            javax.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,
                            javax.xml.ws.WebServiceFeature[] features)
      • EndpointImpl

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

      • setBus

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

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

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

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

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

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

        public Object getImplementor()
        Specified by:
        getImplementor in class javax.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 javax.xml.ws.Endpoint
      • getProperties

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

        public boolean isPublished()
        Specified by:
        isPublished in class javax.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 javax.xml.ws.Endpoint
      • publish

        public void publish​(String addr)
        Specified by:
        publish in class javax.xml.ws.Endpoint
      • setMetadata

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

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

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

        public String getBeanName()
        Specified by:
        getBeanName in interface org.apache.cxf.configuration.Configurable
      • 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
        javax.xml.ws.WebServiceException - if there is an error publishing the endpoint
        See Also:
        checkPublishPermission(), checkPublishable(), getServer(String)
      • getServer

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

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

        protected void checkPublishPermission()
      • 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<javax.xml.ws.handler.Handler> h)
      • getHandlers

        public List<javax.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 javax.xml.ws.EndpointReference getEndpointReference​(Element... referenceParameters)
        Specified by:
        getEndpointReference in class javax.xml.ws.Endpoint
      • getEndpointReference

        public <T extends javax.xml.ws.EndpointReference> T getEndpointReference​(Class<T> clazz,
                                                                                 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
      • getEndpointContext

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

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