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
FieldsModifier and TypeFieldDescriptionprotected SnapshotMap<Type, ContextInjector> protected booleanprotected booleanprotected booleanprotected SnapshotMap<Class<?>, Map<Class<?>, Integer>> protected ClientHelperprotected 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 booleanprotected InjectorFactoryprotected booleanprotected SnapshotMap<String, Object> protected SnapshotSet<Class<?>> protected SnapshotSet<Object> protected booleanprotected ResourceBuilderprotected ServerHelperprotected Set<ExtSortedKey<jakarta.ws.rs.ext.ParamConverterProvider>> protected StatisticsControllerImplprotected SnapshotMap<Class<?>, Class<? extends StringParameterUnmarshaller>> Fields inherited from class jakarta.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionResteasyProviderFactoryImpl(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 TypeMethodDescriptionvoidaddContextInjector(Class provider) voidaddContextResolver(Class provider, boolean isBuiltin, int priority) voidaddFeature(Class<? extends jakarta.ws.rs.core.Feature> provider) voidaddHeaderDelegate(Class provider) voidaddHeaderDelegate(Class<? extends jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate> provider, Class<?> headerClass) voidaddHeaderDelegate(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) protected voidaddHeaderDelegateIfAbsent(Class clazz, jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate header) voidaddInjectorFactory(Class provider) voidaddParameterConverterProvider(Class provider, boolean isBuiltin, int priority) voidaddResourceClassProcessor(Class<ResourceClassProcessor> processorClass, int priority) voidaddStringParameterUnmarshaller(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> TcreateEndpoint(jakarta.ws.rs.core.Application applicationConfig, Class<T> endpointType) This is a spec method that is unsupported.jakarta.ws.rs.core.EntityPart.BuildercreateEntityPartBuilder(String partName) <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> tClass) jakarta.ws.rs.core.Link.Builder<T> TcreateProviderInstance(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.UriBuilderjakarta.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.MediaTypegetConcreteMediaTypeFromMessageBodyWriters(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) jakarta.ws.rs.core.ConfigurationJaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerRequestFilter> JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerResponseFilter> <T> TgetContextData(Class<T> type) <T> TgetContextData(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.HeaderDelegategetHeaderDelegate(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.ParamConvertergetParamConverter(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.booleanhasProperty(String name) protected voidvoidprotected voidinitializeCommon(ResteasyProviderFactoryImpl parent, boolean lockSnapshots, boolean snapFirst) <T> TinjectedInstance(Class<? extends T> clazz) Property and constructor injection using the InjectorFactory.<T> TinjectedInstance(Class<? extends T> clazz, HttpRequest request, HttpResponse response) Property and constructor injection using the InjectorFactory.voidinjectProperties(Object obj) voidinjectProperties(Object obj, HttpRequest request, HttpResponse response) booleanbooleanIndicates whether the default exception manager is enabled.booleanisEnabled(jakarta.ws.rs.core.Feature feature) booleanprotected booleanbooleanisReactive(Class<?> clazz) booleanbooleanisRegistered(Class<?> componentClass) booleanisRegistered(Object component) voidprotected voidvoidregisterProvider(Class provider) voidregisterProvider(Class provider, boolean isBuiltin) Register a @Provider class.voidregisterProvider(Class provider, Integer priorityOverride, boolean isBuiltin, Map<Class<?>, Integer> contracts) voidregisterProviderInstance(Object provider) Register a @Provider object.voidregisterProviderInstance(Object provider, Map<Class<?>, Integer> contracts, Integer priorityOverride, boolean builtIn) voidsetBuiltinsRegistered(boolean builtinsRegistered) voidsetInjectorFactory(InjectorFactory injectorFactory) setProperties(Map<String, Object> properties) voidsetRegisterBuiltins(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, setRegisterBuiltinByDefaultMethods 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-trueif 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:
registerBuiltinin classResteasyProviderFactory
-
initializeCommon
protected void initializeCommon(ResteasyProviderFactoryImpl parent, boolean lockSnapshots, boolean snapFirst) -
initialize
protected void initialize() -
lockSnapshots
public void lockSnapshots() -
getServerDynamicFeatures
- Specified by:
getServerDynamicFeaturesin classResteasyProviderFactory
-
getClientDynamicFeatures
- Specified by:
getClientDynamicFeaturesin 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:
getAsyncResponseProvidersin classResteasyProviderFactory
-
getAsyncStreamProviders
- Specified by:
getAsyncStreamProvidersin classResteasyProviderFactory
-
getAsyncClientResponseProviders
- Specified by:
getAsyncClientResponseProvidersin classResteasyProviderFactory
-
getContextInjectors
- Specified by:
getContextInjectorsin classResteasyProviderFactory
-
getAsyncContextInjectors
- Specified by:
getAsyncContextInjectorsin 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:
getProviderClassesin classResteasyProviderFactory- Returns:
- set of provider classes
-
getProviderInstances
Gets provider instances.- Specified by:
getProviderInstancesin classResteasyProviderFactory- Returns:
- set of provider instances
-
getClassContracts
-
getContextData
public <T> T getContextData(Class<T> rawType, Type genericType, Annotation[] annotations, boolean unwrapAsync) - Specified by:
getContextDatain classResteasyProviderFactory
-
isRegisterBuiltins
public boolean isRegisterBuiltins()- Specified by:
isRegisterBuiltinsin classResteasyProviderFactory
-
setRegisterBuiltins
public void setRegisterBuiltins(boolean registerBuiltins) - Specified by:
setRegisterBuiltinsin classResteasyProviderFactory
-
getInjectorFactory
- Specified by:
getInjectorFactoryin classResteasyProviderFactory
-
setInjectorFactory
- Specified by:
setInjectorFactoryin classResteasyProviderFactory
-
getServerReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getServerReaderInterceptorRegistry()- Specified by:
getServerReaderInterceptorRegistryin classResteasyProviderFactory
-
getServerWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getServerWriterInterceptorRegistry()- Specified by:
getServerWriterInterceptorRegistryin classResteasyProviderFactory
-
getContainerRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerRequestFilter> getContainerRequestFilterRegistry()- Specified by:
getContainerRequestFilterRegistryin classResteasyProviderFactory
-
getContainerResponseFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.container.ContainerResponseFilter> getContainerResponseFilterRegistry()- Specified by:
getContainerResponseFilterRegistryin classResteasyProviderFactory
-
getClientReaderInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.ReaderInterceptor> getClientReaderInterceptorRegistry()- Specified by:
getClientReaderInterceptorRegistryin classResteasyProviderFactory
-
getClientWriterInterceptorRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.ext.WriterInterceptor> getClientWriterInterceptorRegistry()- Specified by:
getClientWriterInterceptorRegistryin classResteasyProviderFactory
-
getClientRequestFilterRegistry
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientRequestFilter> getClientRequestFilterRegistry()- Specified by:
getClientRequestFilterRegistryin classResteasyProviderFactory
-
getClientResponseFilters
public JaxrsInterceptorRegistry<jakarta.ws.rs.client.ClientResponseFilter> getClientResponseFilters()- Specified by:
getClientResponseFiltersin classResteasyProviderFactory
-
isBuiltinsRegistered
public boolean isBuiltinsRegistered()- Specified by:
isBuiltinsRegisteredin classResteasyProviderFactory
-
setBuiltinsRegistered
public void setBuiltinsRegistered(boolean builtinsRegistered) - Specified by:
setBuiltinsRegisteredin classResteasyProviderFactory
-
createUriBuilder
public jakarta.ws.rs.core.UriBuilder createUriBuilder()- Specified by:
createUriBuilderin classjakarta.ws.rs.ext.RuntimeDelegate
-
createResponseBuilder
public jakarta.ws.rs.core.Response.ResponseBuilder createResponseBuilder()- Specified by:
createResponseBuilderin classjakarta.ws.rs.ext.RuntimeDelegate
-
createVariantListBuilder
public jakarta.ws.rs.core.Variant.VariantListBuilder createVariantListBuilder()- Specified by:
createVariantListBuilderin classjakarta.ws.rs.ext.RuntimeDelegate
-
createHeaderDelegate
public <T> jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate<T> createHeaderDelegate(Class<T> tClass) - Specified by:
createHeaderDelegatein classjakarta.ws.rs.ext.RuntimeDelegate
-
getHeaderDelegates
-
addHeaderDelegate
- Specified by:
addHeaderDelegatein 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:
getServerMessageBodyReaderin 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:
getMessageBodyReaderin 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:
getClientMessageBodyReaderin classResteasyProviderFactory
-
addStringParameterUnmarshaller
-
getContextResolvers
public List<jakarta.ws.rs.ext.ContextResolver> getContextResolvers(Class<?> clazz, jakarta.ws.rs.core.MediaType type) - Specified by:
getContextResolversin classResteasyProviderFactory
-
getParamConverter
public jakarta.ws.rs.ext.ParamConverter getParamConverter(Class clazz, Type genericType, Annotation[] annotations) - Specified by:
getParamConverterin classResteasyProviderFactory
-
createStringParameterUnmarshaller
- Specified by:
createStringParameterUnmarshallerin classResteasyProviderFactory
-
registerProvider
- Specified by:
registerProviderin classResteasyProviderFactory
-
toString
Convert an object to a string. First try StringConverter then, object.ToString()- Specified by:
toStringin classResteasyProviderFactory- Parameters:
object- objectclazz- classgenericType- generic typeannotations- array of annotation- Returns:
- string representation
-
toHeaderString
Description copied from interface:HeaderValueProcessorConvert an object to a header string. First try StringConverter, then HeaderDelegate, then object.toString().- Specified by:
toHeaderStringin 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:
getHeaderDelegatein classResteasyProviderFactory- Parameters:
aClass- class of the header- Returns:
- header delegate
-
registerProvider
Register a @Provider class. Can be a MessageBodyReader/Writer or ExceptionMapper.- Specified by:
registerProviderin classResteasyProviderFactory- Parameters:
provider- provider classisBuiltin- built-in
-
registerProvider
public void registerProvider(Class provider, Integer priorityOverride, boolean isBuiltin, Map<Class<?>, Integer> contracts) - Specified by:
registerProviderin 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:
registerProviderInstancein classResteasyProviderFactory- Parameters:
provider- provider instance
-
registerProviderInstance
public void registerProviderInstance(Object provider, Map<Class<?>, Integer> contracts, Integer priorityOverride, boolean builtIn) - Specified by:
registerProviderInstancein classResteasyProviderFactory
-
getExceptionMapper
- Specified by:
getExceptionMapperin interfacejakarta.ws.rs.ext.Providers
-
getExceptionMapperForClass
-
getAsyncResponseProvider
- Specified by:
getAsyncResponseProviderin classResteasyProviderFactory
-
getAsyncClientResponseProvider
- Specified by:
getAsyncClientResponseProviderin classResteasyProviderFactory
-
getAsyncStreamProvider
- Specified by:
getAsyncStreamProviderin classResteasyProviderFactory
-
getConcreteMediaTypeFromMessageBodyWriters
public jakarta.ws.rs.core.MediaType getConcreteMediaTypeFromMessageBodyWriters(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getConcreteMediaTypeFromMessageBodyWritersin 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:
getPossibleMessageBodyWritersMapin 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:
getServerMessageBodyWriterin 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:
getMessageBodyWriterin 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:
getClientMessageBodyWriterin 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:
createEndpointin 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:
getContextResolverin 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:
createProviderInstancein classResteasyProviderFactory- Type Parameters:
T- type- Parameters:
clazz- class- Returns:
- provider instance of type T
-
injectedInstance
Property and constructor injection using the InjectorFactory.- Specified by:
injectedInstancein classResteasyProviderFactory- Type Parameters:
T- type- Parameters:
clazz- class- Returns:
- instance of type T
-
injectedInstance
Property and constructor injection using the InjectorFactory.- Specified by:
injectedInstancein classResteasyProviderFactory- Type Parameters:
T- type- Parameters:
clazz- classrequest- http requestresponse- http response- Returns:
- instance of type T
-
getMutableProperties
- Specified by:
getMutablePropertiesin classResteasyProviderFactory
-
getProperties
- Specified by:
getPropertiesin interfacejakarta.ws.rs.core.Configuration
-
getProperty
- Specified by:
getPropertyin interfacejakarta.ws.rs.core.Configuration
-
setProperties
- Specified by:
setPropertiesin classResteasyProviderFactory
-
property
- Specified by:
propertyin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getEnabledFeatures
- Specified by:
getEnabledFeaturesin classResteasyProviderFactory
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
register
- Specified by:
registerin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration()- Specified by:
getConfigurationin interfacejakarta.ws.rs.core.Configurable<ResteasyProviderFactory>
-
getRuntimeType
public jakarta.ws.rs.RuntimeType getRuntimeType()- Specified by:
getRuntimeTypein interfacejakarta.ws.rs.core.Configuration
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacejakarta.ws.rs.core.Configuration
-
isEnabled
public boolean isEnabled(jakarta.ws.rs.core.Feature feature) - Specified by:
isEnabledin interfacejakarta.ws.rs.core.Configuration
-
isEnabled
- Specified by:
isEnabledin interfacejakarta.ws.rs.core.Configuration
-
isRegistered
- Specified by:
isRegisteredin interfacejakarta.ws.rs.core.Configuration
-
isRegistered
- Specified by:
isRegisteredin interfacejakarta.ws.rs.core.Configuration
-
getContracts
- Specified by:
getContractsin interfacejakarta.ws.rs.core.Configuration
-
getClasses
- Specified by:
getClassesin interfacejakarta.ws.rs.core.Configuration
-
getInstances
- Specified by:
getInstancesin interfacejakarta.ws.rs.core.Configuration
-
createLinkBuilder
public jakarta.ws.rs.core.Link.Builder createLinkBuilder()- Specified by:
createLinkBuilderin classjakarta.ws.rs.ext.RuntimeDelegate
-
hasProperty
- Specified by:
hasPropertyin interfacejakarta.ws.rs.core.Configuration
-
createConfigurationBuilder
public jakarta.ws.rs.SeBootstrap.Configuration.Builder createConfigurationBuilder()- Specified by:
createConfigurationBuilderin 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:
bootstrapin 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:
bootstrapin classjakarta.ws.rs.ext.RuntimeDelegate
-
createEntityPartBuilder
public jakarta.ws.rs.core.EntityPart.Builder createEntityPartBuilder(String partName) throws IllegalArgumentException - Specified by:
createEntityPartBuilderin 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:
getRxInvokerProviderin classResteasyProviderFactory
-
getRxInvokerProviderFromReactiveClass
public jakarta.ws.rs.client.RxInvokerProvider<?> getRxInvokerProviderFromReactiveClass(Class<?> clazz) - Specified by:
getRxInvokerProviderFromReactiveClassin classResteasyProviderFactory
-
isReactive
- Specified by:
isReactivein classResteasyProviderFactory
-
addResourceClassProcessor
-
getResourceBuilder
- Specified by:
getResourceBuilderin classResteasyProviderFactory
-
getContextData
- Specified by:
getContextDatain classResteasyProviderFactory
-
initializeClientProviders
- Specified by:
initializeClientProvidersin classResteasyProviderFactory
-
injectProperties
- Specified by:
injectPropertiesin classResteasyProviderFactory
-
injectProperties
- Specified by:
injectPropertiesin classResteasyProviderFactory
-
getStatisticsController
- Specified by:
getStatisticsControllerin classResteasyProviderFactory
-
getThrowableExceptionMapper
Description copied from class:ResteasyProviderFactoryReturns an exception mapper which handles the generic throwable which is typically the default exception mapper.- Overrides:
getThrowableExceptionMapperin classResteasyProviderFactory- Returns:
- an exception mapper which handles a
Throwable
-
isOnServer
protected boolean isOnServer()- Specified by:
isOnServerin classResteasyProviderFactory
-
isDefaultExceptionManagerEnabled
public boolean isDefaultExceptionManagerEnabled()Indicates whether the default exception manager is enabled.- Returns:
trueif the default exception is enabled, otherwisefalse
-