Package org.apache.cxf.jaxws
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 Summary
Modifier and TypeFieldDescriptionstatic final String
This property controls whether the 'publishEndpoint' permission is checked using only the AccessController (i.e.static final String
Fields inherited from class jakarta.xml.ws.Endpoint
WSDL_PORT, WSDL_SERVICE
-
Constructor Summary
ConstructorDescriptionEndpointImpl
(Object implementor) EndpointImpl
(org.apache.cxf.Bus bus, Object implementor) EndpointImpl
(org.apache.cxf.Bus b, Object i, String bindingUri) EndpointImpl
(org.apache.cxf.Bus b, Object i, String bindingUri, jakarta.xml.ws.WebServiceFeature[] features) EndpointImpl
(org.apache.cxf.Bus b, Object i, String bindingUri, String wsdl) EndpointImpl
(org.apache.cxf.Bus b, Object i, String bindingUri, String wsdl, jakarta.xml.ws.WebServiceFeature[] f) EndpointImpl
(org.apache.cxf.Bus b, Object implementor, JaxWsServerFactoryBean sf) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
void
close()
protected void
Performs the publication action by setting up aServer
instance based on this endpoint's configuration.jakarta.xml.ws.Binding
org.apache.cxf.binding.BindingConfiguration
org.apache.cxf.Bus
getBus()
org.apache.cxf.databinding.DataBinding
jakarta.xml.ws.EndpointContext
<T extends jakarta.xml.ws.EndpointReference>
TgetEndpointReference
(Class<T> clazz, Element... referenceParameters) jakarta.xml.ws.EndpointReference
getEndpointReference
(Element... referenceParameters) List<org.apache.cxf.feature.Feature>
List<jakarta.xml.ws.handler.Handler>
Class<?>
Gets the class of the implementor.List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
org.apache.cxf.service.invoker.Invoker
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
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.org.apache.cxf.endpoint.ServerImpl
org.apache.cxf.endpoint.ServerImpl
org.apache.cxf.service.Service
boolean
void
publish()
void
publish
(jakarta.xml.ws.spi.http.HttpContext context) void
void
void
setAddress
(String address) void
setBindingConfig
(org.apache.cxf.binding.BindingConfiguration config) void
setBindingUri
(String binding) void
setBus
(org.apache.cxf.Bus b) void
setDataBinding
(org.apache.cxf.databinding.DataBinding dataBinding) void
setEndpointContext
(jakarta.xml.ws.EndpointContext ctxt) void
setEndpointName
(QName endpointName) void
setExecutor
(Executor executor) void
setFeatures
(List<? extends org.apache.cxf.feature.Feature> features) void
setHandlers
(List<jakarta.xml.ws.handler.Handler> h) void
setImplementorClass
(Class<?> implementorClass) void
setInFaultInterceptors
(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) void
setInInterceptors
(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) void
setInvoker
(org.apache.cxf.service.invoker.Invoker invoker) void
setMetadata
(List<Source> metadata) void
setOutFaultInterceptors
(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) void
setOutInterceptors
(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) void
setProperties
(Map<String, Object> properties) void
setPublishedEndpointUrl
(String publishedEndpointUrl) void
setSchemaLocations
(List<String> schemaLocations) protected void
void
void
setServiceName
(QName serviceName) void
setTransportId
(String transportId) void
setWsdlLocation
(String wsdlLocation) void
stop()
Methods inherited from class jakarta.xml.ws.Endpoint
create, create, create, create, publish, publish
-
Field Details
-
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
- See Also:
-
-
Constructor Details
-
EndpointImpl
-
EndpointImpl
-
EndpointImpl
- 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
-
EndpointImpl
-
EndpointImpl
-
EndpointImpl
-
-
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 classjakarta.xml.ws.Endpoint
-
setExecutor
- Specified by:
setExecutor
in classjakarta.xml.ws.Endpoint
-
getExecutor
- Specified by:
getExecutor
in classjakarta.xml.ws.Endpoint
-
getService
public org.apache.cxf.service.Service getService() -
getServiceFactory
-
getImplementor
- Specified by:
getImplementor
in classjakarta.xml.ws.Endpoint
-
getImplementorClass
Gets the class of the implementor.- Returns:
- the class of the implementor object
-
getMetadata
- Specified by:
getMetadata
in classjakarta.xml.ws.Endpoint
-
getProperties
- Specified by:
getProperties
in classjakarta.xml.ws.Endpoint
-
isPublished
public boolean isPublished()- Specified by:
isPublished
in classjakarta.xml.ws.Endpoint
-
publish
This implementation performs no action except to check the publish permission.- Specified by:
publish
in classjakarta.xml.ws.Endpoint
-
publish
- Specified by:
publish
in classjakarta.xml.ws.Endpoint
-
setServiceFactory
-
setMetadata
- Specified by:
setMetadata
in classjakarta.xml.ws.Endpoint
-
setProperties
- Specified by:
setProperties
in classjakarta.xml.ws.Endpoint
-
stop
public void stop()- Specified by:
stop
in classjakarta.xml.ws.Endpoint
-
getBeanName
- Specified by:
getBeanName
in interfaceorg.apache.cxf.configuration.Configurable
-
getServerFactory
-
setServerFactory
-
checkProperties
protected void checkProperties() -
doPublish
Performs the publication action by setting up aServer
instance based on this endpoint's configuration.- Parameters:
addr
- the optional endpoint address.- Throws:
IllegalStateException
- if the endpoint cannot be published/republishedSecurityException
- if permission checking is enabled and policy forbids publishingjakarta.xml.ws.WebServiceException
- if there is an error publishing the endpoint- See Also:
-
getServer
public org.apache.cxf.endpoint.ServerImpl getServer() -
getServer
-
checkPublishPermission
protected void checkPublishPermission() -
checkPublishable
protected void checkPublishable()- Throws:
IllegalStateException
- ifpublishable
is false
-
publish
public void publish() -
getAddress
-
setAddress
-
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
-
getEndpointName
-
setEndpointName
-
getServiceName
-
setServiceName
-
getWsdlLocation
-
setWsdlLocation
-
setBindingUri
-
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 interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getInFaultInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()- Specified by:
getInFaultInterceptors
in interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getInInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()- Specified by:
getInInterceptors
in interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getOutInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()- Specified by:
getOutInterceptors
in interfaceorg.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
-
getHandlers
-
getFeatures
-
setFeatures
-
getInvoker
public org.apache.cxf.service.invoker.Invoker getInvoker() -
setInvoker
public void setInvoker(org.apache.cxf.service.invoker.Invoker invoker) -
setImplementorClass
-
setTransportId
-
getTransportId
-
setBindingConfig
public void setBindingConfig(org.apache.cxf.binding.BindingConfiguration config) -
getBindingConfig
public org.apache.cxf.binding.BindingConfiguration getBindingConfig() -
getSchemaLocations
-
setSchemaLocations
-
getEndpointReference
- Specified by:
getEndpointReference
in classjakarta.xml.ws.Endpoint
-
getEndpointReference
public <T extends jakarta.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) - Specified by:
getEndpointReference
in classjakarta.xml.ws.Endpoint
-
setEndpointContext
public void setEndpointContext(jakarta.xml.ws.EndpointContext ctxt) - Overrides:
setEndpointContext
in classjakarta.xml.ws.Endpoint
-
getEndpointContext
public jakarta.xml.ws.EndpointContext getEndpointContext() -
publish
public void publish(jakarta.xml.ws.spi.http.HttpContext context) - Overrides:
publish
in classjakarta.xml.ws.Endpoint
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-