Class ThreadLocalResteasyProviderFactory
java.lang.Object
jakarta.ws.rs.ext.RuntimeDelegate
org.jboss.resteasy.spi.ResteasyProviderFactory
org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl
org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory
- All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
,jakarta.ws.rs.core.Configuration
,jakarta.ws.rs.ext.Providers
,HeaderValueProcessor
,ProviderFactoryDelegate
public final class ThreadLocalResteasyProviderFactory
extends ResteasyProviderFactoryImpl
implements ProviderFactoryDelegate
Allow applications to push/pop provider factories onto the stack.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
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 org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl
alreadyEstablishedNullHeaderDelegate, asyncContextInjectors, attachedContextResolvers, attachedParamConverterProviders, builtinsRegistered, classContracts, clientHelper, contextInjectors, contextResolvers, enabledFeatures, headerDelegates, initialized, injectorFactory, lockSnapshots, properties, providerClasses, providerInstances, registerBuiltins, resourceBuilder, serverHelper, sortedParamConverterProviders, statisticsController, stringParameterUnmarshallers
Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
-
Constructor Summary
ConstructorDescriptionThreadLocalResteasyProviderFactory
(ResteasyProviderFactory defaultFactory) ThreadLocalResteasyProviderFactory
(ResteasyProviderFactory defaultFactory, boolean defaultExceptionManagerEnabled) Creates a new thread local provider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderDelegate
(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) <T> T
createEndpoint
(jakarta.ws.rs.core.Application applicationConfig, Class<T> endpointType) This is a spec method that is unsupported.<T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate
<T> createHeaderDelegate
(Class<T> tClass) 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> 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> 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) Always returns server MBRs.<T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Always gets server MBW.jakarta.ws.rs.ext.ParamConverter
getParamConverter
(Class clazz, Type genericType, Annotation[] annotations) getProperty
(String name) Gets provide classes.Gets provider instances.jakarta.ws.rs.RuntimeType
Set
<jakarta.ws.rs.container.DynamicFeature> 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.protected 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
boolean
boolean
isRegistered
(Class<?> componentClass) boolean
isRegistered
(Object component) static void
pop()
static void
push
(ResteasyProviderFactory factory) 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 defaultPriority, 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.core.providerfactory.ResteasyProviderFactoryImpl
addContextInjector, addContextResolver, addFeature, addHeaderDelegate, addHeaderDelegate, addHeaderDelegateIfAbsent, addInjectorFactory, addParameterConverterProvider, addResourceClassProcessor, addStringParameterUnmarshaller, bootstrap, bootstrap, createConfigurationBuilder, createEntityPartBuilder, getAsyncClientResponseProvider, getAsyncClientResponseProviders, getClassContracts, getClientHelper, getClientMessageBodyReaders, getClientMessageBodyWriters, getContextData, getContextResolvers, getExceptionMapperForClass, getHeaderDelegates, getMutableProviderClasses, getPossibleMessageBodyWritersMap, getResourceBuilder, getRxInvokerProvider, getRxInvokerProviderFromReactiveClass, getServerHelper, getServerMessageBodyReader, getServerMessageBodyReader, getServerMessageBodyReaders, getServerMessageBodyWriter, getServerMessageBodyWriter, getServerMessageBodyWriters, getSortedParamConverterProviders, getStatisticsController, getStringParameterUnmarshallers, hasProperty, initializeClientProviders, initializeCommon, isDefaultExceptionManagerEnabled, isOnServer, isReactive, lockSnapshots, registerBuiltin
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
-
ThreadLocalResteasyProviderFactory
-
ThreadLocalResteasyProviderFactory
public ThreadLocalResteasyProviderFactory(ResteasyProviderFactory defaultFactory, boolean defaultExceptionManagerEnabled) Creates a new thread local provider.- Parameters:
defaultFactory
- the delegate providerdefaultExceptionManagerEnabled
-true
if the default exception manager should be enabled
-
-
Method Details
-
getDelegate
- Specified by:
getDelegate
in interfaceProviderFactoryDelegate
-
initialize
protected void initialize()- Overrides:
initialize
in classResteasyProviderFactoryImpl
-
getConcreteMediaTypeFromMessageBodyWriters
public jakarta.ws.rs.core.MediaType getConcreteMediaTypeFromMessageBodyWriters(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Overrides:
getConcreteMediaTypeFromMessageBodyWriters
in classResteasyProviderFactoryImpl
-
getHeaderDelegate
Description copied from class:ResteasyProviderFactoryImpl
Checks to see if RuntimeDelegate is a ResteasyProviderFactory If it is, then use that, otherwise use this.- Overrides:
getHeaderDelegate
in classResteasyProviderFactoryImpl
- Parameters:
aClass
- class of the header- Returns:
- header delegate
-
injectedInstance
Description copied from class:ResteasyProviderFactoryImpl
Property and constructor injection using the InjectorFactory.- Overrides:
injectedInstance
in classResteasyProviderFactoryImpl
- Type Parameters:
T
- type- Parameters:
clazz
- classrequest
- http requestresponse
- http response- Returns:
- instance of type T
-
injectProperties
- Overrides:
injectProperties
in classResteasyProviderFactoryImpl
-
push
-
pop
public static void pop() -
getContainerResponseFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerResponseFilter> getContainerResponseFilterRegistry()- Overrides:
getContainerResponseFilterRegistry
in classResteasyProviderFactoryImpl
-
getServerReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getServerReaderInterceptorRegistry()- Overrides:
getServerReaderInterceptorRegistry
in classResteasyProviderFactoryImpl
-
createVariantListBuilder
public jakarta.ws.rs.core.Variant.VariantListBuilder createVariantListBuilder()- Overrides:
createVariantListBuilder
in classResteasyProviderFactoryImpl
-
getContextResolvers
public List<jakarta.ws.rs.ext.ContextResolver> getContextResolvers(Class<?> clazz, jakarta.ws.rs.core.MediaType type) - Overrides:
getContextResolvers
in classResteasyProviderFactoryImpl
-
isBuiltinsRegistered
public boolean isBuiltinsRegistered()- Overrides:
isBuiltinsRegistered
in classResteasyProviderFactoryImpl
-
setBuiltinsRegistered
public void setBuiltinsRegistered(boolean builtinsRegistered) - Overrides:
setBuiltinsRegistered
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
getClientDynamicFeatures
- Overrides:
getClientDynamicFeatures
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
getEnabledFeatures
- Overrides:
getEnabledFeatures
in classResteasyProviderFactoryImpl
-
createResponseBuilder
public jakarta.ws.rs.core.Response.ResponseBuilder createResponseBuilder()- Overrides:
createResponseBuilder
in classResteasyProviderFactoryImpl
-
registerProviderInstance
Description copied from class:ResteasyProviderFactoryImpl
Register a @Provider object. Can be a MessageBodyReader/Writer or ExceptionMapper.- Overrides:
registerProviderInstance
in classResteasyProviderFactoryImpl
- Parameters:
provider
- provider instance
-
createStringParameterUnmarshaller
- Overrides:
createStringParameterUnmarshaller
in classResteasyProviderFactoryImpl
-
setInjectorFactory
- Overrides:
setInjectorFactory
in classResteasyProviderFactoryImpl
-
getInstances
- Specified by:
getInstances
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getInstances
in classResteasyProviderFactoryImpl
-
isRegistered
- Specified by:
isRegistered
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
isRegistered
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
getContextResolver
public <T> jakarta.ws.rs.ext.ContextResolver<T> getContextResolver(Class<T> contextType, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getContextResolver
in interfacejakarta.ws.rs.ext.Providers
- Overrides:
getContextResolver
in classResteasyProviderFactoryImpl
-
getMessageBodyReader
public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Description copied from class:ResteasyProviderFactoryImpl
Always returns server MBRs.- Specified by:
getMessageBodyReader
in interfacejakarta.ws.rs.ext.Providers
- Overrides:
getMessageBodyReader
in classResteasyProviderFactoryImpl
- Type Parameters:
T
- type- Parameters:
type
- the class of the object that is to be read.genericType
- the type of object to be produced. E.g. if the message body is to be converted into a method parameter, this will be the formal type of the method parameter as returned byClass.getGenericParameterTypes
.annotations
- an array of the annotations on the declaration of the artifact that will be initialized with the produced instance. E.g. if the message body is to be converted into a method parameter, this will be the annotations on that parameter returned byClass.getParameterAnnotations
.mediaType
- the media type of the data that will be read.- Returns:
- message reader
-
registerProvider
public void registerProvider(Class provider, Integer priorityOverride, boolean isBuiltin, Map<Class<?>, Integer> contracts) - Overrides:
registerProvider
in classResteasyProviderFactoryImpl
-
getContainerRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerRequestFilter> getContainerRequestFilterRegistry()- Overrides:
getContainerRequestFilterRegistry
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
isRegisterBuiltins
public boolean isRegisterBuiltins()- Overrides:
isRegisterBuiltins
in classResteasyProviderFactoryImpl
-
getClientReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getClientReaderInterceptorRegistry()- Overrides:
getClientReaderInterceptorRegistry
in classResteasyProviderFactoryImpl
-
setRegisterBuiltins
public void setRegisterBuiltins(boolean registerBuiltins) - Overrides:
setRegisterBuiltins
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
registerProvider
Description copied from class:ResteasyProviderFactoryImpl
Register a @Provider class. Can be a MessageBodyReader/Writer or ExceptionMapper.- Overrides:
registerProvider
in classResteasyProviderFactoryImpl
- Parameters:
provider
- provider classisBuiltin
- built-in
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getPropertyNames
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
createProviderInstance
Description copied from class:ResteasyProviderFactoryImpl
Create an instance of a class using provider allocation rules of the specification as well as the InjectorFactory only does constructor injection.- Overrides:
createProviderInstance
in classResteasyProviderFactoryImpl
- Type Parameters:
T
- type- Parameters:
clazz
- class- Returns:
- provider instance of type T
-
isRegistered
- Specified by:
isRegistered
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
isRegistered
in classResteasyProviderFactoryImpl
-
createEndpoint
public <T> T createEndpoint(jakarta.ws.rs.core.Application applicationConfig, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException Description copied from class:ResteasyProviderFactoryImpl
This is a spec method that is unsupported. It is an optional method anyways.- Overrides:
createEndpoint
in classResteasyProviderFactoryImpl
- Parameters:
applicationConfig
- applicationendpointType
- endpoint type- Returns:
- endpoint
- Throws:
IllegalArgumentException
- if applicationConfig is nullUnsupportedOperationException
- allways throw since this method is not supported
-
getMutableProperties
- Overrides:
getMutableProperties
in classResteasyProviderFactoryImpl
-
getServerDynamicFeatures
- Overrides:
getServerDynamicFeatures
in classResteasyProviderFactoryImpl
-
isEnabled
public boolean isEnabled(jakarta.ws.rs.core.Feature feature) - Specified by:
isEnabled
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
isEnabled
in classResteasyProviderFactoryImpl
-
getProperty
- Specified by:
getProperty
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getProperty
in classResteasyProviderFactoryImpl
-
getServerWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getServerWriterInterceptorRegistry()- Overrides:
getServerWriterInterceptorRegistry
in classResteasyProviderFactoryImpl
-
setProperties
- Overrides:
setProperties
in classResteasyProviderFactoryImpl
-
createUriBuilder
public jakarta.ws.rs.core.UriBuilder createUriBuilder()- Overrides:
createUriBuilder
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
injectedInstance
Description copied from class:ResteasyProviderFactoryImpl
Property and constructor injection using the InjectorFactory.- Overrides:
injectedInstance
in classResteasyProviderFactoryImpl
- Type Parameters:
T
- type- Parameters:
clazz
- class- Returns:
- instance of type T
-
getRuntimeType
public jakarta.ws.rs.RuntimeType getRuntimeType()- Specified by:
getRuntimeType
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getRuntimeType
in classResteasyProviderFactoryImpl
-
injectProperties
- Overrides:
injectProperties
in classResteasyProviderFactoryImpl
-
property
- Specified by:
property
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
property
in classResteasyProviderFactoryImpl
-
getClientWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getClientWriterInterceptorRegistry()- Overrides:
getClientWriterInterceptorRegistry
in classResteasyProviderFactoryImpl
-
getInjectorFactory
- Overrides:
getInjectorFactory
in classResteasyProviderFactoryImpl
-
getContracts
- Specified by:
getContracts
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getContracts
in classResteasyProviderFactoryImpl
-
getParamConverter
public jakarta.ws.rs.ext.ParamConverter getParamConverter(Class clazz, Type genericType, Annotation[] annotations) - Overrides:
getParamConverter
in classResteasyProviderFactoryImpl
-
getClientResponseFilters
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientResponseFilter> getClientResponseFilters()- Overrides:
getClientResponseFilters
in classResteasyProviderFactoryImpl
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
register
in classResteasyProviderFactoryImpl
-
getClasses
- Specified by:
getClasses
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getClasses
in classResteasyProviderFactoryImpl
-
isEnabled
- Specified by:
isEnabled
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
isEnabled
in classResteasyProviderFactoryImpl
-
registerProvider
- Overrides:
registerProvider
in classResteasyProviderFactoryImpl
-
addHeaderDelegate
- Overrides:
addHeaderDelegate
in classResteasyProviderFactoryImpl
-
registerProviderInstance
public void registerProviderInstance(Object provider, Map<Class<?>, Integer> contracts, Integer defaultPriority, boolean builtIn) - Overrides:
registerProviderInstance
in classResteasyProviderFactoryImpl
-
getProviderClasses
Description copied from class:ResteasyProviderFactoryImpl
Gets provide classes.- Overrides:
getProviderClasses
in classResteasyProviderFactoryImpl
- Returns:
- set of provider classes
-
toString
Description copied from class:ResteasyProviderFactoryImpl
Convert an object to a string. First try StringConverter then, object.ToString()- Overrides:
toString
in classResteasyProviderFactoryImpl
- Parameters:
object
- objectclazz
- classgenericType
- generic typeannotations
- array of annotation- Returns:
- string representation
-
getClientRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientRequestFilter> getClientRequestFilterRegistry()- Overrides:
getClientRequestFilterRegistry
in classResteasyProviderFactoryImpl
-
getProperties
- Specified by:
getProperties
in interfacejakarta.ws.rs.core.Configuration
- Overrides:
getProperties
in classResteasyProviderFactoryImpl
-
toHeaderString
Description copied from interface:HeaderValueProcessor
Convert an object to a header string. First try StringConverter, then HeaderDelegate, then object.toString().- Specified by:
toHeaderString
in interfaceHeaderValueProcessor
- Overrides:
toHeaderString
in classResteasyProviderFactoryImpl
- Parameters:
object
- header object- Returns:
- header string representation
-
createLinkBuilder
public jakarta.ws.rs.core.Link.Builder createLinkBuilder()- Overrides:
createLinkBuilder
in classResteasyProviderFactoryImpl
-
getProviderInstances
Description copied from class:ResteasyProviderFactoryImpl
Gets provider instances.- Overrides:
getProviderInstances
in classResteasyProviderFactoryImpl
- Returns:
- set of provider instances
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration()- Specified by:
getConfiguration
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
- Overrides:
getConfiguration
in classResteasyProviderFactoryImpl
-
getMessageBodyWriter
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Description copied from class:ResteasyProviderFactoryImpl
Always gets server MBW.- Specified by:
getMessageBodyWriter
in interfacejakarta.ws.rs.ext.Providers
- Overrides:
getMessageBodyWriter
in classResteasyProviderFactoryImpl
- Type Parameters:
T
- type- Parameters:
type
- the class of the object that is to be written.genericType
- the type of object to be written. E.g. if the message body is to be produced from a field, this will be the declared type of the field as returned byField.getGenericType
.annotations
- an array of the annotations on the declaration of the artifact that will be written. E.g. if the message body is to be produced from a field, this will be the annotations on that field returned byField.getDeclaredAnnotations
.mediaType
- the media type of the data that will be written.- Returns:
- message writer
-
getExceptionMapper
- Specified by:
getExceptionMapper
in interfacejakarta.ws.rs.ext.Providers
- Overrides:
getExceptionMapper
in classResteasyProviderFactoryImpl
-
getAsyncResponseProvider
- Overrides:
getAsyncResponseProvider
in classResteasyProviderFactoryImpl
-
getAsyncResponseProviders
- Overrides:
getAsyncResponseProviders
in classResteasyProviderFactoryImpl
-
getAsyncStreamProvider
- Overrides:
getAsyncStreamProvider
in classResteasyProviderFactoryImpl
-
getAsyncStreamProviders
- Overrides:
getAsyncStreamProviders
in classResteasyProviderFactoryImpl
-
createHeaderDelegate
public <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> tClass) - Overrides:
createHeaderDelegate
in classResteasyProviderFactoryImpl
-
getContextData
public <T> T getContextData(Class<T> rawType, Type genericType, Annotation[] annotations, boolean unwrapAsync) - Overrides:
getContextData
in classResteasyProviderFactoryImpl
-
getContextInjectors
- Overrides:
getContextInjectors
in classResteasyProviderFactoryImpl
-
getAsyncContextInjectors
- Overrides:
getAsyncContextInjectors
in classResteasyProviderFactoryImpl
-
getClientMessageBodyWriter
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getClientMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Overrides:
getClientMessageBodyWriter
in classResteasyProviderFactoryImpl
-
getClientMessageBodyReader
public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getClientMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Overrides:
getClientMessageBodyReader
in classResteasyProviderFactoryImpl
-
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 classResteasyProviderFactoryImpl
- Returns:
- an exception mapper which handles a
Throwable
-