Apache CXF API

org.apache.cxf.jaxrs.provider
Class ProviderFactory

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.ProviderFactory

public final class ProviderFactory
extends Object


Method Summary
 void applyDynamicFeatures(List<ClassResourceInfo> list)
           
 void clearExceptionMapperProxies()
           
 void clearProviders()
           
 void clearThreadLocalProxies()
           
<T> ContextProvider<T>
createContextProvider(Type contextType, Message m)
           
<T> javax.ws.rs.ext.ContextResolver<T>
createContextResolver(Type contextType, Message m)
           
<T> javax.ws.rs.ext.ContextResolver<T>
createContextResolver(Type contextType, Message m, javax.ws.rs.core.MediaType type)
           
<T extends Throwable>
javax.ws.rs.ext.ExceptionMapper<T>
createExceptionMapper(Class<?> exceptionType, Message m)
           
<T extends Throwable>
javax.ws.rs.ext.ExceptionMapper<T>
createExceptionMapper(T ex, Message m)
           
<T> javax.ws.rs.ext.MessageBodyReader<T>
createMessageBodyReader(Class<T> bodyType, Type parameterType, Annotation[] parameterAnnotations, javax.ws.rs.core.MediaType mediaType, Message m)
           
<T> List<javax.ws.rs.ext.ReaderInterceptor>
createMessageBodyReaderInterceptor(Class<T> bodyType, Type parameterType, Annotation[] parameterAnnotations, javax.ws.rs.core.MediaType mediaType, Message m)
           
<T> javax.ws.rs.ext.MessageBodyWriter<T>
createMessageBodyWriter(Class<T> bodyType, Type parameterType, Annotation[] parameterAnnotations, javax.ws.rs.core.MediaType mediaType, Message m)
           
<T> List<javax.ws.rs.ext.WriterInterceptor>
createMessageBodyWriterInterceptor(Class<T> bodyType, Type parameterType, Annotation[] parameterAnnotations, javax.ws.rs.core.MediaType mediaType, Message m)
           
<T> javax.ws.rs.ext.ParamConverter<T>
createParameterHandler(Class<T> paramType)
           
<T extends Throwable>
ResponseExceptionMapper<T>
createResponseExceptionMapper(Class<?> paramType)
           
 List<ProviderInfo<javax.ws.rs.client.ClientRequestFilter>> getClientRequestFilters()
           
 List<ProviderInfo<javax.ws.rs.client.ClientResponseFilter>> getClientResponseFilters()
           
 List<ProviderInfo<javax.ws.rs.container.ContainerResponseFilter>> getContainerResponseFilters(List<String> names)
           
static ProviderFactory getInstance()
           
static ProviderFactory getInstance(Bus bus)
           
static ProviderFactory getInstance(Message m)
           
 List<ProviderInfo<javax.ws.rs.container.ContainerRequestFilter>> getPostMatchContainerRequestFilters(List<String> names)
           
 List<ProviderInfo<javax.ws.rs.container.ContainerRequestFilter>> getPreMatchContainerRequestFilters()
           
 List<ProviderInfo<RequestHandler>> getRequestHandlers()
           
 RequestPreprocessor getRequestPreprocessor()
           
 List<ProviderInfo<ResponseHandler>> getResponseHandlers()
           
static ProviderFactory getSharedInstance()
           
 void initProviders(List<ClassResourceInfo> cris)
           
 void registerUserProvider(Object provider)
           
 void setApplicationProvider(ProviderInfo<javax.ws.rs.core.Application> app)
           
 void setBus(Bus bus)
           
 void setRequestPreprocessor(RequestPreprocessor rp)
           
 void setSchemaLocations(List<String> schemas)
           
 void setUserProviders(List<?> userProviders)
          Use for injection of entityProviders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProviderFactory getInstance()

getInstance

public static ProviderFactory getInstance(Bus bus)

getInstance

public static ProviderFactory getInstance(Message m)

getSharedInstance

public static ProviderFactory getSharedInstance()

createContextResolver

public <T> javax.ws.rs.ext.ContextResolver<T> createContextResolver(Type contextType,
                                                                    Message m)

createContextResolver

