Class ResteasyProviderFactoryDelegate
java.lang.Object
jakarta.ws.rs.ext.RuntimeDelegate
org.jboss.resteasy.spi.ResteasyProviderFactory
org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryDelegate
- All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
,jakarta.ws.rs.core.Configuration
,jakarta.ws.rs.ext.Providers
,HeaderValueProcessor
A ResteasyProviderFactoryDelegate.
- Author:
- Nicolas NESMON
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.ws.rs.ext.RuntimeDelegate
jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T>
-
Field Summary
Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
-
Constructor Summary
ConstructorDescriptionResteasyProviderFactoryDelegate
(ResteasyProviderFactory resteasyProviderFactoryDelegator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderDelegate
(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) CompletionStage
<jakarta.ws.rs.SeBootstrap.Instance> bootstrap
(jakarta.ws.rs.core.Application application, jakarta.ws.rs.SeBootstrap.Configuration configuration) CompletionStage
<jakarta.ws.rs.SeBootstrap.Instance> bootstrap
(Class<? extends jakarta.ws.rs.core.Application> clazz, jakarta.ws.rs.SeBootstrap.Configuration configuration) jakarta.ws.rs.SeBootstrap.Configuration.Builder
<T> T
createEndpoint
(jakarta.ws.rs.core.Application application, Class<T> endpointType) jakarta.ws.rs.core.EntityPart.Builder
createEntityPartBuilder
(String partName) <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate
<T> createHeaderDelegate
(Class<T> type) jakarta.ws.rs.core.Link.Builder
<T> T
createProviderInstance
(Class<? extends T> clazz) Create an instance of a class using provider allocation rules of the specification as well as the InjectorFactory only does constructor injection.jakarta.ws.rs.core.Response.ResponseBuilder
<T> StringParameterUnmarshaller
<T> createStringParameterUnmarshaller
(Class<T> clazz) jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.Variant.VariantListBuilder
<T> AsyncClientResponseProvider
<T> getAsyncClientResponseProvider
(Class<T> type) <T> AsyncResponseProvider
<T> getAsyncResponseProvider
(Class<T> type) <T> AsyncStreamProvider
<T> getAsyncStreamProvider
(Class<T> type) Set
<jakarta.ws.rs.container.DynamicFeature> <T> jakarta.ws.rs.ext.MessageBodyReader
<T> getClientMessageBodyReader
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) <T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getClientMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.ReaderInterceptor> JaxrsInterceptorRegistry
<jakarta.ws.rs.client.ClientRequestFilter> JaxrsInterceptorRegistry
<jakarta.ws.rs.client.ClientResponseFilter> JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.WriterInterceptor> jakarta.ws.rs.core.MediaType
getConcreteMediaTypeFromMessageBodyWriters
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) jakarta.ws.rs.core.Configuration
JaxrsInterceptorRegistry
<jakarta.ws.rs.container.ContainerRequestFilter> JaxrsInterceptorRegistry
<jakarta.ws.rs.container.ContainerResponseFilter> <T> T
getContextData
(Class<T> type) <T> T
getContextData
(Class<T> rawType, Type genericType, Annotation[] annotations, boolean unwrapAsync) <T> jakarta.ws.rs.ext.ContextResolver
<T> getContextResolver
(Class<T> contextType, jakarta.ws.rs.core.MediaType mediaType) List
<jakarta.ws.rs.ext.ContextResolver> getContextResolvers
(Class<?> clazz, jakarta.ws.rs.core.MediaType type) getContracts
(Class<?> componentClass) Collection
<jakarta.ws.rs.core.Feature> <T extends Throwable>
jakarta.ws.rs.ext.ExceptionMapper<T> getExceptionMapper
(Class<T> type) jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate
getHeaderDelegate
(Class<?> aClass) Checks to see if RuntimeDelegate is a ResteasyProviderFactory If it is, then use that, otherwise use this.<T> jakarta.ws.rs.ext.MessageBodyReader
<T> getMessageBodyReader
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) <T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) jakarta.ws.rs.ext.ParamConverter
getParamConverter
(Class clazz, Type genericType, Annotation[] annotations) getPossibleMessageBodyWritersMap
(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType accept) getProperty
(String name) jakarta.ws.rs.RuntimeType
<I extends jakarta.ws.rs.client.RxInvoker>
jakarta.ws.rs.client.RxInvokerProvider<I> getRxInvokerProvider
(Class<I> clazz) jakarta.ws.rs.client.RxInvokerProvider
<?> getRxInvokerProviderFromReactiveClass
(Class<?> clazz) Set
<jakarta.ws.rs.container.DynamicFeature> <T> jakarta.ws.rs.ext.MessageBodyReader
<T> getServerMessageBodyReader
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) <T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getServerMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.ReaderInterceptor> JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.WriterInterceptor> jakarta.ws.rs.ext.ExceptionMapper
<Throwable> Returns an exception mapper which handles the generic throwable which is typically the default exception mapper.boolean
hasProperty
(String name) void
<T> T
injectedInstance
(Class<? extends T> clazz) Property and constructor injection using the InjectorFactory.<T> T
injectedInstance
(Class<? extends T> clazz, HttpRequest request, HttpResponse response) Property and constructor injection using the InjectorFactory.void
injectProperties
(Object obj) void
injectProperties
(Object obj, HttpRequest request, HttpResponse response) boolean
boolean
isEnabled
(jakarta.ws.rs.core.Feature feature) boolean
protected boolean
boolean
isReactive
(Class<?> clazz) boolean
boolean
isRegistered
(Class<?> componentClass) boolean
isRegistered
(Object component) protected void
void
registerProvider
(Class provider) void
registerProvider
(Class provider, boolean isBuiltin) Register a @Provider class.void
registerProvider
(Class provider, Integer priorityOverride, boolean isBuiltin, Map<Class<?>, Integer> contracts) void
registerProviderInstance
(Object provider) Register a @Provider object.void
registerProviderInstance
(Object provider, Map<Class<?>, Integer> contracts, Integer priorityOverride, boolean builtIn) void
setBuiltinsRegistered
(boolean builtinsRegistered) void
setInjectorFactory
(InjectorFactory injectorFactory) setProperties
(Map<String, Object> properties) void
setRegisterBuiltins
(boolean registerBuiltins) toHeaderString
(Object object) Convert an object to a header string.toString
(Object object, Class clazz, Type genericType, Annotation[] annotations) Convert an object to a string.Methods inherited from class org.jboss.resteasy.spi.ResteasyProviderFactory
clearInstanceIfEqual, getInstance, isA, isA, newInstance, peekInstance, setInstance, setRegisterBuiltinByDefault
Methods inherited from class jakarta.ws.rs.ext.RuntimeDelegate
setInstance
-
Constructor Details
-
ResteasyProviderFactoryDelegate
-
-
Method Details
-
getMessageBodyReader
public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) -
getMessageBodyWriter
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) -
getExceptionMapper
-
getContextResolver
public <T> jakarta.ws.rs.ext.ContextResolver<T> getContextResolver(Class<T> contextType, jakarta.ws.rs.core.MediaType mediaType) -
toHeaderString
Description copied from interface:HeaderValueProcessor
Convert an object to a header string. First try StringConverter, then HeaderDelegate, then object.toString().- Parameters:
object
- header object- Returns:
- header string representation
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration() -
property
-
register
-
register
-
register
-
register
-
register
-
register
-
register
-
register
-
getRuntimeType
public jakarta.ws.rs.RuntimeType getRuntimeType() -
getProperties
-
getProperty
-
getPropertyNames
-
isEnabled
public boolean isEnabled(jakarta.ws.rs.core.Feature feature) -
isEnabled
-
isRegistered
-
isRegistered
-
getContracts
-
getClasses
-
getInstances
-
getServerDynamicFeatures
- Specified by:
getServerDynamicFeatures
in classResteasyProviderFactory
-
getClientDynamicFeatures
- Specified by:
getClientDynamicFeatures
in classResteasyProviderFactory
-
getAsyncResponseProviders
- Specified by:
getAsyncResponseProviders
in classResteasyProviderFactory
-
getAsyncClientResponseProviders
- Specified by:
getAsyncClientResponseProviders
in classResteasyProviderFactory
-
getAsyncStreamProviders
- Specified by:
getAsyncStreamProviders
in classResteasyProviderFactory
-
getContextInjectors
- Specified by:
getContextInjectors
in classResteasyProviderFactory
-
getAsyncContextInjectors
- Specified by:
getAsyncContextInjectors
in classResteasyProviderFactory
-
getProviderClasses
- Specified by:
getProviderClasses
in classResteasyProviderFactory
-
getProviderInstances
- Specified by:
getProviderInstances
in classResteasyProviderFactory
-
getContextData
- Specified by:
getContextData
in classResteasyProviderFactory
-
getContextData
public <T> T getContextData(Class<T> rawType, Type genericType, Annotation[] annotations, boolean unwrapAsync) - Specified by:
getContextData
in classResteasyProviderFactory
-
registerBuiltin
protected void registerBuiltin()- Specified by:
registerBuiltin
in classResteasyProviderFactory
-
isRegisterBuiltins
public boolean isRegisterBuiltins()- Specified by:
isRegisterBuiltins
in classResteasyProviderFactory
-
setRegisterBuiltins
public void setRegisterBuiltins(boolean registerBuiltins) - Specified by:
setRegisterBuiltins
in classResteasyProviderFactory
-
getInjectorFactory
- Specified by:
getInjectorFactory
in classResteasyProviderFactory
-
setInjectorFactory
- Specified by:
setInjectorFactory
in classResteasyProviderFactory
-
getServerReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getServerReaderInterceptorRegistry()- Specified by:
getServerReaderInterceptorRegistry
in classResteasyProviderFactory
-
getServerWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getServerWriterInterceptorRegistry()- Specified by:
getServerWriterInterceptorRegistry
in classResteasyProviderFactory
-
getContainerRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerRequestFilter> getContainerRequestFilterRegistry()- Specified by:
getContainerRequestFilterRegistry
in classResteasyProviderFactory
-
getContainerResponseFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerResponseFilter> getContainerResponseFilterRegistry()- Specified by:
getContainerResponseFilterRegistry
in classResteasyProviderFactory
-
getClientReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getClientReaderInterceptorRegistry()- Specified by:
getClientReaderInterceptorRegistry
in classResteasyProviderFactory
-
getClientWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getClientWriterInterceptorRegistry()- Specified by:
getClientWriterInterceptorRegistry
in classResteasyProviderFactory
-
getClientRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientRequestFilter> getClientRequestFilterRegistry()- Specified by:
getClientRequestFilterRegistry
in classResteasyProviderFactory
-
getClientResponseFilters
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientResponseFilter> getClientResponseFilters()- Specified by:
getClientResponseFilters
in classResteasyProviderFactory
-
isBuiltinsRegistered
public boolean isBuiltinsRegistered()- Specified by:
isBuiltinsRegistered
in classResteasyProviderFactory
-
setBuiltinsRegistered
public void setBuiltinsRegistered(boolean builtinsRegistered) - Specified by:
setBuiltinsRegistered
in classResteasyProviderFactory
-
addHeaderDelegate
- Specified by:
addHeaderDelegate
in classResteasyProviderFactory
-
getServerMessageBodyReader
public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getServerMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getServerMessageBodyReader
in classResteasyProviderFactory
-
getClientMessageBodyReader
public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getClientMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getClientMessageBodyReader
in classResteasyProviderFactory
-
getContextResolvers
public List<jakarta.ws.rs.ext.ContextResolver> getContextResolvers(Class<?> clazz, jakarta.ws.rs.core.MediaType type) - Specified by:
getContextResolvers
in classResteasyProviderFactory
-
getParamConverter
public jakarta.ws.rs.ext.ParamConverter getParamConverter(Class clazz, Type genericType, Annotation[] annotations) - Specified by:
getParamConverter
in classResteasyProviderFactory
-
createStringParameterUnmarshaller
- Specified by:
createStringParameterUnmarshaller
in classResteasyProviderFactory
-
registerProvider
- Specified by:
registerProvider
in classResteasyProviderFactory
-
toString
Description copied from class:ResteasyProviderFactory
Convert an object to a string. First try StringConverter then, object.ToString()- Specified by:
toString
in classResteasyProviderFactory
- Parameters:
object
- objectclazz
- classgenericType
- generic typeannotations
- array of annotation- Returns:
- string representation
-
getHeaderDelegate
Description copied from class:ResteasyProviderFactory
Checks to see if RuntimeDelegate is a ResteasyProviderFactory If it is, then use that, otherwise use this.- Specified by:
getHeaderDelegate
in classResteasyProviderFactory
- Parameters:
aClass
- class of the header- Returns:
- header delegate
-
registerProvider
Description copied from class:ResteasyProviderFactory
Register a @Provider class. Can be a MessageBodyReader/Writer or ExceptionMapper.- Specified by:
registerProvider
in classResteasyProviderFactory
- Parameters:
provider
- provider classisBuiltin
- built-in
-
registerProvider
public void registerProvider(Class provider, Integer priorityOverride, boolean isBuiltin, Map<Class<?>, Integer> contracts) - Specified by:
registerProvider
in classResteasyProviderFactory
-
registerProviderInstance
Description copied from class:ResteasyProviderFactory
Register a @Provider object. Can be a MessageBodyReader/Writer or ExceptionMapper.- Specified by:
registerProviderInstance
in classResteasyProviderFactory
- Parameters:
provider
- provider instance
-
registerProviderInstance
public void registerProviderInstance(Object provider, Map<Class<?>, Integer> contracts, Integer priorityOverride, boolean builtIn) - Specified by:
registerProviderInstance
in classResteasyProviderFactory
-
getAsyncResponseProvider
- Specified by:
getAsyncResponseProvider
in classResteasyProviderFactory
-
getAsyncClientResponseProvider
- Specified by:
getAsyncClientResponseProvider
in classResteasyProviderFactory
-
getAsyncStreamProvider
- Specified by:
getAsyncStreamProvider
in classResteasyProviderFactory
-
getConcreteMediaTypeFromMessageBodyWriters
public jakarta.ws.rs.core.MediaType getConcreteMediaTypeFromMessageBodyWriters(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getConcreteMediaTypeFromMessageBodyWriters
in classResteasyProviderFactory
-
getPossibleMessageBodyWritersMap
public Map<jakarta.ws.rs.ext.MessageBodyWriter<?>,Class<?>> getPossibleMessageBodyWritersMap(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType accept) - Specified by:
getPossibleMessageBodyWritersMap
in classResteasyProviderFactory
-
getServerMessageBodyWriter
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getServerMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getServerMessageBodyWriter
in classResteasyProviderFactory
-
getClientMessageBodyWriter
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getClientMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getClientMessageBodyWriter
in classResteasyProviderFactory
-
createProviderInstance
Description copied from class:ResteasyProviderFactory
Create an instance of a class using provider allocation rules of the specification as well as the InjectorFactory only does constructor injection.- Specified by:
createProviderInstance
in classResteasyProviderFactory
- Type Parameters:
T
- type- Parameters:
clazz
- class- Returns:
- provider instance of type T
-
injectedInstance
Description copied from class:ResteasyProviderFactory
Property and constructor injection using the InjectorFactory.- Specified by:
injectedInstance
in classResteasyProviderFactory
- Type Parameters:
T
- type- Parameters:
clazz
- class- Returns:
- instance of type T
-
injectedInstance
Description copied from class:ResteasyProviderFactory
Property and constructor injection using the InjectorFactory.- Specified by:
injectedInstance
in classResteasyProviderFactory
- Type Parameters:
T
- type- Parameters:
clazz
- classrequest
- http requestresponse
- http response- Returns:
- instance of type T
-
injectProperties
- Specified by:
injectProperties
in classResteasyProviderFactory
-
injectProperties
- Specified by:
injectProperties
in classResteasyProviderFactory
-
getMutableProperties
- Specified by:
getMutableProperties
in classResteasyProviderFactory
-
setProperties
- Specified by:
setProperties
in classResteasyProviderFactory
-
getEnabledFeatures
- Specified by:
getEnabledFeatures
in classResteasyProviderFactory
-
getRxInvokerProvider
public <I extends jakarta.ws.rs.client.RxInvoker> jakarta.ws.rs.client.RxInvokerProvider<I> getRxInvokerProvider(Class<I> clazz) - Specified by:
getRxInvokerProvider
in classResteasyProviderFactory
-
getRxInvokerProviderFromReactiveClass
public jakarta.ws.rs.client.RxInvokerProvider<?> getRxInvokerProviderFromReactiveClass(Class<?> clazz) - Specified by:
getRxInvokerProviderFromReactiveClass
in classResteasyProviderFactory
-
isReactive
- Specified by:
isReactive
in classResteasyProviderFactory
-
getResourceBuilder
- Specified by:
getResourceBuilder
in classResteasyProviderFactory
-
initializeClientProviders
- Specified by:
initializeClientProviders
in classResteasyProviderFactory
-
createUriBuilder
public jakarta.ws.rs.core.UriBuilder createUriBuilder()- Specified by:
createUriBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
createResponseBuilder
public jakarta.ws.rs.core.Response.ResponseBuilder createResponseBuilder()- Specified by:
createResponseBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
createVariantListBuilder
public jakarta.ws.rs.core.Variant.VariantListBuilder createVariantListBuilder()- Specified by:
createVariantListBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
createEndpoint
public <T> T createEndpoint(jakarta.ws.rs.core.Application application, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException - Specified by:
createEndpoint
in classjakarta.ws.rs.ext.RuntimeDelegate
- Throws:
IllegalArgumentException
UnsupportedOperationException
-
createHeaderDelegate
public <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> type) throws IllegalArgumentException - Specified by:
createHeaderDelegate
in classjakarta.ws.rs.ext.RuntimeDelegate
- Throws:
IllegalArgumentException
-
createLinkBuilder
public jakarta.ws.rs.core.Link.Builder createLinkBuilder()- Specified by:
createLinkBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
getStatisticsController
- Specified by:
getStatisticsController
in classResteasyProviderFactory
-
getThrowableExceptionMapper
Description copied from class:ResteasyProviderFactory
Returns an exception mapper which handles the generic throwable which is typically the default exception mapper.- Overrides:
getThrowableExceptionMapper
in classResteasyProviderFactory
- Returns:
- an exception mapper which handles a
Throwable
-
isOnServer
protected boolean isOnServer()- Specified by:
isOnServer
in classResteasyProviderFactory
-
hasProperty
-
createConfigurationBuilder
public jakarta.ws.rs.SeBootstrap.Configuration.Builder createConfigurationBuilder()- Specified by:
createConfigurationBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
bootstrap
public CompletionStage<jakarta.ws.rs.SeBootstrap.Instance> bootstrap(jakarta.ws.rs.core.Application application, jakarta.ws.rs.SeBootstrap.Configuration configuration) - Specified by:
bootstrap
in classjakarta.ws.rs.ext.RuntimeDelegate
-
bootstrap
public CompletionStage<jakarta.ws.rs.SeBootstrap.Instance> bootstrap(Class<? extends jakarta.ws.rs.core.Application> clazz, jakarta.ws.rs.SeBootstrap.Configuration configuration) - Specified by:
bootstrap
in classjakarta.ws.rs.ext.RuntimeDelegate
-
createEntityPartBuilder
public jakarta.ws.rs.core.EntityPart.Builder createEntityPartBuilder(String partName) throws IllegalArgumentException - Specified by:
createEntityPartBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
- Throws:
IllegalArgumentException
-