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
FieldsModifier and TypeFieldDescriptionstatic final StringThis property controls whether the 'publishEndpoint' permission is checked using only the AccessController (i.e. when SecurityManager is not installed).static final StringFields inherited from class jakarta.xml.ws.Endpoint
WSDL_PORT, WSDL_SERVICE -
Constructor Summary
ConstructorsConstructorDescriptionEndpointImpl(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 voidprotected voidprotected voidvoidclose()protected voidPerforms the publication action by setting up aServerinstance based on this endpoint's configuration.jakarta.xml.ws.Bindingorg.apache.cxf.binding.BindingConfigurationorg.apache.cxf.BusgetBus()org.apache.cxf.databinding.DataBindingjakarta.xml.ws.EndpointContext<T extends jakarta.xml.ws.EndpointReference>
TgetEndpointReference(Class<T> clazz, Element... referenceParameters) jakarta.xml.ws.EndpointReferencegetEndpointReference(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.InvokerList<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.ServerImplorg.apache.cxf.endpoint.ServerImplorg.apache.cxf.service.Servicebooleanvoidpublish()voidpublish(jakarta.xml.ws.spi.http.HttpContext context) voidvoidvoidsetAddress(String address) voidsetBindingConfig(org.apache.cxf.binding.BindingConfiguration config) voidsetBindingUri(String binding) voidsetBus(org.apache.cxf.Bus b) voidsetDataBinding(org.apache.cxf.databinding.DataBinding dataBinding) voidsetEndpointContext(jakarta.xml.ws.EndpointContext ctxt) voidsetEndpointName(QName endpointName) voidsetExecutor(Executor executor) voidsetFeatures(List<? extends org.apache.cxf.feature.Feature> features) voidsetHandlers(List<jakarta.xml.ws.handler.Handler> h) voidsetImplementorClass(Class<?> implementorClass) voidsetInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) voidsetInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) voidsetInvoker(org.apache.cxf.service.invoker.Invoker invoker) voidsetMetadata(List<Source> metadata) voidsetOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) voidsetOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors) voidsetProperties(Map<String, Object> properties) voidsetPublishedEndpointUrl(String publishedEndpointUrl) voidsetSchemaLocations(List<String> schemaLocations) protected voidvoidvoidsetServiceName(QName serviceName) voidsetTransportId(String transportId) voidsetWsdlLocation(String wsdlLocation) voidstop()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:
getBindingin classjakarta.xml.ws.Endpoint
-
setExecutor
- Specified by:
setExecutorin classjakarta.xml.ws.Endpoint
-
getExecutor
- Specified by:
getExecutorin classjakarta.xml.ws.Endpoint
-
getService
public org.apache.cxf.service.Service getService() -
getServiceFactory
-
getImplementor
- Specified by:
getImplementorin classjakarta.xml.ws.Endpoint
-
getImplementorClass
Gets the class of the implementor.- Returns:
- the class of the implementor object
-
getMetadata
- Specified by:
getMetadatain classjakarta.xml.ws.Endpoint
-
getProperties
- Specified by:
getPropertiesin classjakarta.xml.ws.Endpoint
-
isPublished
public boolean isPublished()- Specified by:
isPublishedin classjakarta.xml.ws.Endpoint
-
publish
This implementation performs no action except to check the publish permission.- Specified by:
publishin classjakarta.xml.ws.Endpoint
-
publish
- Specified by:
publishin classjakarta.xml.ws.Endpoint
-
setServiceFactory
-
setMetadata
- Specified by:
setMetadatain classjakarta.xml.ws.Endpoint
-
setProperties
- Specified by:
setPropertiesin classjakarta.xml.ws.Endpoint
-
stop
public void stop()- Specified by:
stopin classjakarta.xml.ws.Endpoint
-
getBeanName
- Specified by:
getBeanNamein interfaceorg.apache.cxf.configuration.Configurable
-
getServerFactory
-
setServerFactory
-
checkProperties
protected void checkProperties() -
doPublish
Performs the publication action by setting up aServerinstance 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- ifpublishableis 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:
getOutFaultInterceptorsin interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getInFaultInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()- Specified by:
getInFaultInterceptorsin interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getInInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()- Specified by:
getInInterceptorsin interfaceorg.apache.cxf.interceptor.InterceptorProvider
-
getOutInterceptors
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()- Specified by:
getOutInterceptorsin 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:
getEndpointReferencein classjakarta.xml.ws.Endpoint
-
getEndpointReference
public <T extends jakarta.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) - Specified by:
getEndpointReferencein classjakarta.xml.ws.Endpoint
-
setEndpointContext
public void setEndpointContext(jakarta.xml.ws.EndpointContext ctxt) - Overrides:
setEndpointContextin classjakarta.xml.ws.Endpoint
-
getEndpointContext
public jakarta.xml.ws.EndpointContext getEndpointContext() -
publish
public void publish(jakarta.xml.ws.spi.http.HttpContext context) - Overrides:
publishin classjakarta.xml.ws.Endpoint
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-