@Inject public ManagedFilterPipeline( Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { this.injector = injector; this.servletPipeline = servletPipeline; this.servletContext = servletContext; this.filterDefinitions = collectFilterDefinitions(injector); }
@Override public void dispatch( ServletRequest request, ServletResponse response, FilterChain proceedingFilterChain) throws IOException, ServletException { //lazy init of filter pipeline (OK by the servlet specification). This is needed //in order for us not to force users to create a GuiceServletContextListener subclass. if (!initialized) { initPipeline(servletContext.get()); } //obtain the servlet pipeline to dispatch against new FilterChainInvocation(filterDefinitions, servletPipeline, proceedingFilterChain) .doFilter(withDispatcher(request, servletPipeline), response); }
@Inject DynamicFilterPipeline(final DynamicServletPipeline servletPipeline, final BeanLocator locator) { super(DUMMY_INJECTOR, servletPipeline, null); this.servletPipeline = servletPipeline; this.locator = locator; try { // disable lazy init as we don't use it super.initPipeline(null /* unused */); } catch (final Exception e) { throw new IllegalStateException(e); } filterDefinitions = new EntryListAdapter<>(locator.locate(Key.get(FilterDefinition.class))); }
@Inject DynamicFilterPipeline(final DynamicServletPipeline servletPipeline, final BeanLocator locator) { super(DUMMY_INJECTOR, servletPipeline, null); this.servletPipeline = servletPipeline; this.locator = locator; try { // disable lazy init as we don't use it super.initPipeline(null /* unused */); } catch (final Exception e) { throw new IllegalStateException(e); } filterDefinitions = new EntryListAdapter<>(locator.locate(Key.get(FilterDefinition.class))); }
public void dispatch(ServletRequest request, ServletResponse response, FilterChain proceedingFilterChain) throws IOException, ServletException { //lazy init of filter pipeline (OK by the servlet specification). This is needed //in order for us not to force users to create a GuiceServletContextListener subclass. if (!initialized) { initPipeline(servletContext.get()); } //obtain the servlet pipeline to dispatch against new FilterChainInvocation(filterDefinitions, servletPipeline, proceedingFilterChain) .doFilter(withDispatcher(request, servletPipeline), response); }
@Inject public ManagedFilterPipeline(Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { this.injector = injector; this.servletPipeline = servletPipeline; this.servletContext = servletContext; this.filterDefinitions = collectFilterDefinitions(injector); }
public void dispatch(ServletRequest request, ServletResponse response, FilterChain proceedingFilterChain) throws IOException, ServletException { //lazy init of filter pipeline (OK by the servlet specification). This is needed //in order for us not to force users to create a GuiceServletContextListener subclass. if (!initialized) { initPipeline(servletContext.get()); } //obtain the servlet pipeline to dispatch against new FilterChainInvocation(filterDefinitions, servletPipeline, proceedingFilterChain) .doFilter(withDispatcher(request, servletPipeline), response); }
@Inject public ManagedFilterPipeline(Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { this.injector = injector; this.servletPipeline = servletPipeline; this.servletContext = servletContext; this.filterDefinitions = collectFilterDefinitions(injector); }
public void dispatch(ServletRequest request, ServletResponse response, FilterChain proceedingFilterChain) throws IOException, ServletException { //lazy init of filter pipeline (OK by the servlet specification). This is needed //in order for us not to force users to create a GuiceServletContextListener subclass. if (!initialized) { initPipeline(servletContext.get()); } //obtain the servlet pipeline to dispatch against new FilterChainInvocation(filterDefinitions, servletPipeline, proceedingFilterChain) .doFilter(withDispatcher(request, servletPipeline), response); }
@Inject public ManagedFilterPipeline( Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { super(injector, servletPipeline, servletContext); this.filterDefinitions = collectFilterDefinitions(injector); }
@Override public void dispatch( ServletRequest request, ServletResponse response, FilterChain proceedingFilterChain) throws IOException, ServletException { //lazy init of filter pipeline (OK by the servlet specification). This is needed //in order for us not to force users to create a GuiceServletContextListener subclass. if (!initialized) { initPipeline(servletContext.get()); } //obtain the servlet pipeline to dispatch against new FilterChainInvocation(filterDefinitions, servletPipeline, proceedingFilterChain) .doFilter(withDispatcher(request, servletPipeline), response); }
@Inject public ManagedFilterPipeline( Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { this.injector = injector; this.servletPipeline = servletPipeline; this.servletContext = servletContext; this.filterDefinitions = collectFilterDefinitions(injector); }
@Inject public ManagedFilterPipeline(Injector injector, ManagedServletPipeline servletPipeline, Provider<ServletContext> servletContext) { this.injector = injector; this.servletPipeline = servletPipeline; this.servletContext = servletContext; this.filterDefinitions = Collections.unmodifiableList(collectFilterDefinitions(injector)); }