Package org.jboss.resteasy.core
Class ResteasyDeploymentImpl
java.lang.Object
org.jboss.resteasy.core.ResteasyDeploymentImpl
- All Implemented Interfaces:
 ResteasyDeployment
- Direct Known Subclasses:
 VertxResteasyDeployment
This class is used to configure and initialize the core components of RESTEasy.
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected jakarta.ws.rs.core.Applicationprotected Stringprotected Stringprotected booleanprotected intprotected longprotected intprotected booleanprotected Dispatcherprotected InjectorFactoryprotected Stringprotected Stringprotected ResteasyProviderFactoryprotected booleanprotected Registryprotected List<ResourceFactory> protected booleanprotected booleanprotected ThreadLocalResteasyProviderFactoryprotected booleanprotected boolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisabledProviderClass(String disabledProviderClass) Adds the provider to the set of providers which will be excluded when attempting to locate providers for processing requests.voidaddDisabledProviderClasses(Set<String> disabledProviderClasses) Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.static jakarta.ws.rs.core.ApplicationcreateApplication(String applicationClass, Dispatcher dispatcher, ResteasyProviderFactory providerFactory) jakarta.ws.rs.core.ApplicationintlongintReturns an immutable set of disabled provider classes.getProperty(String key) protected voidprotected voidprotected voidbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidmerge(ResteasyDeployment other) protected voidprotected booleanprotected voidprotected voidregisterResources(boolean useScanning) voidvoidsetActualProviderClasses(List<Class> actualProviderClasses) voidsetActualResourceClasses(List<Class> actualResourceClasses) voidsetAddCharset(boolean addCharset) voidsetApplication(jakarta.ws.rs.core.Application application) voidsetApplicationClass(String applicationClass) voidsetAsyncJobServiceBasePath(String asyncJobServiceBasePath) voidsetAsyncJobServiceEnabled(boolean asyncJobServiceEnabled) voidsetAsyncJobServiceMaxJobResults(int asyncJobServiceMaxJobResults) voidsetAsyncJobServiceMaxWait(long asyncJobServiceMaxWait) voidsetAsyncJobServiceThreadPoolSize(int asyncJobServiceThreadPoolSize) voidsetConstructedDefaultContextObjects(Map<String, String> constructedDefaultContextObjects) voidsetDefaultContextObjects(Map<Class, Object> defaultContextObjects) voidsetDeploymentSensitiveFactoryEnabled(boolean deploymentSensitiveFactoryEnabled) voidsetDisabledProviderClasses(String... disabledProviderClasses) Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.voidsetDisabledProviderClasses(Set<String> disabledProviderClasses) Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.voidsetDispatcher(Dispatcher dispatcher) voidsetInjectorFactory(InjectorFactory injectorFactory) voidsetInjectorFactoryClass(String injectorFactoryClass) voidsetJndiComponentResources(List<String> jndiComponentResources) voidsetJndiResources(List<String> jndiResources) voidsetLanguageExtensions(Map<String, String> languageExtensions) voidsetMediaTypeMappings(Map<String, String> mediaTypeMappings) voidsetMediaTypeParamMapping(String paramMapping) voidsetProperty(String key, Object value) voidsetProviderClasses(List<String> providerClasses) voidsetProviderFactory(ResteasyProviderFactory providerFactory) voidsetProviders(List<Object> providers) voidsetRegisterBuiltin(boolean registerBuiltin) voidsetRegistry(Registry registry) voidsetResourceClasses(List<String> resourceClasses) voidsetResourceFactories(List<ResourceFactory> resourceFactories) voidsetResources(List<Object> resources) voidsetScannedJndiComponentResources(List<String> scannedJndiComponentResources) voidsetScannedProviderClasses(List<String> scannedProviderClasses) voidsetScannedResourceClasses(List<String> scannedResourceClasses) voidsetScannedResourceClassesWithBuilder(Map<String, List<String>> scannedResourceClassesWithBuilder) voidsetSecurityEnabled(boolean securityEnabled) voidsetStatisticsEnabled(boolean statisticsEnabled) voidsetUnwrappedExceptions(List<String> unwrappedExceptions) voidsetUseContainerFormParams(boolean useContainerFormParams) voidsetWiderRequestMatching(boolean widerRequestMatching) voidstart()voidstop() 
- 
Field Details
- 
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
 - 
applicationClass
 - 
injectorFactoryClass
 - 
injectorFactory
 - 
application
protected jakarta.ws.rs.core.Application application - 
registerBuiltin
protected boolean registerBuiltin - 
scannedResourceClasses
 - 
scannedProviderClasses
 - 
scannedJndiComponentResources
 - 
