Class ProcessingProviders
java.lang.Object
org.glassfish.jersey.server.internal.ProcessingProviders
Injectable encapsulating class containing processing providers like filters, interceptors,
name bound providers, dynamic features.
- Author:
- Miroslav Fuksa
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingProviders(MultivaluedMap<Class<? extends Annotation>, RankedProvider<ContainerRequestFilter>> nameBoundRequestFilters, MultivaluedMap<RankedProvider<ContainerRequestFilter>, Class<? extends Annotation>> nameBoundRequestFiltersInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<ContainerResponseFilter>> nameBoundResponseFilters, MultivaluedMap<RankedProvider<ContainerResponseFilter>, Class<? extends Annotation>> nameBoundResponseFiltersInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<ReaderInterceptor>> nameBoundReaderInterceptors, MultivaluedMap<RankedProvider<ReaderInterceptor>, Class<? extends Annotation>> nameBoundReaderInterceptorsInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<WriterInterceptor>> nameBoundWriterInterceptors, MultivaluedMap<RankedProvider<WriterInterceptor>, Class<? extends Annotation>> nameBoundWriterInterceptorsInverse, Iterable<RankedProvider<ContainerRequestFilter>> globalRequestFilters, List<RankedProvider<ContainerRequestFilter>> preMatchFilters, Iterable<RankedProvider<ContainerResponseFilter>> globalResponseFilters, Iterable<RankedProvider<ReaderInterceptor>> globalReaderInterceptors, Iterable<RankedProvider<WriterInterceptor>> globalWriterInterceptors, Iterable<DynamicFeature> dynamicFeatures) Creates new instance of the processing providers. -
Method Summary
Modifier and TypeMethodDescriptionGet dynamic features.Get global reader interceptors.Get global request filters.Get global response filters.Get global writer interceptors.MultivaluedMap<Class<? extends Annotation>,RankedProvider<ReaderInterceptor>> Get name bound reader interceptor map.MultivaluedMap<RankedProvider<ReaderInterceptor>,Class<? extends Annotation>> Get name bound reader interceptor inverse map.MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerRequestFilter>> Get name bound request filters.MultivaluedMap<RankedProvider<ContainerRequestFilter>,Class<? extends Annotation>> Get name bound request filter inverse map.MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerResponseFilter>> Get name bound response filters.MultivaluedMap<RankedProvider<ContainerResponseFilter>,Class<? extends Annotation>> Get name bound response filter inverse map.MultivaluedMap<Class<? extends Annotation>,RankedProvider<WriterInterceptor>> Get name bound writer interceptor map.MultivaluedMap<RankedProvider<WriterInterceptor>,Class<? extends Annotation>> Get name bound writer interceptor inverse map.Getpre-matchingrequest filters.Get global reader interceptors sorted by priority.Get global request filters sorted by priority.Get global response filters sorted by priority.Get global writer interceptors sorted by priority.
-
Constructor Details
-
ProcessingProviders
public ProcessingProviders(MultivaluedMap<Class<? extends Annotation>, RankedProvider<ContainerRequestFilter>> nameBoundRequestFilters, MultivaluedMap<RankedProvider<ContainerRequestFilter>, Class<? extends Annotation>> nameBoundRequestFiltersInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<ContainerResponseFilter>> nameBoundResponseFilters, MultivaluedMap<RankedProvider<ContainerResponseFilter>, Class<? extends Annotation>> nameBoundResponseFiltersInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<ReaderInterceptor>> nameBoundReaderInterceptors, MultivaluedMap<RankedProvider<ReaderInterceptor>, Class<? extends Annotation>> nameBoundReaderInterceptorsInverse, MultivaluedMap<Class<? extends Annotation>, RankedProvider<WriterInterceptor>> nameBoundWriterInterceptors, MultivaluedMap<RankedProvider<WriterInterceptor>, Class<? extends Annotation>> nameBoundWriterInterceptorsInverse, Iterable<RankedProvider<ContainerRequestFilter>> globalRequestFilters, List<RankedProvider<ContainerRequestFilter>> preMatchFilters, Iterable<RankedProvider<ContainerResponseFilter>> globalResponseFilters, Iterable<RankedProvider<ReaderInterceptor>> globalReaderInterceptors, Iterable<RankedProvider<WriterInterceptor>> globalWriterInterceptors, Iterable<DynamicFeature> dynamicFeatures) Creates new instance of the processing providers.- Parameters:
nameBoundRequestFilters- Name boundrequest filters.nameBoundRequestFiltersInverse- Inverse map with name boundrequest filters.nameBoundResponseFilters- Name boundresponse filters.nameBoundResponseFiltersInverse- Inverse map with name boundresponse filters.nameBoundReaderInterceptors- Name boundreader interceptors.nameBoundReaderInterceptorsInverse- Inverse map with name boundreader interceptors.nameBoundWriterInterceptors- Name boundwriter interceptors.nameBoundWriterInterceptorsInverse- Inverse map with name boundwriter interceptors.globalRequestFilters- Globalrequest filters.preMatchFilters-Pre-matchingrequest filters.globalResponseFilters- Globalresponse filters.globalReaderInterceptors- Globalreader interceptors.globalWriterInterceptors- Globalwriter interceptors.dynamicFeatures-Dynamic features.
-
-
Method Details
-
getNameBoundRequestFilters
public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerRequestFilter>> getNameBoundRequestFilters()Get name bound request filters.- Returns:
- Name bound
request filtermap. Keys are request filters and values arename bound annotationsattached to these filters.
-
getNameBoundRequestFiltersInverse
public MultivaluedMap<RankedProvider<ContainerRequestFilter>,Class<? extends Annotation>> getNameBoundRequestFiltersInverse()Get name bound request filter inverse map.- Returns:
- Name bound
request filtermap. Keys are request filters and values arename bound annotationsattached to these filters.
-
getNameBoundResponseFilters
public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerResponseFilter>> getNameBoundResponseFilters()Get name bound response filters.- Returns:
- Name bound
response filtermap. Keys are response filters and values arename bound annotationsattached to these filters.
-
getNameBoundResponseFiltersInverse
public MultivaluedMap<RankedProvider<ContainerResponseFilter>,Class<? extends Annotation>> getNameBoundResponseFiltersInverse()Get name bound response filter inverse map.- Returns:
- Name bound
response filtermap. Keys are response filters and values arename bound annotationsattached to these filters.
-
getNameBoundReaderInterceptors
public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ReaderInterceptor>> getNameBoundReaderInterceptors()Get name bound reader interceptor map.- Returns:
- Returns Name bound
reader interceptormap. Keys arename bound annotationsand values are providers which are annotated with these annotations.
-
getNameBoundReaderInterceptorsInverse
public MultivaluedMap<RankedProvider<ReaderInterceptor>,Class<? extends Annotation>> getNameBoundReaderInterceptorsInverse()Get name bound reader interceptor inverse map.- Returns:
- Name bound
reader interceptormap. Keys are reader interceptors and values arename bound annotationsattached to these interceptors.
-
getNameBoundWriterInterceptors
public MultivaluedMap<Class<? extends Annotation>,RankedProvider<WriterInterceptor>> getNameBoundWriterInterceptors()Get name bound writer interceptor map.- Returns:
- Returns Name bound
writer interceptormap. Keys arename bound annotationsand values are interceptors which are annotated with these annotations.
-
getNameBoundWriterInterceptorsInverse
public MultivaluedMap<RankedProvider<WriterInterceptor>,Class<? extends Annotation>> getNameBoundWriterInterceptorsInverse()Get name bound writer interceptor inverse map.- Returns:
- Name bound
writer interceptormap. Keys are reader interceptors and values arename bound annotationsattached to these interceptors.
-
getGlobalRequestFilters
Get global request filters.- Returns:
- Global request filter ranked providers.
-
getGlobalResponseFilters
Get global response filters.- Returns:
- Global response filter ranked providers.
-
getSortedGlobalRequestFilters
Get global request filters sorted by priority.- Returns:
- Sorted global request filters.
-
getSortedGlobalResponseFilters
Get global response filters sorted by priority.- Returns:
- Sorted global response filters.
-
getGlobalReaderInterceptors
Get global reader interceptors.- Returns:
- Global reader interceptors ranked providers.
-
getGlobalWriterInterceptors
Get global writer interceptors.- Returns:
- Global writer interceptors ranked providers.
-
getSortedGlobalReaderInterceptors
Get global reader interceptors sorted by priority.- Returns:
- Global reader interceptors.
-
getSortedGlobalWriterInterceptors
Get global writer interceptors sorted by priority.- Returns:
- Global writer interceptors.
-
getDynamicFeatures
Get dynamic features.- Returns:
- Dynamic features.
-
getPreMatchFilters
Getpre-matchingrequest filters.- Returns:
- Pre-matching request filter ranked providers.
-