Class DelegateResteasyDeployment
java.lang.Object
org.jboss.resteasy.spi.DelegateResteasyDeployment
- All Implemented Interfaces:
ResteasyDeployment
A simple delegating
ResteasyDeployment
.
All the delegate methods uses getDelegate()
to determine the delegate. This allows sub-classes to override
the method without requiring the delegating to be known at construction time.
- Author:
- James R. Perkins
-
Constructor Summary
ConstructorDescriptionDelegateResteasyDeployment
(ResteasyDeployment delegate) Creates a new delegating deployment. -
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.jakarta.ws.rs.core.Application
int
long
int
protected ResteasyDeployment
Returns the delegate deployment.Returns an immutable set of disabled provider classes.getProperty
(String key) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
merge
(ResteasyDeployment other) 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()
-
Constructor Details
-
DelegateResteasyDeployment
Creates a new delegating deployment.If a
null
delegate is passed thegetDelegate()
must be overridden.- Parameters:
delegate
- the delegate ornull
ifgetDelegate()
is overridden
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceResteasyDeployment
-
merge
- Specified by:
merge
in interfaceResteasyDeployment
-
registration
public void registration()- Specified by:
registration
in interfaceResteasyDeployment
-
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
-
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
-
getActualProviderClasses
- Specified by:
getActualProviderClasses
in interfaceResteasyDeployment
-
setActualProviderClasses
- Specified by:
setActualProviderClasses
in interfaceResteasyDeployment
-
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
-
getDelegate
Returns the delegate deployment.- Returns:
- the delegate deployment
-