Package org.apache.cxf.jaxws
Class EndpointImpl
java.lang.Object
jakarta.xml.ws.Endpoint
org.apache.cxf.jaxws.EndpointImpl
- All Implemented Interfaces:
AutoCloseable,Configurable,InterceptorProvider
- Direct Known Subclasses:
EndpointDefinitionParser.SpringEndpointImpl,EndpointImpl
public class EndpointImpl
extends jakarta.xml.ws.Endpoint
implements InterceptorProvider, Configurable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis property controls whether the 'publishEndpoint' permission is checked using only the AccessController (i.e.static final StringFields inherited from class jakarta.xml.ws.Endpoint
WSDL_PORT, WSDL_SERVICE -
Constructor Summary
ConstructorsConstructorDescriptionEndpointImpl(Object implementor) EndpointImpl(Bus bus, Object implementor) EndpointImpl(Bus b, Object i, String bindingUri) EndpointImpl(Bus b, Object i, String bindingUri, jakarta.xml.ws.WebServiceFeature[] features) EndpointImpl(Bus b, Object i, String bindingUri, String wsdl) EndpointImpl(Bus b, Object i, String bindingUri, String wsdl, jakarta.xml.ws.WebServiceFeature[] f) EndpointImpl(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.Get the configurable object's Bean namejakarta.xml.ws.BindinggetBus()jakarta.xml.ws.EndpointContext<T extends jakarta.xml.ws.EndpointReference>
TgetEndpointReference(Class<T> clazz, Element... referenceParameters) jakarta.xml.ws.EndpointReferencegetEndpointReference(Element... referenceParameters) List<jakarta.xml.ws.handler.Handler>Class<?>Gets the class of the implementor.List<Interceptor<? extends Message>>Returns the list of interceptors attached to the incoming fault interceptor chain of the object.List<Interceptor<? extends Message>>Returns the list of interceptors attached to the incoming interceptor chain of the object.List<Interceptor<? extends Message>>Returns the list of interceptors attached to the outgoing fault interceptor chain of the object.List<Interceptor<? extends Message>>Returns the list of interceptors attached to the outgoing interceptor chain of the object.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.booleanvoidpublish()voidpublish(jakarta.xml.ws.spi.http.HttpContext context) voidvoidvoidsetAddress(String address) voidsetBindingConfig(BindingConfiguration config) voidsetBindingUri(String binding) voidvoidsetDataBinding(DataBinding dataBinding) voidsetEndpointContext(jakarta.xml.ws.EndpointContext ctxt) voidsetEndpointName(QName endpointName) voidsetExecutor(Executor executor) voidsetFeatures(List<? extends Feature> features) voidsetHandlers(List<jakarta.xml.ws.handler.Handler> h) voidsetImplementorClass(Class<?> implementorClass) voidsetInFaultInterceptors(List<Interceptor<? extends Message>> interceptors) voidsetInInterceptors(List<Interceptor<? extends Message>> interceptors) voidsetInvoker(Invoker invoker) voidsetMetadata(List<Source> metadata) voidsetOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors) voidsetOutInterceptors(List<Interceptor<? extends 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
-
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
-
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
Description copied from interface:ConfigurableGet the configurable object's Bean name- Specified by:
getBeanNamein interfaceConfigurable- Returns:
- the bean name
-
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
-
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
-
getDataBinding
-
getOutFaultInterceptors
Description copied from interface:InterceptorProviderReturns the list of interceptors attached to the outgoing fault interceptor chain of the object.- Specified by:
getOutFaultInterceptorsin interfaceInterceptorProvider- Returns:
Listoutgoing fault interceptor chain
-
getInFaultInterceptors
Description copied from interface:InterceptorProviderReturns the list of interceptors attached to the incoming fault interceptor chain of the object.- Specified by:
getInFaultInterceptorsin interfaceInterceptorProvider- Returns:
Listincoming fault interceptor chain
-
getInInterceptors
Description copied from interface:InterceptorProviderReturns the list of interceptors attached to the incoming interceptor chain of the object.- Specified by:
getInInterceptorsin interfaceInterceptorProvider- Returns:
Listincoming interceptor chain
-
getOutInterceptors
Description copied from interface:InterceptorProviderReturns the list of interceptors attached to the outgoing interceptor chain of the object.- Specified by:
getOutInterceptorsin interfaceInterceptorProvider- Returns:
Listoutgoing interceptor chain
-
setInInterceptors
-
setInFaultInterceptors
-
setOutInterceptors
-
setOutFaultInterceptors
-
setHandlers
-
getHandlers
-
getFeatures
-
setFeatures
-
getInvoker
-
setInvoker
-
setImplementorClass
-
setTransportId
-
getTransportId
-
setBindingConfig
-
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
-