scannedResourceClassesWithBuilder
 - 
jndiComponentResources
 - 
providerClasses
 - 
actualProviderClasses
 - 
providers
 - 
securityEnabled
protected boolean securityEnabled - 
jndiResources
 - 
resourceClasses
 - 
unwrappedExceptions
 - 
actualResourceClasses
 - 
resourceFactories
 - 
resources
 - 
mediaTypeMappings
 - 
languageExtensions
 - 
defaultContextObjects
 - 
constructedDefaultContextObjects
 - 
registry
 - 
dispatcher
 - 
providerFactory
 - 
threadLocalProviderFactory
 - 
paramMapping
 - 
properties
 - 
statisticsEnabled
protected boolean statisticsEnabled 
 - 
 - 
Constructor Details
- 
ResteasyDeploymentImpl
public ResteasyDeploymentImpl() - 
ResteasyDeploymentImpl
public ResteasyDeploymentImpl(boolean quarkus)  
 - 
 - 
Method Details
- 
start
public void start()- Specified by:
 startin interfaceResteasyDeployment
 - 
registerMappers
protected void registerMappers() - 
pushContext
protected void pushContext() - 
initializeObjects
protected void initializeObjects() - 
initializeDispatcher
protected void initializeDispatcher() - 
initializeFactory
protected void initializeFactory() - 
merge
- Specified by:
 mergein interfaceResteasyDeployment
 - 
createApplication
public static jakarta.ws.rs.core.Application createApplication(String applicationClass, Dispatcher dispatcher, ResteasyProviderFactory providerFactory)  - 
registration
public void registration()- Specified by:
 registrationin interfaceResteasyDeployment
 - 
registerResources
protected void registerResources(boolean useScanning)  - 
registerApplication
protected boolean registerApplication() - 
stop
public void stop()- Specified by:
 stopin interfaceResteasyDeployment
 - 
isUseContainerFormParams
public boolean isUseContainerFormParams()- Specified by:
 isUseContainerFormParamsin interfaceResteasyDeployment
 - 
setUseContainerFormParams
public void setUseContainerFormParams(boolean useContainerFormParams) - Specified by:
 setUseContainerFormParamsin interfaceResteasyDeployment
 - 
getJndiComponentResources
- Specified by:
 getJndiComponentResourcesin interfaceResteasyDeployment
 - 
setJndiComponentResources
- Specified by:
 setJndiComponentResourcesin interfaceResteasyDeployment
 - 
getApplicationClass
- Specified by:
 getApplicationClassin interfaceResteasyDeployment
 - 
setApplicationClass
- Specified by:
 setApplicationClassin interfaceResteasyDeployment
 - 
getInjectorFactoryClass
- Specified by:
 getInjectorFactoryClassin interfaceResteasyDeployment
 - 
setInjectorFactoryClass
- Specified by:
 setInjectorFactoryClassin interfaceResteasyDeployment
 - 
isDeploymentSensitiveFactoryEnabled
public boolean isDeploymentSensitiveFactoryEnabled()- Specified by:
 isDeploymentSensitiveFactoryEnabledin interfaceResteasyDeployment
 - 
setDeploymentSensitiveFactoryEnabled
public void setDeploymentSensitiveFactoryEnabled(boolean deploymentSensitiveFactoryEnabled) - Specified by:
 setDeploymentSensitiveFactoryEnabledin interfaceResteasyDeployment
 - 
isAsyncJobServiceEnabled
public boolean isAsyncJobServiceEnabled()- Specified by:
 isAsyncJobServiceEnabledin interfaceResteasyDeployment
 - 
setAsyncJobServiceEnabled
public void setAsyncJobServiceEnabled(boolean asyncJobServiceEnabled) - Specified by:
 setAsyncJobServiceEnabledin interfaceResteasyDeployment
 - 
getAsyncJobServiceMaxJobResults
public int getAsyncJobServiceMaxJobResults()- Specified by:
 getAsyncJobServiceMaxJobResultsin interfaceResteasyDeployment
 - 
setAsyncJobServiceMaxJobResults
public void setAsyncJobServiceMaxJobResults(int asyncJobServiceMaxJobResults) - Specified by:
 setAsyncJobServiceMaxJobResultsin interfaceResteasyDeployment
 - 
getAsyncJobServiceMaxWait
public long getAsyncJobServiceMaxWait()- Specified by:
 getAsyncJobServiceMaxWaitin interfaceResteasyDeployment
 - 
setAsyncJobServiceMaxWait
public void setAsyncJobServiceMaxWait(long asyncJobServiceMaxWait) - Specified by:
 setAsyncJobServiceMaxWaitin interfaceResteasyDeployment
 - 
