|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.endpoint.AbstractEndpointFactory
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
public class AbstractJAXRSFactoryBean
Abstract bean holding functionality common for creating JAX-RS Server and Client objects.
| Field Summary | |
|---|---|
protected List<?> |
entityProviders
|
protected List<String> |
schemaLocations
|
protected JAXRSServiceFactoryBean |
serviceFactory
|
| Fields inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory |
|---|
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId |
| Constructor Summary | |
|---|---|
protected |
AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory)
|
| Method Summary | |
|---|---|
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 |
protected void |
setBeanInfo(ProviderFactory 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)
Sets a custom JAX-RS provider. |
void |
setProviders(List<? extends Object> providers)
Sets custom JAX-RS 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 ProviderFactory |
setupFactory(org.apache.cxf.endpoint.Endpoint ep)
|
| Methods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory |
|---|
checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, 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 |
| 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 |
| Field Detail |
|---|
protected List<String> schemaLocations
protected JAXRSServiceFactoryBean serviceFactory
protected List<?> entityProviders
| Constructor Detail |
|---|
protected AbstractJAXRSFactoryBean(JAXRSServiceFactoryBean serviceFactory)
| Method Detail |
|---|
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.AbstractEndpointFactory
protected 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 factory
protected 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.BusException
org.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 ProviderFactory setupFactory(org.apache.cxf.endpoint.Endpoint ep)
protected void setBeanInfo(ProviderFactory factory)
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 descriptions
public 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 classes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||