public <T> javax.ws.rs.ext.ContextResolver<T> createContextResolver(Type contextType,
                                                                    Message m,
                                                                    javax.ws.rs.core.MediaType type)

createContextProvider

public <T> ContextProvider<T> createContextProvider(Type contextType,
                                                    Message m)

createExceptionMapper

public <T extends Throwable> javax.ws.rs.ext.ExceptionMapper<T> createExceptionMapper(Class<?> exceptionType,
                                                                                      Message m)

createExceptionMapper

public <T extends Throwable> javax.ws.rs.ext.ExceptionMapper<T> createExceptionMapper(T ex,
                                                                                      Message m)

createParameterHandler

public <T> javax.ws.rs.ext.ParamConverter<T> createParameterHandler(Class<T> paramType)

createResponseExceptionMapper

public <T extends Throwable> ResponseExceptionMapper<T> createResponseExceptionMapper(Class<?> paramType)

createMessageBodyReaderInterceptor

public <T> List<javax.ws.rs.ext.ReaderInterceptor> createMessageBodyReaderInterceptor(Class<T> bodyType,
                                                                                      Type parameterType,
                                                                                      Annotation[] parameterAnnotations,
                                                                                      javax.ws.rs.core.MediaType mediaType,
                                                                                      Message m)

createMessageBodyWriterInterceptor

public <T> List<javax.ws.rs.ext.WriterInterceptor> createMessageBodyWriterInterceptor(Class<T> bodyType,
                                                                                      Type parameterType,
                                                                                      Annotation[] parameterAnnotations,
                                                                                      javax.ws.rs.core.MediaType mediaType,
                                                                                      Message m)

createMessageBodyReader

public <T> javax.ws.rs.ext.MessageBodyReader<T> createMessageBodyReader(Class<T> bodyType,
                                                                        Type parameterType,
                                                                        Annotation[] parameterAnnotations,
                                                                        javax.ws.rs.core.MediaType mediaType,
                                                                        Message m)

getPreMatchContainerRequestFilters

public List<ProviderInfo<javax.ws.rs.container.ContainerRequestFilter>> getPreMatchContainerRequestFilters()

getPostMatchContainerRequestFilters

public List<ProviderInfo<javax.ws.rs.container.ContainerRequestFilter>> getPostMatchContainerRequestFilters(List<String> names)

getContainerResponseFilters

public List<ProviderInfo<javax.ws.rs.container.ContainerResponseFilter>> getContainerResponseFilters(List<String> names)

getClientRequestFilters

public List<ProviderInfo<javax.ws.rs.client.ClientRequestFilter>> getClientRequestFilters()

getClientResponseFilters

public List<ProviderInfo<javax.ws.rs.client.ClientResponseFilter>> getClientResponseFilters()

getRequestHandlers

public List<ProviderInfo<RequestHandler>> getRequestHandlers()

getResponseHandlers

public List<ProviderInfo<ResponseHandler>> getResponseHandlers()

createMessageBodyWriter

public <T> javax.ws.rs.ext.MessageBodyWriter<T> createMessageBodyWriter(Class<T> bodyType,
                                                                        Type parameterType,
                                                                        Annotation[] parameterAnnotations,
                                                                        javax.ws.rs.core.MediaType mediaType,
                                                                        Message m)

registerUserProvider

public void registerUserProvider(Object provider)

setUserProviders

public void setUserProviders(List<?> userProviders)
Use for injection of entityProviders

Parameters:
entityProviders - the entityProviders to set

setApplicationProvider

public void setApplicationProvider(ProviderInfo<javax.ws.rs.core.Application> app)

setRequestPreprocessor

public void setRequestPreprocessor(RequestPreprocessor rp)

getRequestPreprocessor

public RequestPreprocessor getRequestPreprocessor()

clearExceptionMapperProxies

public void clearExceptionMapperProxies()

clearThreadLocalProxies

public void clearThreadLocalProxies()

clearProviders

public void clearProviders()

setBus

public void setBus(Bus bus)

applyDynamicFeatures

public void applyDynamicFeatures(List<ClassResourceInfo> list)

setSchemaLocations

public void setSchemaLocations(List<String> schemas)

initProviders

public void initProviders(List<ClassResourceInfo> cris)

Apache CXF API

Apache CXF