getAsyncJobServiceThreadPoolSize
public int getAsyncJobServiceThreadPoolSize()- Specified by:
 getAsyncJobServiceThreadPoolSizein interfaceResteasyDeployment
 - 
setAsyncJobServiceThreadPoolSize
public void setAsyncJobServiceThreadPoolSize(int asyncJobServiceThreadPoolSize) - Specified by:
 setAsyncJobServiceThreadPoolSizein interfaceResteasyDeployment
 - 
getAsyncJobServiceBasePath
- Specified by:
 getAsyncJobServiceBasePathin interfaceResteasyDeployment
 - 
setAsyncJobServiceBasePath
- Specified by:
 setAsyncJobServiceBasePathin interfaceResteasyDeployment
 - 
getApplication
public jakarta.ws.rs.core.Application getApplication()- Specified by:
 getApplicationin interfaceResteasyDeployment
 - 
setApplication
public void setApplication(jakarta.ws.rs.core.Application application) - Specified by:
 setApplicationin interfaceResteasyDeployment
 - 
isRegisterBuiltin
public boolean isRegisterBuiltin()- Specified by:
 isRegisterBuiltinin interfaceResteasyDeployment
 - 
setRegisterBuiltin
public void setRegisterBuiltin(boolean registerBuiltin) - Specified by:
 setRegisterBuiltinin interfaceResteasyDeployment
 - 
getProviderClasses
- Specified by:
 getProviderClassesin interfaceResteasyDeployment
 - 
setProviderClasses
- Specified by:
 setProviderClassesin interfaceResteasyDeployment
 - 
getProviders
- Specified by:
 getProvidersin interfaceResteasyDeployment
 - 
setProviders
- Specified by:
 setProvidersin interfaceResteasyDeployment
 - 
getActualProviderClasses
- Specified by:
 getActualProviderClassesin interfaceResteasyDeployment
 - 
setActualProviderClasses
- Specified by:
 setActualProviderClassesin interfaceResteasyDeployment
 - 
getDisabledProviderClasses
Description copied from interface:ResteasyDeploymentReturns an immutable set of disabled provider classes.- Specified by:
 getDisabledProviderClassesin interfaceResteasyDeployment- Returns:
 - an immutable set of disabled provider class names
 
 - 
addDisabledProviderClass
Description copied from interface:ResteasyDeploymentAdds the provider to the set of providers which will be excluded when attempting to locate providers for processing requests.- Specified by:
 addDisabledProviderClassin interfaceResteasyDeployment- Parameters:
 disabledProviderClass- the fully qualified class name of the provider ot be disabled
 - 
addDisabledProviderClasses
Description copied from interface:ResteasyDeploymentAdds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.- Specified by:
 addDisabledProviderClassesin interfaceResteasyDeployment- Parameters:
 disabledProviderClasses- the fully qualified class names of the providers ot be disabled
 - 
setDisabledProviderClasses
Description copied from interface:ResteasyDeploymentAdds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests. Any previously added disabled providers will be cleared first.- Specified by:
 setDisabledProviderClassesin interfaceResteasyDeployment- Parameters:
 disabledProviderClasses- the fully qualified class names of the providers ot be disabled
 - 
setDisabledProviderClasses
Description copied from interface:ResteasyDeploymentAdds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests. Any previously added disabled providers will be cleared first.- Specified by:
 setDisabledProviderClassesin interfaceResteasyDeployment- Parameters:
 disabledProviderClasses- the fully qualified class names of the providers ot be disabled
 - 
getActualResourceClasses
- Specified by:
 getActualResourceClassesin interfaceResteasyDeployment
 - 
setActualResourceClasses
- Specified by:
 setActualResourceClassesin interfaceResteasyDeployment
 - 
isSecurityEnabled
public boolean isSecurityEnabled()- Specified by:
 isSecurityEnabledin interfaceResteasyDeployment
 - 
setSecurityEnabled
public void setSecurityEnabled(boolean securityEnabled) - Specified by:
 setSecurityEnabledin interfaceResteasyDeployment
 - 
getJndiResources
- Specified by:
 getJndiResourcesin interfaceResteasyDeployment
 - 
setJndiResources
- Specified by:
 setJndiResourcesin interfaceResteasyDeployment
 - 
getResourceClasses
- Specified by:
 getResourceClassesin interfaceResteasyDeployment
 - 
setResourceClasses
- Specified by:
 setResourceClassesin interfaceResteasyDeployment
 - 
getMediaTypeMappings
- Specified by:
 getMediaTypeMappingsin interfaceResteasyDeployment
 - 
