Package org.jboss.resteasy.core
Class ResteasyDeploymentImpl
- java.lang.Object
-
- org.jboss.resteasy.core.ResteasyDeploymentImpl
-
- All Implemented Interfaces:
ResteasyDeployment
- Direct Known Subclasses:
VertxResteasyDeployment
public class ResteasyDeploymentImpl extends Object implements ResteasyDeployment
This class is used to configure and initialize the core components of RESTEasy.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ResteasyDeploymentImpl()
ResteasyDeploymentImpl(boolean quarkus)
-
Method Summary
-
-
-
Field Detail
-
widerRequestMatching
protected boolean widerRequestMatching
-
useContainerFormParams
protected boolean useContainerFormParams
-
deploymentSensitiveFactoryEnabled
protected boolean deploymentSensitiveFactoryEnabled
-
asyncJobServiceEnabled
protected boolean asyncJobServiceEnabled
-
addCharset
protected boolean addCharset
-
asyncJobServiceMaxJobResults
protected int asyncJobServiceMaxJobResults
-
asyncJobServiceMaxWait
protected long asyncJobServiceMaxWait
-
asyncJobServiceThreadPoolSize
protected int asyncJobServiceThreadPoolSize
-
asyncJobServiceBasePath
protected String asyncJobServiceBasePath
-
applicationClass
protected String applicationClass
-
injectorFactoryClass
protected String injectorFactoryClass
-
injectorFactory
protected InjectorFactory injectorFactory
-
application
protected javax.ws.rs.core.Application application
-
registerBuiltin
protected boolean registerBuiltin
-
scannedResourceClassesWithBuilder
protected Map<String,List<String>> scannedResourceClassesWithBuilder
-
securityEnabled
protected boolean securityEnabled
-
resourceFactories
protected List<ResourceFactory> resourceFactories
-
registry
protected Registry registry
-
dispatcher
protected Dispatcher dispatcher
-
providerFactory
protected ResteasyProviderFactory providerFactory
-
threadLocalProviderFactory
protected ThreadLocalResteasyProviderFactory threadLocalProviderFactory
-
paramMapping
protected String paramMapping
-
statisticsEnabled
protected boolean statisticsEnabled
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceResteasyDeployment
-
registerMappers
protected void registerMappers()
-
pushContext
protected void pushContext()
-
initializeObjects
protected void initializeObjects()
-
initializeDispatcher
protected void initializeDispatcher()
-
initializeFactory
protected void initializeFactory()
-
merge
public void merge(ResteasyDeployment other)
- Specified by:
merge
in interfaceResteasyDeployment
-
createApplication
public static javax.ws.rs.core.Application createApplication(String applicationClass, Dispatcher dispatcher, ResteasyProviderFactory providerFactory)
-
registration
public void registration()
- Specified by:
registration
in interfaceResteasyDeployment
-
registerResources
protected void registerResources(boolean useScanning)
-
registerApplication
protected boolean registerApplication()
-
stop
public void stop()
- Specified by:
stop
in interfaceResteasyDeployment
-
isUseContainerFormParams
public boolean isUseContainerFormParams()
- Specified by:
isUseContainerFormParams
in interfaceResteasyDeployment
-
setUseContainerFormParams
public void setUseContainerFormParams(boolean useContainerFormParams)
- Specified by:
setUseContainerFormParams
in interfaceResteasyDeployment
-
getJndiComponentResources
public List<String> getJndiComponentResources()
- Specified by:
getJndiComponentResources
in interfaceResteasyDeployment
-
setJndiComponentResources
public void setJndiComponentResources(List<String> jndiComponentResources)
- Specified by:
setJndiComponentResources
in interfaceResteasyDeployment
-
getApplicationClass
public String getApplicationClass()
- Specified by:
getApplicationClass
in interfaceResteasyDeployment
-
setApplicationClass
public void setApplicationClass(String applicationClass)
- Specified by:
setApplicationClass
in interfaceResteasyDeployment
-
getInjectorFactoryClass
public String getInjectorFactoryClass()
- Specified by:
getInjectorFactoryClass
in interfaceResteasyDeployment
-
setInjectorFactoryClass
public void setInjectorFactoryClass(String injectorFactoryClass)
- Specified by:
setInjectorFactoryClass
in interfaceResteasyDeployment
-
isDeploymentSensitiveFactoryEnabled
public boolean isDeploymentSensitiveFactoryEnabled()
- Specified by:
isDeploymentSensitiveFactoryEnabled
in interfaceResteasyDeployment
-
setDeploymentSensitiveFactoryEnabled
public void setDeploymentSensitiveFactoryEnabled(boolean deploymentSensitiveFactoryEnabled)
- Specified by:
setDeploymentSensitiveFactoryEnabled
in interfaceResteasyDeployment
-
isAsyncJobServiceEnabled
public boolean isAsyncJobServiceEnabled()
- Specified by:
isAsyncJobServiceEnabled
in interfaceResteasyDeployment
-
setAsyncJobServiceEnabled
public void setAsyncJobServiceEnabled(boolean asyncJobServiceEnabled)
- Specified by:
setAsyncJobServiceEnabled
in interfaceResteasyDeployment
-
getAsyncJobServiceMaxJobResults
public int getAsyncJobServiceMaxJobResults()
- Specified by:
getAsyncJobServiceMaxJobResults
in interfaceResteasyDeployment
-
setAsyncJobServiceMaxJobResults
public void setAsyncJobServiceMaxJobResults(int asyncJobServiceMaxJobResults)
- Specified by:
setAsyncJobServiceMaxJobResults
in interfaceResteasyDeployment
-
getAsyncJobServiceMaxWait
public long getAsyncJobServiceMaxWait()
- Specified by:
getAsyncJobServiceMaxWait
in interfaceResteasyDeployment
-
setAsyncJobServiceMaxWait
public void setAsyncJobServiceMaxWait(long asyncJobServiceMaxWait)
- Specified by:
setAsyncJobServiceMaxWait
in interfaceResteasyDeployment
-
getAsyncJobServiceThreadPoolSize
public int getAsyncJobServiceThreadPoolSize()
- Specified by:
getAsyncJobServiceThreadPoolSize
in interfaceResteasyDeployment
-
setAsyncJobServiceThreadPoolSize
public void setAsyncJobServiceThreadPoolSize(int asyncJobServiceThreadPoolSize)
- Specified by:
setAsyncJobServiceThreadPoolSize
in interfaceResteasyDeployment
-
getAsyncJobServiceBasePath
public String getAsyncJobServiceBasePath()
- Specified by:
getAsyncJobServiceBasePath
in interfaceResteasyDeployment
-
setAsyncJobServiceBasePath
public void setAsyncJobServiceBasePath(String asyncJobServiceBasePath)
- Specified by:
setAsyncJobServiceBasePath
in interfaceResteasyDeployment
-
getApplication
public javax.ws.rs.core.Application getApplication()
- Specified by:
getApplication
in interfaceResteasyDeployment
-
setApplication
public void setApplication(javax.ws.rs.core.Application application)
- Specified by:
setApplication
in interfaceResteasyDeployment
-
isRegisterBuiltin
public boolean isRegisterBuiltin()
- Specified by:
isRegisterBuiltin
in interfaceResteasyDeployment
-
setRegisterBuiltin
public void setRegisterBuiltin(boolean registerBuiltin)
- Specified by:
setRegisterBuiltin
in interfaceResteasyDeployment
-
getProviderClasses
public List<String> getProviderClasses()
- Specified by:
getProviderClasses
in interfaceResteasyDeployment
-
setProviderClasses
public void setProviderClasses(List<String> providerClasses)
- Specified by:
setProviderClasses
in interfaceResteasyDeployment
-
getProviders
public List<Object> getProviders()
- Specified by:
getProviders
in interfaceResteasyDeployment
-
setProviders
public void setProviders(List<Object> providers)
- Specified by:
setProviders
in interfaceResteasyDeployment
-
getActualProviderClasses
public List<Class> getActualProviderClasses()
- Specified by:
getActualProviderClasses
in interfaceResteasyDeployment
-
setActualProviderClasses
public void setActualProviderClasses(List<Class> actualProviderClasses)
- Specified by:
setActualProviderClasses
in interfaceResteasyDeployment
-
getActualResourceClasses
public List<Class> getActualResourceClasses()
- Specified by:
getActualResourceClasses
in interfaceResteasyDeployment
-
setActualResourceClasses
public void setActualResourceClasses(List<Class> actualResourceClasses)
- Specified by:
setActualResourceClasses
in interfaceResteasyDeployment
-
isSecurityEnabled
public boolean isSecurityEnabled()
- Specified by:
isSecurityEnabled
in interfaceResteasyDeployment
-
setSecurityEnabled
public void setSecurityEnabled(boolean securityEnabled)
- Specified by:
setSecurityEnabled
in interfaceResteasyDeployment
-
getJndiResources
public List<String> getJndiResources()
- Specified by:
getJndiResources
in interfaceResteasyDeployment
-
setJndiResources
public void setJndiResources(List<String> jndiResources)
- Specified by:
setJndiResources
in interfaceResteasyDeployment
-
getResourceClasses
public List<String> getResourceClasses()
- Specified by:
getResourceClasses
in interfaceResteasyDeployment
-
setResourceClasses
public void setResourceClasses(List<String> resourceClasses)
- Specified by:
setResourceClasses
in interfaceResteasyDeployment
-
getMediaTypeMappings
public Map<String,String> getMediaTypeMappings()
- Specified by:
getMediaTypeMappings
in interfaceResteasyDeployment
-
setMediaTypeMappings
public void setMediaTypeMappings(Map<String,String> mediaTypeMappings)
- Specified by:
setMediaTypeMappings
in interfaceResteasyDeployment
-
getResources
public List<Object> getResources()
- Specified by:
getResources
in interfaceResteasyDeployment
-
setResources
public void setResources(List<Object> resources)
- Specified by:
setResources
in interfaceResteasyDeployment
-
getLanguageExtensions
public Map<String,String> getLanguageExtensions()
- Specified by:
getLanguageExtensions
in interfaceResteasyDeployment
-
setLanguageExtensions
public void setLanguageExtensions(Map<String,String> languageExtensions)
- Specified by:
setLanguageExtensions
in interfaceResteasyDeployment
-
getRegistry
public Registry getRegistry()
- Specified by:
getRegistry
in interfaceResteasyDeployment
-
setRegistry
public void setRegistry(Registry registry)
- Specified by:
setRegistry
in interfaceResteasyDeployment
-
getDispatcher
public Dispatcher getDispatcher()
- Specified by:
getDispatcher
in interfaceResteasyDeployment
-
setDispatcher
public void setDispatcher(Dispatcher dispatcher)
- Specified by:
setDispatcher
in interfaceResteasyDeployment
-
getProviderFactory
public ResteasyProviderFactory getProviderFactory()
- Specified by:
getProviderFactory
in interfaceResteasyDeployment
-
setProviderFactory
public void setProviderFactory(ResteasyProviderFactory providerFactory)
- Specified by:
setProviderFactory
in interfaceResteasyDeployment
-
setMediaTypeParamMapping
public void setMediaTypeParamMapping(String paramMapping)
- Specified by:
setMediaTypeParamMapping
in interfaceResteasyDeployment
-
getResourceFactories
public List<ResourceFactory> getResourceFactories()
- Specified by:
getResourceFactories
in interfaceResteasyDeployment
-
setResourceFactories
public void setResourceFactories(List<ResourceFactory> resourceFactories)
- Specified by:
setResourceFactories
in interfaceResteasyDeployment
-
getUnwrappedExceptions
public List<String> getUnwrappedExceptions()
- Specified by:
getUnwrappedExceptions
in interfaceResteasyDeployment
-
setUnwrappedExceptions
public void setUnwrappedExceptions(List<String> unwrappedExceptions)
- Specified by:
setUnwrappedExceptions
in interfaceResteasyDeployment
-
getConstructedDefaultContextObjects
public Map<String,String> getConstructedDefaultContextObjects()
- Specified by:
getConstructedDefaultContextObjects
in interfaceResteasyDeployment
-
setConstructedDefaultContextObjects
public void setConstructedDefaultContextObjects(Map<String,String> constructedDefaultContextObjects)
- Specified by:
setConstructedDefaultContextObjects
in interfaceResteasyDeployment
-
getDefaultContextObjects
public Map<Class,Object> getDefaultContextObjects()
- Specified by:
getDefaultContextObjects
in interfaceResteasyDeployment
-
setDefaultContextObjects
public void setDefaultContextObjects(Map<Class,Object> defaultContextObjects)
- Specified by:
setDefaultContextObjects
in interfaceResteasyDeployment
-
getScannedResourceClasses
public List<String> getScannedResourceClasses()
- Specified by:
getScannedResourceClasses
in interfaceResteasyDeployment
-
setScannedResourceClasses
public void setScannedResourceClasses(List<String> scannedResourceClasses)
- Specified by:
setScannedResourceClasses
in interfaceResteasyDeployment
-
getScannedProviderClasses
public List<String> getScannedProviderClasses()
- Specified by:
getScannedProviderClasses
in interfaceResteasyDeployment
-
setScannedProviderClasses
public void setScannedProviderClasses(List<String> scannedProviderClasses)
- Specified by:
setScannedProviderClasses
in interfaceResteasyDeployment
-
getScannedJndiComponentResources
public List<String> getScannedJndiComponentResources()
- Specified by:
getScannedJndiComponentResources
in interfaceResteasyDeployment
-
setScannedJndiComponentResources
public void setScannedJndiComponentResources(List<String> scannedJndiComponentResources)
- Specified by:
setScannedJndiComponentResources
in interfaceResteasyDeployment
-
getScannedResourceClassesWithBuilder
public Map<String,List<String>> getScannedResourceClassesWithBuilder()
- Specified by:
getScannedResourceClassesWithBuilder
in interfaceResteasyDeployment
-
setScannedResourceClassesWithBuilder
public void setScannedResourceClassesWithBuilder(Map<String,List<String>> scannedResourceClassesWithBuilder)
- Specified by:
setScannedResourceClassesWithBuilder
in interfaceResteasyDeployment
-
isWiderRequestMatching
public boolean isWiderRequestMatching()
- Specified by:
isWiderRequestMatching
in interfaceResteasyDeployment
-
setWiderRequestMatching
public void setWiderRequestMatching(boolean widerRequestMatching)
- Specified by:
setWiderRequestMatching
in interfaceResteasyDeployment
-
isAddCharset
public boolean isAddCharset()
- Specified by:
isAddCharset
in interfaceResteasyDeployment
-
setAddCharset
public void setAddCharset(boolean addCharset)
- Specified by:
setAddCharset
in interfaceResteasyDeployment
-
getInjectorFactory
public InjectorFactory getInjectorFactory()
- Specified by:
getInjectorFactory
in interfaceResteasyDeployment
-
setInjectorFactory
public void setInjectorFactory(InjectorFactory injectorFactory)
- Specified by:
setInjectorFactory
in interfaceResteasyDeployment
-
getProperty
public Object getProperty(String key)
- Specified by:
getProperty
in interfaceResteasyDeployment
-
setProperty
public void setProperty(String key, Object value)
- Specified by:
setProperty
in interfaceResteasyDeployment
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled)
- Specified by:
setStatisticsEnabled
in interfaceResteasyDeployment
-
-