public class AbstractJAXRSFactoryBean extends AbstractEndpointFactory
Modifier and Type | Field and Description |
---|---|
protected List<Object> |
entityProviders |
protected List<String> |
schemaLocations |
protected JAXRSServiceFactoryBean |
serviceFactory |
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId
Modifier | Constructor and Description |
---|---|
protected |
AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkResources(boolean server) |
protected BindingInfo |
createBindingInfo() |
protected Endpoint |
createEndpoint() |
protected EndpointInfo |
createEndpointInfo(Service service) |
Bus |
getBus() |
List<?> |
getProviders() |
JAXRSServiceFactoryBean |
getServiceFactory()
Returns the service factory
|
protected boolean |
isValidClassResourceInfo(ClassResourceInfo cri) |
void |
setBus(Bus bus) |
protected void |
setDataBindingProvider(ProviderFactory factory,
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,
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, setTransportId
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
protected JAXRSServiceFactoryBean serviceFactory
protected AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory)
public Bus getBus()
getBus
in class AbstractEndpointFactory
public void setServiceName(QName name)
setServiceName
in class AbstractEndpointFactory
public void setBus(Bus bus)
setBus
in class AbstractEndpointFactory
protected EndpointInfo createEndpointInfo(Service service) throws BusException
BusException
protected BindingInfo createBindingInfo()
createBindingInfo
in class AbstractEndpointFactory
public JAXRSServiceFactoryBean getServiceFactory()
public void setServiceFactory(JAXRSServiceFactoryBean serviceFactory)
serviceFactory
- the factoryprotected Endpoint createEndpoint() throws BusException, EndpointException
createEndpoint
in class AbstractEndpointFactory
BusException
EndpointException
public 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 boolean isValidClassResourceInfo(ClassResourceInfo cri)
protected void setupFactory(ProviderFactory factory, Endpoint ep)
protected void setDataBindingProvider(ProviderFactory factory, 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