Class ProcessingProviders
- java.lang.Object
-
- org.glassfish.jersey.server.internal.ProcessingProviders
-
public class ProcessingProviders extends Object
Injectable encapsulating class containing processing providers like filters, interceptors, name bound providers, dynamic features.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
-
Method Summary
-
-
-
Constructor Detail
-
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 Detail
-
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
public Iterable<RankedProvider<ContainerRequestFilter>> getGlobalRequestFilters()
Get global request filters.- Returns:
- Global request filter ranked providers.
-
getGlobalResponseFilters
public Iterable<RankedProvider<ContainerResponseFilter>> getGlobalResponseFilters()
Get global response filters.- Returns:
- Global response filter ranked providers.
-
getSortedGlobalRequestFilters
public Iterable<ContainerRequestFilter> getSortedGlobalRequestFilters()
Get global request filters sorted by priority.- Returns:
- Sorted global request filters.
-
getSortedGlobalResponseFilters
public Iterable<ContainerResponseFilter> getSortedGlobalResponseFilters()
Get global response filters sorted by priority.- Returns:
- Sorted global response filters.
-
getGlobalReaderInterceptors
public Iterable<RankedProvider<ReaderInterceptor>> getGlobalReaderInterceptors()
Get global reader interceptors.- Returns:
- Global reader interceptors ranked providers.
-
getGlobalWriterInterceptors
public Iterable<RankedProvider<WriterInterceptor>> getGlobalWriterInterceptors()
Get global writer interceptors.- Returns:
- Global writer interceptors ranked providers.
-
getSortedGlobalReaderInterceptors
public Iterable<ReaderInterceptor> getSortedGlobalReaderInterceptors()
Get global reader interceptors sorted by priority.- Returns:
- Global reader interceptors.
-
getSortedGlobalWriterInterceptors
public Iterable<WriterInterceptor> getSortedGlobalWriterInterceptors()
Get global writer interceptors sorted by priority.- Returns:
- Global writer interceptors.
-
getDynamicFeatures
public Iterable<DynamicFeature> getDynamicFeatures()
Get dynamic features.- Returns:
- Dynamic features.
-
getPreMatchFilters
public List<RankedProvider<ContainerRequestFilter>> getPreMatchFilters()
Getpre-matchingrequest filters.- Returns:
- Pre-matching request filter ranked providers.
-
-