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
Modifier and TypeFieldDescriptionprotected boolean
protected jakarta.ws.rs.core.Application
protected String
protected String
protected boolean
protected int
protected long
protected int
protected boolean
protected Dispatcher
protected InjectorFactory
protected String
protected String
protected ResteasyProviderFactory
protected boolean
protected Registry
protected List<ResourceFactory>
protected boolean
protected boolean
protected ThreadLocalResteasyProviderFactory
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisabledProviderClass
(String disabledProviderClass) Adds the provider to the set of providers which will be excluded when attempting to locate providers for processing requests.void
addDisabledProviderClasses
(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.Application
createApplication
(String applicationClass, Dispatcher dispatcher, ResteasyProviderFactory providerFactory) jakarta.ws.rs.core.Application
int
long
int
Returns an immutable set of disabled provider classes.getProperty
(String key) protected void
protected void
protected void
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
merge
(ResteasyDeployment other) protected void
protected boolean
protected void
protected void
registerResources
(boolean useScanning) void
void
setActualProviderClasses
(List<Class> actualProviderClasses) void
setActualResourceClasses
(List<Class> actualResourceClasses) void
setAddCharset
(boolean addCharset) void
setApplication
(jakarta.ws.rs.core.Application application) void
setApplicationClass
(String applicationClass) void
setAsyncJobServiceBasePath
(String asyncJobServiceBasePath) void
setAsyncJobServiceEnabled
(boolean asyncJobServiceEnabled) void
setAsyncJobServiceMaxJobResults
(int asyncJobServiceMaxJobResults) void
setAsyncJobServiceMaxWait
(long asyncJobServiceMaxWait) void
setAsyncJobServiceThreadPoolSize
(int asyncJobServiceThreadPoolSize) void
setConstructedDefaultContextObjects
(Map<String, String> constructedDefaultContextObjects) void
setDefaultContextObjects
(Map<Class, Object> defaultContextObjects) void
setDeploymentSensitiveFactoryEnabled
(boolean deploymentSensitiveFactoryEnabled) void
setDisabledProviderClasses
(String... disabledProviderClasses) Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.void
setDisabledProviderClasses
(Set<String> disabledProviderClasses) Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.void
setDispatcher
(Dispatcher dispatcher) void
setInjectorFactory
(InjectorFactory injectorFactory) void
setInjectorFactoryClass
(String injectorFactoryClass) void
setJndiComponentResources
(List<String> jndiComponentResources) void
setJndiResources
(List<String> jndiResources) void
setLanguageExtensions
(Map<String, String> languageExtensions) void
setMediaTypeMappings
(Map<String, String> mediaTypeMappings) void
setMediaTypeParamMapping
(String paramMapping) void
setProperty
(String key, Object value) void
setProviderClasses
(List<String> providerClasses) void
setProviderFactory
(ResteasyProviderFactory providerFactory) void
setProviders
(List<Object> providers) void
setRegisterBuiltin
(boolean registerBuiltin) void
setRegistry
(Registry registry) void
setResourceClasses
(List<String> resourceClasses) void
setResourceFactories
(List<ResourceFactory> resourceFactories) void
setResources
(List<Object> resources) void
setScannedJndiComponentResources
(List<String> scannedJndiComponentResources) void
setScannedProviderClasses
(List<String> scannedProviderClasses) void
setScannedResourceClasses
(List<String> scannedResourceClasses) void
setScannedResourceClassesWithBuilder
(Map<String, List<String>> scannedResourceClassesWithBuilder) void
setSecurityEnabled
(boolean securityEnabled) void
setStatisticsEnabled
(boolean statisticsEnabled) void
setUnwrappedExceptions
(List<String> unwrappedExceptions) void
setUseContainerFormParams
(boolean useContainerFormParams) void
setWiderRequestMatching
(boolean widerRequestMatching) void
start()
void
stop()
-
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:
start
in interfaceResteasyDeployment
-
registerMappers
protected void registerMappers() -
pushContext
protected void pushContext() -
initializeObjects
protected void initializeObjects() -
initializeDispatcher
protected void initializeDispatcher() -
initializeFactory
protected void initializeFactory() -
merge
- Specified by:
merge
in interfaceResteasyDeployment
-
createApplication
public static jakarta.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
- Specified by:
getJndiComponentResources
in interfaceResteasyDeployment
-
setJndiComponentResources
- Specified by:
setJndiComponentResources
in interfaceResteasyDeployment
-
getApplicationClass
- Specified by:
getApplicationClass
in interfaceResteasyDeployment
-
setApplicationClass
- Specified by:
setApplicationClass
in interfaceResteasyDeployment
-
getInjectorFactoryClass
- Specified by:
getInjectorFactoryClass
in interfaceResteasyDeployment
-
setInjectorFactoryClass
- 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
- Specified by:
getAsyncJobServiceBasePath
in interfaceResteasyDeployment
-
setAsyncJobServiceBasePath
- Specified by:
setAsyncJobServiceBasePath
in interfaceResteasyDeployment
-
getApplication
public jakarta.ws.rs.core.Application getApplication()- Specified by:
getApplication
in interfaceResteasyDeployment
-
setApplication
public void setApplication(jakarta.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
- Specified by:
getProviderClasses
in interfaceResteasyDeployment
-
setProviderClasses
- Specified by:
setProviderClasses
in interfaceResteasyDeployment
-
getProviders
- Specified by:
getProviders
in interfaceResteasyDeployment
-
setProviders
- Specified by:
setProviders
in interfaceResteasyDeployment
-
getActualProviderClasses
- Specified by:
getActualProviderClasses
in interfaceResteasyDeployment
-
setActualProviderClasses
- Specified by:
setActualProviderClasses
in interfaceResteasyDeployment
-
getDisabledProviderClasses
Description copied from interface:ResteasyDeployment
Returns an immutable set of disabled provider classes.- Specified by:
getDisabledProviderClasses
in interfaceResteasyDeployment
- Returns:
- an immutable set of disabled provider class names
-
addDisabledProviderClass
Description copied from interface:ResteasyDeployment
Adds the provider to the set of providers which will be excluded when attempting to locate providers for processing requests.- Specified by:
addDisabledProviderClass
in interfaceResteasyDeployment
- Parameters:
disabledProviderClass
- the fully qualified class name of the provider ot be disabled
-
addDisabledProviderClasses
Description copied from interface:ResteasyDeployment
Adds the providers to the set of providers which will be excluded when attempting to locate providers for processing requests.- Specified by:
addDisabledProviderClasses
in interfaceResteasyDeployment
- Parameters:
disabledProviderClasses
- the fully qualified class names of the providers ot be disabled
-
setDisabledProviderClasses
Description copied from interface:ResteasyDeployment
Adds 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:
setDisabledProviderClasses
in interfaceResteasyDeployment
- Parameters:
disabledProviderClasses
- the fully qualified class names of the providers ot be disabled
-
setDisabledProviderClasses
Description copied from interface:ResteasyDeployment
Adds 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:
setDisabledProviderClasses
in interfaceResteasyDeployment
- Parameters:
disabledProviderClasses
- the fully qualified class names of the providers ot be disabled
-
getActualResourceClasses
- Specified by:
getActualResourceClasses
in interfaceResteasyDeployment
-
setActualResourceClasses
- 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
- Specified by:
getJndiResources
in interfaceResteasyDeployment
-
setJndiResources
- Specified by:
setJndiResources
in interfaceResteasyDeployment
-
getResourceClasses
- Specified by:
getResourceClasses
in interfaceResteasyDeployment
-
setResourceClasses
- Specified by:
setResourceClasses
in interfaceResteasyDeployment
-
getMediaTypeMappings
- Specified by:
getMediaTypeMappings
in interfaceResteasyDeployment
-
setMediaTypeMappings
- Specified by:
setMediaTypeMappings
in interfaceResteasyDeployment
-
getResources
- Specified by:
getResources
in interfaceResteasyDeployment
-
setResources
- Specified by:
setResources
in interfaceResteasyDeployment
-
getLanguageExtensions
- Specified by:
getLanguageExtensions
in interfaceResteasyDeployment
-
setLanguageExtensions
- Specified by:
setLanguageExtensions
in interfaceResteasyDeployment
-
getRegistry
- Specified by:
getRegistry
in interfaceResteasyDeployment
-
setRegistry
- Specified by:
setRegistry
in interfaceResteasyDeployment
-
getDispatcher
- Specified by:
getDispatcher
in interfaceResteasyDeployment
-
setDispatcher
- Specified by:
setDispatcher
in interfaceResteasyDeployment
-
getProviderFactory
- Specified by:
getProviderFactory
in interfaceResteasyDeployment
-
setProviderFactory
- Specified by:
setProviderFactory
in interfaceResteasyDeployment
-
setMediaTypeParamMapping
- Specified by:
setMediaTypeParamMapping
in interfaceResteasyDeployment
-
getResourceFactories
- Specified by:
getResourceFactories
in interfaceResteasyDeployment
-
setResourceFactories
- Specified by:
setResourceFactories
in interfaceResteasyDeployment
-
getUnwrappedExceptions
- Specified by:
getUnwrappedExceptions
in interfaceResteasyDeployment
-
setUnwrappedExceptions
- Specified by:
setUnwrappedExceptions
in interfaceResteasyDeployment
-
getConstructedDefaultContextObjects
- Specified by:
getConstructedDefaultContextObjects
in interfaceResteasyDeployment
-
setConstructedDefaultContextObjects
public void setConstructedDefaultContextObjects(Map<String, String> constructedDefaultContextObjects) - Specified by:
setConstructedDefaultContextObjects
in interfaceResteasyDeployment
-
getDefaultContextObjects
- Specified by:
getDefaultContextObjects
in interfaceResteasyDeployment
-
setDefaultContextObjects
- Specified by:
setDefaultContextObjects
in interfaceResteasyDeployment
-
getScannedResourceClasses
- Specified by:
getScannedResourceClasses
in interfaceResteasyDeployment
-
setScannedResourceClasses
- Specified by:
setScannedResourceClasses
in interfaceResteasyDeployment
-
getScannedProviderClasses
- Specified by:
getScannedProviderClasses
in interfaceResteasyDeployment
-
setScannedProviderClasses
- Specified by:
setScannedProviderClasses
in interfaceResteasyDeployment
-
getScannedJndiComponentResources
- Specified by:
getScannedJndiComponentResources
in interfaceResteasyDeployment
-
setScannedJndiComponentResources
- Specified by:
setScannedJndiComponentResources
in interfaceResteasyDeployment
-
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
- Specified by:
getInjectorFactory
in interfaceResteasyDeployment
-
setInjectorFactory
- Specified by:
setInjectorFactory
in interfaceResteasyDeployment
-
getProperty
- Specified by:
getProperty
in interfaceResteasyDeployment
-
setProperty
- Specified by:
setProperty
in interfaceResteasyDeployment
-
setStatisticsEnabled
public void setStatisticsEnabled(boolean statisticsEnabled) - Specified by:
setStatisticsEnabled
in interfaceResteasyDeployment
-