Examples of doFilter()


Examples of cambridge.runtime.Filter.doFilter()

        if (filters == null) return o.toString();
        Object val = o;
        for (int i = 0; i < filters.size(); i++) {
            Filter f = filters.get(i);
            if (i == 0) {
                val = f.doFilter(o, locale);
            } else {
                val = f.doFilter(val, locale);
            }
        }

Examples of com.alibaba.citrus.service.resource.ResourceFilter.doFilter()

                    String resourceName = filterMatchResult.getResourceName();

                    log.debug("Applying filter to resource \"{}\": {}", resourceName, filter);

                    return filter.doFilter(filterMatchResult, options, this);
                } else {
                    return root.doFilter(filterMatchResult, options);
                }
            }
        };

Examples of com.alibaba.citrus.service.resource.ResourceFilterChain.doFilter()

            ResourceFilterChain root = this; // as ResourceFilterChain
            ResourceMatchResult matchResult = this; // as ResourceMatchResult
            ResourceFilterChain chain = filterMapping.getResourceFilterChain(root);

            return chain.doFilter(matchResult, options); // with filters
        } else {
            return doLoad(resourceName, options); // no filters
        }
    }

Examples of com.alibaba.druid.support.http.WebStatFilter.doFilter()

        MockHttpServletResponse response = new MockHttpServletResponse();
        MockFilterChain chain = new MockFilterChain();

        Assert.assertNull(filter.getSessionStat(request));

        filter.doFilter(request, response, chain);

        Assert.assertEquals(0, appStat.getSessionStatDataList().size());

        filter.destroy();
       

Examples of com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter()

        MockFilterChain chain = new MockFilterChain();
        chain.addFilter( filter );
        Servlet servlet = new MockServlet();
        chain.setServlet( servlet );
        filter.init(filterConfig);
        filter.doFilter(request, null, chain );
    }

    private static class MockServlet implements Servlet
    {
        private ServletConfig m_config;

Examples of com.force.sdk.oauth.AuthFilter.doFilter()

        filter.init(filterConfig);
       
        VerificationFilterChain filterChain = new VerificationFilterChain();
        mockDataRetriever.assertRefreshToken = false;
        try {
            filter.doFilter(request, response, filterChain);
        } finally {
            mockDataRetriever.assertRefreshToken = true;
        }
       
        HttpSession session = request.getSession();

Examples of com.google.opengse.filters.RegularExpressionRequestHandler.doFilter()

    // if we have at least one request attribute listener, wrap the
    // request so we can intercept calls to setAttribute/removeAttribute
    request = wrapRequestForServletRequestAttributeListeners(request);
    // }
    RegularExpressionRequestHandler handler = regexHandler.getRequestHandler();
    handler.doFilter(request, response);
  }

  private ServletRequest wrapRequestForServletRequestAttributeListeners(
      ServletRequest request) {
    if (request instanceof HttpServletRequest) {

Examples of com.jayway.jsonpath.Filter.doFilter()

    }

    @Override
    public Object filter(Object obj, Configuration configuration, LinkedList<Filter> filters, boolean inArrayContext) {
        Filter filter = filters.poll();
        return filter.doFilter(configuration.getProvider().toIterable(obj), configuration);
    }

    @Override
    public Object filter(Object obj, Configuration configuration) {
        throw new UnsupportedOperationException();

Examples of com.liferay.faces.alloy.component.autocomplete.internal.AutoCompleteFilter.doFilter()

            AutoCompleteFilter autoCompleteFilter = autoCompleteFilterFactory.getAutoCompleteFilter(
                serverFilterType);

            if (autoCompleteFilter != null) {
              boolean caseSensitive = serverFilterType.contains("Case");
              items = autoCompleteFilter.doFilter(query, items, caseSensitive, locale);
            }
            else {
              throw new IOException(serverFilterType + " is not a valid serverFilterType.");
            }
          }

Examples of com.mockrunner.mock.web.MockFilterChain.doFilter()

        }
        catch (IllegalStateException ex) {
            // expected
        }

        chain.doFilter(request, response);

        assertSame(dataContext, testFilter.threadContext);

        // check no thread DC after
        try {
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.