org.glassfish.jersey.server.internal
Class ProcessingProviders

java.lang.Object
  extended by 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 (miroslav.fuksa at oracle.com)

Nested Class Summary
static class ProcessingProviders.Binder
          Processing provider binder.
 
Constructor Summary
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.
 
Method Summary
 Iterable<DynamicFeature> getDynamicFeatures()
          Get dynamic features.
 Iterable<RankedProvider<ReaderInterceptor>> getGlobalReaderInterceptors()
          Get global reader interceptors.
 Iterable<RankedProvider<ContainerRequestFilter>> getGlobalRequestFilters()
          Get global request filters.
 Iterable<RankedProvider<ContainerResponseFilter>> getGlobalResponseFilters()
          Get global response filters.
 Iterable<RankedProvider<WriterInterceptor>> getGlobalWriterInterceptors()
          Get global writer interceptors.
 MultivaluedMap<Class<? extends Annotation>,RankedProvider<ReaderInterceptor>> getNameBoundReaderInterceptors()
          Get name bound reader interceptor map.
 MultivaluedMap<RankedProvider<ReaderInterceptor>,Class<? extends Annotation>> getNameBoundReaderInterceptorsInverse()
          Get name bound reader interceptor inverse map.
 MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerRequestFilter>> getNameBoundRequestFilters()
          Get name bound request filters.
 MultivaluedMap<RankedProvider<ContainerRequestFilter>,Class<? extends Annotation>> getNameBoundRequestFiltersInverse()
          Get name bound request filter inverse map.
 MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerResponseFilter>> getNameBoundResponseFilters()
          Get name bound response filters.
 MultivaluedMap<RankedProvider<ContainerResponseFilter>,Class<? extends Annotation>> getNameBoundResponseFiltersInverse()
          Get name bound response filter inverse map.
 MultivaluedMap<Class<? extends Annotation>,RankedProvider<WriterInterceptor>> getNameBoundWriterInterceptors()
          Get name bound writer interceptor map.
 MultivaluedMap<RankedProvider<WriterInterceptor>,Class<? extends Annotation>> getNameBoundWriterInterceptorsInverse()
          Get name bound writer interceptor inverse map.
 List<RankedProvider<ContainerRequestFilter>> getPreMatchFilters()
          Get pre-matching request filters.
 Iterable<ReaderInterceptor> getSortedGlobalReaderInterceptors()
          Get global reader interceptors sorted by priority.
 Iterable<ContainerRequestFilter> getSortedGlobalRequestFilters()
          Get global request filters sorted by priority.
 Iterable<ContainerResponseFilter> getSortedGlobalResponseFilters()
          Get global response filters sorted by priority.
 Iterable<WriterInterceptor> getSortedGlobalWriterInterceptors()
          Get global writer interceptors sorted by priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 bound request filters.
nameBoundRequestFiltersInverse - Inverse map with name bound request filters.
nameBoundResponseFilters - Name bound response filters.
nameBoundResponseFiltersInverse - Inverse map with name bound response filters.
nameBoundReaderInterceptors - Name bound reader interceptors.
nameBoundReaderInterceptorsInverse - Inverse map with name bound reader interceptors.
nameBoundWriterInterceptors - Name bound writer interceptors.
nameBoundWriterInterceptorsInverse - Inverse map with name bound writer interceptors.
globalRequestFilters - Global request filters.
preMatchFilters - Pre-matching request filters.
globalResponseFilters - Global response filters.
globalReaderInterceptors - Global reader interceptors.
globalWriterInterceptors - Global writer interceptors.
dynamicFeatures - Dynamic features.
Method Detail

getNameBoundRequestFilters

public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerRequestFilter>> getNameBoundRequestFilters()
Get name bound request filters.

Returns:
Name bound request filter map. Keys are request filters and values are name bound annotations attached to these filters.

getNameBoundRequestFiltersInverse

public MultivaluedMap<RankedProvider<ContainerRequestFilter>,Class<? extends Annotation>> getNameBoundRequestFiltersInverse()
Get name bound request filter inverse map.

Returns:
Name bound request filter map. Keys are request filters and values are name bound annotations attached to these filters.

getNameBoundResponseFilters

public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ContainerResponseFilter>> getNameBoundResponseFilters()
Get name bound response filters.

Returns:
Name bound response filter map. Keys are response filters and values are name bound annotations attached to these filters.

getNameBoundResponseFiltersInverse

public MultivaluedMap<RankedProvider<ContainerResponseFilter>,Class<? extends Annotation>> getNameBoundResponseFiltersInverse()
Get name bound response filter inverse map.

Returns:
Name bound response filter map. Keys are response filters and values are name bound annotations attached to these filters.

getNameBoundReaderInterceptors

public MultivaluedMap<Class<? extends Annotation>,RankedProvider<ReaderInterceptor>> getNameBoundReaderInterceptors()
Get name bound reader interceptor map.

Returns:
Returns Name bound reader interceptor map. Keys are name bound annotations and 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 interceptor map. Keys are reader interceptors and values are name bound annotations attached to these interceptors.

getNameBoundWriterInterceptors

public MultivaluedMap<Class<? extends Annotation>,RankedProvider<WriterInterceptor>> getNameBoundWriterInterceptors()
Get name bound writer interceptor map.

Returns:
Returns Name bound writer interceptor map. Keys are name bound annotations and 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 interceptor map. Keys are reader interceptors and values are name bound annotations attached 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()
Get pre-matching request filters.

Returns:
Pre-matching request filter ranked providers.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.