public class AbstractJAXRSFactoryBean
extends org.apache.cxf.endpoint.AbstractEndpointFactory
| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
entityProviders |
protected List<String> |
schemaLocations |
protected JAXRSServiceFactoryBean |
serviceFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkResources(boolean server) |
protected org.apache.cxf.service.model.BindingInfo |
createBindingInfo() |
protected org.apache.cxf.endpoint.Endpoint |
createEndpoint() |
protected org.apache.cxf.service.model.EndpointInfo |
createEndpointInfo(org.apache.cxf.service.Service service) |
org.apache.cxf.Bus |
getBus() |
List<?> |
getProviders() |
JAXRSServiceFactoryBean |
getServiceFactory()
Returns the service factory
|
void |
setBus(org.apache.cxf.Bus bus) |
protected void |
setDataBindingProvider(ProviderFactory factory,
org.apache.cxf.service.Service s) |
void |
setModelBeans(List<UserResource> resources)
Sets the description of root resources.
|
void |
setModelBeans(UserResource... resources)
Sets the description of root resources.
|
void |
setModelBeansWithServiceClass(List<UserResource> resources,
Class<?>... sClasses)
Sets the description of root resources with the list of concrete classes.
|
void |
setModelRef(String modelRef)
Sets a reference to the external user model,
Example: "classpath:/model/resources.xml"
|
void |
setModelRefWithServiceClass(String modelRef,
Class<?>... sClasses)
Sets a reference to the external user model,
Example: "classpath:/model/resources.xml".
|
void |
setProvider(Object provider)
Add custom JAX-RS provider to the list of providers
|
void |
setProviderComparator(Comparator<?> providerComparator) |
void |
setProviders(List<? extends Object> providers)
Add custom JAX-RS providers to the list of providers
|
void |
setSchemaLocation(String schema)
Sets the location of the schema which can be used to validate
the incoming XML or JAXB-driven JSON.
|
void |
setSchemaLocations(List<String> schemas)
Sets the locations of the schemas which can be used to validate
the incoming XML or JAXB-driven JSON.
|
void |
setServiceFactory(JAXRSServiceFactoryBean serviceFactory)
Sets the custom service factory which processes
the registered classes and providers
|
void |
setServiceName(QName name) |
protected void |
setupFactory(ProviderFactory factory,
org.apache.cxf.endpoint.Endpoint ep) |
addToBeans, checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, initializeAnnotationInterceptors, initializeAnnotationInterceptors, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingFactory, setBindingId, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setTransportIdprotected JAXRSServiceFactoryBean serviceFactory
protected AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory)
public org.apache.cxf.Bus getBus()
getBus in class org.apache.cxf.endpoint.AbstractEndpointFactorypublic void setServiceName(QName name)
setServiceName in class org.apache.cxf.endpoint.AbstractEndpointFactorypublic void setBus(org.apache.cxf.Bus bus)
setBus in class org.apache.cxf.endpoint.AbstractEndpointFactoryprotected org.apache.cxf.service.model.EndpointInfo createEndpointInfo(org.apache.cxf.service.Service service)
throws org.apache.cxf.BusException
org.apache.cxf.BusExceptionprotected org.apache.cxf.service.model.BindingInfo createBindingInfo()
createBindingInfo in class org.apache.cxf.endpoint.AbstractEndpointFactorypublic JAXRSServiceFactoryBean getServiceFactory()
public void setServiceFactory(JAXRSServiceFactoryBean serviceFactory)
serviceFactory - the factoryprotected org.apache.cxf.endpoint.Endpoint createEndpoint()
throws org.apache.cxf.BusException,
org.apache.cxf.endpoint.EndpointException
createEndpoint in class org.apache.cxf.endpoint.AbstractEndpointFactoryorg.apache.cxf.BusExceptionorg.apache.cxf.endpoint.EndpointExceptionpublic void setSchemaLocation(String schema)
schema - the schema locationpublic void setSchemaLocations(List<String> schemas)
schema - the schema locationspublic List<?> getProviders()
public void setProviders(List<? extends Object> providers)
entityProviders - the entityProviderspublic void setProvider(Object provider)
provider - the custom provider.protected void checkResources(boolean server)
protected void setupFactory(ProviderFactory factory, org.apache.cxf.endpoint.Endpoint ep)
protected void setDataBindingProvider(ProviderFactory factory, org.apache.cxf.service.Service s)
public void setModelBeans(UserResource... resources)
resources - root resource descriptionspublic void setModelBeans(List<UserResource> resources)
resources - root resource descriptionspublic void setModelBeansWithServiceClass(List<UserResource> resources, Class<?>... sClasses)
resources - root resource descriptions.sClasses - concrete root resource classespublic void setModelRef(String modelRef)
modelRef - the reference to the external model resource.public void setModelRefWithServiceClass(String modelRef, Class<?>... sClasses)
modelRef - the reference to the external model resource.sClasses - concrete root resource classespublic void setProviderComparator(Comparator<?> providerComparator)
Apache CXF