Package org.apache.cxf.jaxws
Class EndpointImpl
- java.lang.Object
-
- javax.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 javax.xml.ws.Endpoint implements org.apache.cxf.interceptor.InterceptorProvider, org.apache.cxf.configuration.Configurable, AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY
This property controls whether the 'publishEndpoint' permission is checked using only the AccessController (i.e.static String
CHECK_PUBLISH_ENDPOINT_PERMISSON_PROPERTY_WITH_SECURITY_MANAGER
-
Constructor Summary
Constructors Constructor Description EndpointImpl(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, String wsdl)
EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri, String wsdl, javax.xml.ws.WebServiceFeature[] f)
EndpointImpl(org.apache.cxf.Bus b, Object i, String bindingUri, javax.xml.ws.WebServiceFeature[] features)
EndpointImpl(org.apache.cxf.Bus b, Object implementor, JaxWsServerFactoryBean sf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkProperties()
protected void
checkPublishable()
protected void
checkPublishPermission()
void
close()
protected void
doPublish(String addr)
Performs the publication action by setting up aServer
instance based on this endpoint's configuration.String
getAddress()
String
getBeanName()
javax.xml.ws.Binding
getBinding()
org.apache.cxf.binding.BindingConfiguration
getBindingConfig()
String
getBindingUri()
org.apache.cxf.Bus
getBus()
org.apache.cxf.databinding.DataBinding
getDataBinding()
javax.xml.ws.EndpointContext
getEndpointContext()
QName
getEndpointName()
<T extends javax.xml.ws.EndpointReference>
TgetEndpointReference(Class<T> clazz, Element... referenceParameters)
javax.xml.ws.EndpointReference
getEndpointReference(Element... referenceParameters)
Executor
getExecutor()
List<org.apache.cxf.feature.Feature>
getFeatures()
List<javax.xml.ws.handler.Handler>
getHandlers()
Object
getImplementor()
Class<?>
getImplementorClass()
Gets the class of the implementor.List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
getInFaultInterceptors()
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
getInInterceptors()
org.apache.cxf.service.invoker.Invoker
getInvoker()
List<Source>
getMetadata()
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
getOutFaultInterceptors()
List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>>
getOutInterceptors()
Map<String,Object>
getProperties()
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.List<String>
getSchemaLocations()
org.apache.cxf.endpoint.ServerImpl
getServer()
org.apache.cxf.endpoint.ServerImpl
getServer(String addr)
JaxWsServerFactoryBean
getServerFactory()
org.apache.cxf.service.Service
getService()
JaxWsServiceFactoryBean
getServiceFactory()
QName
getServiceName()
String
getTransportId()
String
getWsdlLocation()
boolean
isPublished()
void
publish()
void
publish(Object arg0)
void
publish(String addr)
void
publish(javax.xml.ws.spi.http.HttpContext context)
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(javax.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<javax.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
setServerFactory(JaxWsServerFactoryBean bean)
void
setServiceFactory(JaxWsServiceFactoryBean sf)
void
setServiceName(QName serviceName)
void
setTransportId(String transportId)
void
setWsdlLocation(String wsdlLocation)
void
stop()
-
-
-
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 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, javax.xml.ws.WebServiceFeature[] f)
-
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 classjavax.xml.ws.Endpoint
-
setExecutor
public void setExecutor(Executor executor)
- Specified by:
setExecutor
in classjavax.xml.ws.Endpoint
-
getExecutor
public Executor getExecutor()
- Specified by:
getExecutor
in classjavax.xml.ws.Endpoint
-
getService
public org.apache.cxf.service.Service getService()
-
getServiceFactory
public JaxWsServiceFactoryBean getServiceFactory()
-
getImplementor
public Object getImplementor()
- Specified by:
getImplementor
in classjavax.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 classjavax.xml.ws.Endpoint
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getProperties
in classjavax.xml.ws.Endpoint
-
isPublished
public boolean isPublished()
- Specified by:
isPublished
in classjavax.xml.ws.Endpoint
-
publish
public void publish(Object arg0)
This implementation performs no action except to check the publish permission.- Specified by:
publish
in classjavax.xml.ws.Endpoint
-
publish
public void publish(String addr)
- Specified by:
publish
in classjavax.xml.ws.Endpoint
-
setServiceFactory
public void setServiceFactory(JaxWsServiceFactoryBean sf)
-
setMetadata
public void setMetadata(List<Source> metadata)
- Specified by:
setMetadata
in classjavax.xml.ws.Endpoint
-
setProperties
public void setProperties(Map<String,Object> properties)
- Specified by:
setProperties
in classjavax.xml.ws.Endpoint
-
stop
public void stop()
- Specified by:
stop
in classjavax.xml.ws.Endpoint
-
getBeanName
public String getBeanName()
- Specified by:
getBeanName
in interfaceorg.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 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 publishingjavax.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()
-
checkPublishable
protected void checkPublishable()
- Throws:
IllegalStateException
- ifpublishable
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 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
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()
-
getEndpointReference
public javax.xml.ws.EndpointReference getEndpointReference(Element... referenceParameters)
- Specified by:
getEndpointReference
in classjavax.xml.ws.Endpoint
-
getEndpointReference
public <T extends javax.xml.ws.EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters)
- Specified by:
getEndpointReference
in classjavax.xml.ws.Endpoint
-
setEndpointContext
public void setEndpointContext(javax.xml.ws.EndpointContext ctxt)
- Overrides:
setEndpointContext
in classjavax.xml.ws.Endpoint
-
getEndpointContext
public javax.xml.ws.EndpointContext getEndpointContext()
-
publish
public void publish(javax.xml.ws.spi.http.HttpContext context)
- Overrides:
publish
in classjavax.xml.ws.Endpoint
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-