org.apache.cxf.jaxws
Class JaxWsServerFactoryBean
java.lang.Object
org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.endpoint.AbstractEndpointFactory
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
org.apache.cxf.frontend.ServerFactoryBean
org.apache.cxf.jaxws.JaxWsServerFactoryBean
- All Implemented Interfaces:
- org.apache.cxf.interceptor.InterceptorProvider
- Direct Known Subclasses:
- NamespaceHandler.SpringServerFactoryBean
public class JaxWsServerFactoryBean
- extends org.apache.cxf.frontend.ServerFactoryBean
Bean to help easily create Server endpoints for JAX-WS. Example:
JaxWsServerFactoryBean sf = JaxWsServerFactoryBean();
sf.setServiceClass(MyService.class);
sf.setAddress("http://acme.com/myService");
sf.create();
This will start a server for you and register it with the ServerManager.
|
Field Summary |
protected boolean |
doInit
|
protected java.util.List<javax.xml.ws.handler.Handler> |
handlers
|
| Fields inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory |
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId |
|
Method Summary |
void |
addHandlers(java.util.List<javax.xml.ws.handler.Handler> h)
|
org.apache.cxf.endpoint.Server |
create()
|
protected org.apache.cxf.service.model.BindingInfo |
createBindingInfo()
|
protected org.apache.cxf.service.invoker.Invoker |
createInvoker()
|
java.util.List<javax.xml.ws.handler.Handler> |
getHandlers()
|
protected void |
initializeAnnotationInterceptors(org.apache.cxf.endpoint.Endpoint ep,
java.lang.Class<?> cls)
Add annotated Interceptors and Features to the Endpoint |
protected void |
injectResources(java.lang.Object instance)
|
void |
setHandlers(java.util.List<javax.xml.ws.handler.Handler> h)
|
| Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean |
applyExtraClass, applyFeatures, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWsdlLocation, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServer, setServiceBean, setStart, setWsdlLocation |
| Methods inherited from class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory |
createEndpoint, createEndpointInfo, getServiceClass, getServiceFactory, getWsdlURL, initializeAnnotationInterceptors, setServiceClass, setServiceFactory, setWsdlURL |
| Methods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory |
getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, setAddress, setBindingConfig, setBindingFactory, setBindingId, setBus, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setServiceName, setTransportId |
| Methods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider |
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doInit
protected boolean doInit
handlers
protected java.util.List<javax.xml.ws.handler.Handler> handlers
JaxWsServerFactoryBean
public JaxWsServerFactoryBean()
JaxWsServerFactoryBean
public JaxWsServerFactoryBean(JaxWsServiceFactoryBean serviceFactory)
setHandlers
public void setHandlers(java.util.List<javax.xml.ws.handler.Handler> h)
addHandlers
public void addHandlers(java.util.List<javax.xml.ws.handler.Handler> h)
getHandlers
public java.util.List<javax.xml.ws.handler.Handler> getHandlers()
initializeAnnotationInterceptors
protected void initializeAnnotationInterceptors(org.apache.cxf.endpoint.Endpoint ep,
java.lang.Class<?> cls)
- Add annotated Interceptors and Features to the Endpoint
- Overrides:
initializeAnnotationInterceptors in class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
- Parameters:
ep -
createInvoker
protected org.apache.cxf.service.invoker.Invoker createInvoker()
- Overrides:
createInvoker in class org.apache.cxf.frontend.ServerFactoryBean
createBindingInfo
protected org.apache.cxf.service.model.BindingInfo createBindingInfo()
- Overrides:
createBindingInfo in class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
create
public org.apache.cxf.endpoint.Server create()
- Overrides:
create in class org.apache.cxf.frontend.ServerFactoryBean
injectResources
protected void injectResources(java.lang.Object instance)
- Parameters:
instance -
Apache CXF