setMediaTypeMappings
- Specified by:
 setMediaTypeMappingsin interfaceResteasyDeployment
 - 
getResources
- Specified by:
 getResourcesin interfaceResteasyDeployment
 - 
setResources
- Specified by:
 setResourcesin interfaceResteasyDeployment
 - 
getLanguageExtensions
- Specified by:
 getLanguageExtensionsin interfaceResteasyDeployment
 - 
setLanguageExtensions
- Specified by:
 setLanguageExtensionsin interfaceResteasyDeployment
 - 
getRegistry
- Specified by:
 getRegistryin interfaceResteasyDeployment
 - 
setRegistry
- Specified by:
 setRegistryin interfaceResteasyDeployment
 - 
getDispatcher
- Specified by:
 getDispatcherin interfaceResteasyDeployment
 - 
setDispatcher
- Specified by:
 setDispatcherin interfaceResteasyDeployment
 - 
getProviderFactory
- Specified by:
 getProviderFactoryin interfaceResteasyDeployment
 - 
setProviderFactory
- Specified by:
 setProviderFactoryin interfaceResteasyDeployment
 - 
setMediaTypeParamMapping
- Specified by:
 setMediaTypeParamMappingin interfaceResteasyDeployment
 - 
getResourceFactories
- Specified by:
 getResourceFactoriesin interfaceResteasyDeployment
 - 
setResourceFactories
- Specified by:
 setResourceFactoriesin interfaceResteasyDeployment
 - 
getUnwrappedExceptions
- Specified by:
 getUnwrappedExceptionsin interfaceResteasyDeployment
 - 
setUnwrappedExceptions
- Specified by:
 setUnwrappedExceptionsin interfaceResteasyDeployment
 - 
getConstructedDefaultContextObjects
- Specified by:
 getConstructedDefaultContextObjectsin interfaceResteasyDeployment
 - 
setConstructedDefaultContextObjects
public void setConstructedDefaultContextObjects(Map<String, String> constructedDefaultContextObjects) - Specified by:
 setConstructedDefaultContextObjectsin interfaceResteasyDeployment
 - 
getDefaultContextObjects
- Specified by:
 getDefaultContextObjectsin interfaceResteasyDeployment
 - 
setDefaultContextObjects
- Specified by:
 setDefaultContextObjectsin interfaceResteasyDeployment
 - 
getScannedResourceClasses
- Specified by:
 getScannedResourceClassesin interfaceResteasyDeployment
 - 
setScannedResourceClasses
- Specified by:
 setScannedResourceClassesin interfaceResteasyDeployment
 - 
getScannedProviderClasses
- Specified by:
 getScannedProviderClassesin interfaceResteasyDeployment
 - 
setScannedProviderClasses
- Specified by:
 setScannedProviderClassesin interfaceResteasyDeployment
 - 
getScannedJndiComponentResources
- Specified by:
 getScannedJndiComponentResourcesin interfaceResteasyDeployment
 - 
setScannedJndiComponentResources
- Specified by:
 setScannedJndiComponentResourcesin interfaceResteasyDeployment
 - 
getScannedResourceClassesWithBuilder
- Specified by:
 getScannedResourceClassesWithBuilderin interfaceResteasyDeployment
 - 
setScannedResourceClassesWithBuilder
public void setScannedResourceClassesWithBuilder(Map<String, List<String>> scannedResourceClassesWithBuilder) - Specified by:
 setScannedResourceClassesWithBuilderin interfaceResteasyDeployment
 - 
isWiderRequestMatching
public boolean isWiderRequestMatching()- Specified by:
 isWiderRequestMatchingin interfaceResteasyDeployment
 - 
setWiderRequestMatching
public void setWiderRequestMatching(boolean widerRequestMatching) - Specified by:
 setWiderRequestMatchingin interfaceResteasyDeployment
 - 
isAddCharset
public boolean isAddCharset()- Specified by:
 isAddCharsetin interfaceResteasyDeployment
 - 
setAddCharset
public void setAddCharset(boolean addCharset) - Specified by:
 setAddCharsetin interfaceResteasyDeployment
 - 
getInjectorFactory
- Specified by:
 getInjectorFactoryin interfaceResteasyDeployment
 - 
setInjectorFactory
- Specified by:
 setInjectorFactoryin interfaceResteasyDeployment
 - 
getProperty
- Specified by:
 getPropertyin interfaceResteasyDeployment
 - 
setProperty
- Specified by:
 setPropertyin interfaceResteasyDeployment
 - 
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled) - Specified by:
 setStatisticsEnabledin interfaceResteasyDeployment
 
 -