Class ResteasyProviderFactoryImpl
java.lang.Object
jakarta.ws.rs.ext.RuntimeDelegate
org.jboss.resteasy.spi.ResteasyProviderFactory
org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl
- All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
,jakarta.ws.rs.core.Configuration
,jakarta.ws.rs.ext.Providers
,HeaderValueProcessor
- Direct Known Subclasses:
LocalResteasyProviderFactory
,ThreadLocalResteasyProviderFactory
public class ResteasyProviderFactoryImpl
extends ResteasyProviderFactory
implements jakarta.ws.rs.ext.Providers, HeaderValueProcessor, jakarta.ws.rs.core.Configurable<ResteasyProviderFactory>, jakarta.ws.rs.core.Configuration
- 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
Modifier and TypeFieldDescriptionprotected SnapshotMap
<Type, ContextInjector> protected boolean
protected boolean
protected boolean
protected SnapshotMap
<Class<?>, Map<Class<?>, Integer>> protected ClientHelper
protected SnapshotMap
<Type, ContextInjector> protected Map
<Class<?>, MediaTypeMap<SortedKey<jakarta.ws.rs.ext.ContextResolver>>> protected SnapshotSet
<jakarta.ws.rs.core.Feature> protected SnapshotMap
<Class<?>, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate> protected boolean
protected InjectorFactory
protected boolean
protected SnapshotMap
<String, Object> protected SnapshotSet
<Class<?>> protected SnapshotSet
<Object> protected boolean
protected ResourceBuilder
protected ServerHelper
protected Set
<ExtSortedKey<jakarta.ws.rs.ext.ParamConverterProvider>> protected StatisticsControllerImpl
protected SnapshotMap
<Class<?>, Class<? extends StringParameterUnmarshaller>> Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
-
Constructor Summary
ConstructorDescriptionResteasyProviderFactoryImpl
(boolean defaultExceptionManagerEnabled) Creates a new factory.ResteasyProviderFactoryImpl
(jakarta.ws.rs.RuntimeType runtimeType) Create factory optimized for a ClientResteasyProviderFactoryImpl
(jakarta.ws.rs.RuntimeType runtimeType, ResteasyProviderFactory parent) Create factory optimized for a specific RuntimeType that is a copy of its parent (shallow copy if possible) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextInjector
(Class provider) void
addContextResolver
(Class provider, boolean isBuiltin, int priority) void
addFeature
(Class<? extends jakarta.ws.rs.core.Feature> provider) void
addHeaderDelegate
(Class provider) void
addHeaderDelegate
(Class<? extends jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate> provider, Class<?> headerClass) void
addHeaderDelegate
(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) protected void
addHeaderDelegateIfAbsent
(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) void
addInjectorFactory
(Class provider) void
addParameterConverterProvider
(Class provider, boolean isBuiltin, int priority) void
addResourceClassProcessor
(Class<ResourceClassProcessor> processorClass, int priority) void
addStringParameterUnmarshaller
(Class<? extends StringParameterUnmarshaller> provider) 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 applicationConfig, Class<T> endpointType) This is a spec method that is unsupported.jakarta.ws.rs.core.EntityPart.Builder
createEntityPartBuilder
(String partName) <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> 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) protected MediaTypeMap
<SortedKey<jakarta.ws.rs.ext.MessageBodyReader>> <T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getClientMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) protected MediaTypeMap
<SortedKey<jakarta.ws.rs.ext.MessageBodyWriter>> 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) protected Map
<Class<?>, MediaTypeMap<SortedKey<jakarta.ws.rs.ext.ContextResolver>>> 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) <T extends Throwable>
jakarta.ws.rs.ext.ExceptionMapper<T> getExceptionMapperForClass
(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) getPossibleMessageBodyWritersMap
(Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType accept) getProperty
(String name) Gets provide classes.Gets provider instances.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) Deprecated.<T> jakarta.ws.rs.ext.MessageBodyReader
<T> getServerMessageBodyReader
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, RESTEasyTracingLogger tracingLogger) protected MediaTypeMap
<SortedKey<jakarta.ws.rs.ext.MessageBodyReader>> <T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getServerMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.<T> jakarta.ws.rs.ext.MessageBodyWriter
<T> getServerMessageBodyWriter
(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, RESTEasyTracingLogger tracingLogger) protected MediaTypeMap
<SortedKey<jakarta.ws.rs.ext.MessageBodyWriter>> JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.ReaderInterceptor> JaxrsInterceptorRegistry
<jakarta.ws.rs.ext.WriterInterceptor> protected Set
<ExtSortedKey<jakarta.ws.rs.ext.ParamConverterProvider>> protected Map
<Class<?>, Class<? extends StringParameterUnmarshaller>> 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) protected void
void
protected void
initializeCommon
(ResteasyProviderFactoryImpl parent, boolean lockSnapshots, boolean snapFirst) <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
Indicates whether the default exception manager is enabled.boolean
isEnabled
(jakarta.ws.rs.core.Feature feature) boolean
protected boolean
boolean
isReactive
(Class<?> clazz) boolean
boolean
isRegistered
(Class<?> componentClass) boolean
isRegistered
(Object component) void
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
-
Field Details
-
clientHelper
-
serverHelper
-
providerClasses
-
providerInstances
-
classContracts
-
properties
-
headerDelegates
-
contextInjectors
-
asyncContextInjectors
-
stringParameterUnmarshallers
protected SnapshotMap<Class<?>,Class<? extends StringParameterUnmarshaller>> stringParameterUnmarshallers -
enabledFeatures
-
attachedContextResolvers
protected boolean attachedContextResolvers -
contextResolvers
-
attachedParamConverterProviders
protected boolean attachedParamConverterProviders -
sortedParamConverterProviders
-
alreadyEstablishedNullHeaderDelegate
-
builtinsRegistered
protected boolean builtinsRegistered -
registerBuiltins
protected boolean registerBuiltins -
injectorFactory
-
resourceBuilder
-
initialized
protected boolean initialized -
lockSnapshots
protected boolean lockSnapshots -
statisticsController
-
-
Constructor Details
-
ResteasyProviderFactoryImpl
public ResteasyProviderFactoryImpl() -
ResteasyProviderFactoryImpl
public ResteasyProviderFactoryImpl(boolean defaultExceptionManagerEnabled) Creates a new factory.- Parameters:
defaultExceptionManagerEnabled
-true
if the default exception manager should be enabled
-
ResteasyProviderFactoryImpl
public ResteasyProviderFactoryImpl(jakarta.ws.rs.RuntimeType runtimeType) Create factory optimized for a Client- Parameters:
runtimeType
-
-
ResteasyProviderFactoryImpl
public ResteasyProviderFactoryImpl(jakarta.ws.rs.RuntimeType runtimeType, ResteasyProviderFactory parent) Create factory optimized for a specific RuntimeType that is a copy of its parent (shallow copy if possible)- Parameters:
runtimeType
-parent
-
-
-
Method Details
-
registerBuiltin
protected void registerBuiltin()- Specified by:
registerBuiltin
in classResteasyProviderFactory
-
initializeCommon
protected void initializeCommon(ResteasyProviderFactoryImpl parent, boolean lockSnapshots, boolean snapFirst) -
initialize
protected void initialize() -
lockSnapshots
public void lockSnapshots() -
getServerDynamicFeatures
- Specified by:
getServerDynamicFeatures
in classResteasyProviderFactory
-
getClientDynamicFeatures
- Specified by:
getClientDynamicFeatures
in classResteasyProviderFactory
-
getServerMessageBodyReaders
protected MediaTypeMap<SortedKey<jakarta.ws.rs.ext.MessageBodyReader>> getServerMessageBodyReaders() -
getServerMessageBodyWriters
protected MediaTypeMap<SortedKey<jakarta.ws.rs.ext.MessageBodyWriter>> getServerMessageBodyWriters() -
getClientMessageBodyReaders
protected MediaTypeMap<SortedKey<jakarta.ws.rs.ext.MessageBodyReader>> getClientMessageBodyReaders() -
getClientMessageBodyWriters
protected MediaTypeMap<SortedKey<jakarta.ws.rs.ext.MessageBodyWriter>> getClientMessageBodyWriters() -
getAsyncResponseProviders
- Specified by:
getAsyncResponseProviders
in classResteasyProviderFactory
-
getAsyncStreamProviders
- Specified by:
getAsyncStreamProviders
in classResteasyProviderFactory
-
getAsyncClientResponseProviders
- Specified by:
getAsyncClientResponseProviders
in classResteasyProviderFactory
-
getContextInjectors
- Specified by:
getContextInjectors
in classResteasyProviderFactory
-
getAsyncContextInjectors
- Specified by:
getAsyncContextInjectors
in classResteasyProviderFactory
-
getContextResolvers
protected Map<Class<?>,MediaTypeMap<SortedKey<jakarta.ws.rs.ext.ContextResolver>>> getContextResolvers() -
getSortedParamConverterProviders
protected Set<ExtSortedKey<jakarta.ws.rs.ext.ParamConverterProvider>> getSortedParamConverterProviders() -
getStringParameterUnmarshallers
protected Map<Class<?>,Class<? extends StringParameterUnmarshaller>> getStringParameterUnmarshallers() -
getProviderClasses
Gets provide classes.- Specified by:
getProviderClasses
in classResteasyProviderFactory
- Returns:
- set of provider classes
-
getProviderInstances
Gets provider instances.- Specified by:
getProviderInstances
in classResteasyProviderFactory
- Returns:
- set of provider instances
-
getClassContracts
-
getContextData
public <T> T getContextData(Class<T> rawType, Type genericType, Annotation[] annotations, boolean unwrapAsync) - Specified by:
getContextData
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
-
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
-
createHeaderDelegate
public <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> tClass) - Specified by:
createHeaderDelegate
in classjakarta.ws.rs.ext.RuntimeDelegate
-
getHeaderDelegates
-
addHeaderDelegate
- Specified by:
addHeaderDelegate
in classResteasyProviderFactory
-
addHeaderDelegateIfAbsent
protected void addHeaderDelegateIfAbsent(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) -
getServerMessageBodyReader
@Deprecated public <T> jakarta.ws.rs.ext.MessageBodyReader<T> getServerMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.- Specified by:
getServerMessageBodyReader
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, RESTEasyTracingLogger tracingLogger) -
getMessageBodyReader
public <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.- Specified by:
getMessageBodyReader
in interfacejakarta.ws.rs.ext.Providers
- 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
-
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
-
addStringParameterUnmarshaller
-
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
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
-
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
- Parameters:
object
- header object- Returns:
- header string representation
-
getHeaderDelegate
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
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
-
getMutableProviderClasses
-
addHeaderDelegate
-
getClientHelper
-
getServerHelper
-
addHeaderDelegate
-
addFeature
-
addInjectorFactory
public void addInjectorFactory(Class provider) throws InstantiationException, IllegalAccessException -
addContextInjector
-
addContextResolver
-
addParameterConverterProvider
-
registerProviderInstance
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
-
getExceptionMapper
-
getExceptionMapperForClass
-
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
@Deprecated public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getServerMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) Deprecated.- Specified by:
getServerMessageBodyWriter
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, RESTEasyTracingLogger tracingLogger) -
getMessageBodyWriter
public <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.- Specified by:
getMessageBodyWriter
in interfacejakarta.ws.rs.ext.Providers
- 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
-
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
-
createEndpoint
public <T> T createEndpoint(jakarta.ws.rs.core.Application applicationConfig, Class<T> endpointType) throws IllegalArgumentException, UnsupportedOperationException This is a spec method that is unsupported. It is an optional method anyways.- Specified by:
createEndpoint
in classjakarta.ws.rs.ext.RuntimeDelegate
- Parameters:
applicationConfig
- applicationendpointType
- endpoint type- Returns:
- endpoint
- Throws:
IllegalArgumentException
- if applicationConfig is nullUnsupportedOperationException
- allways throw since this method is not supported
-
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
-
createProviderInstance
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
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
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
-
getMutableProperties
- Specified by:
getMutableProperties
in classResteasyProviderFactory
-
getProperties
-
getProperty
-
setProperties
- Specified by:
setProperties
in classResteasyProviderFactory
-
property
- Specified by:
property
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getEnabledFeatures
- Specified by:
getEnabledFeatures
in classResteasyProviderFactory
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration()- Specified by:
getConfiguration
in interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getRuntimeType
public jakarta.ws.rs.RuntimeType getRuntimeType()- Specified by:
getRuntimeType
in interfacejakarta.ws.rs.core.Configuration
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacejakarta.ws.rs.core.Configuration
-
isEnabled
public boolean isEnabled(jakarta.ws.rs.core.Feature feature) - Specified by:
isEnabled
in interfacejakarta.ws.rs.core.Configuration
-
isEnabled
- Specified by:
isEnabled
in interfacejakarta.ws.rs.core.Configuration
-
isRegistered
- Specified by:
isRegistered
in interfacejakarta.ws.rs.core.Configuration
-
isRegistered
- Specified by:
isRegistered
in interfacejakarta.ws.rs.core.Configuration
-
getContracts
-
getClasses
-
getInstances
-
createLinkBuilder
public jakarta.ws.rs.core.Link.Builder createLinkBuilder()- Specified by:
createLinkBuilder
in classjakarta.ws.rs.ext.RuntimeDelegate
-
hasProperty
- Specified by:
hasProperty
in interfacejakarta.ws.rs.core.Configuration
-
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
-
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
-
addResourceClassProcessor
-
getResourceBuilder
- Specified by:
getResourceBuilder
in classResteasyProviderFactory
-
getContextData
- Specified by:
getContextData
in classResteasyProviderFactory
-
initializeClientProviders
- Specified by:
initializeClientProviders
in classResteasyProviderFactory
-
injectProperties
- Specified by:
injectProperties
in classResteasyProviderFactory
-
injectProperties
- Specified by:
injectProperties
in classResteasyProviderFactory
-
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
-
isDefaultExceptionManagerEnabled
public boolean isDefaultExceptionManagerEnabled()Indicates whether the default exception manager is enabled.- Returns:
true
if the default exception is enabled, otherwisefalse
-