Examples of doFilter()


Examples of org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter.doFilter()

    ArgumentCaptor<HttpServletRequestWrapper> wrapperArg =
      ArgumentCaptor.forClass(HttpServletRequestWrapper.class);

    FilterChain chain = mock(FilterChain.class);
   
    suf.doFilter(mock(HttpServletRequest.class), mock(ServletResponse.class),
        chain);
       
    Mockito.verify(chain).doFilter(wrapperArg.capture(), Mockito.<ServletResponse>anyObject());
   
    HttpServletRequestWrapper wrapper = wrapperArg.getValue();

Examples of org.apache.hivemind.servlet.HiveMindFilter.doFilter()

        t.addThreadCleanupListener(l);

        HttpServletRequest request = new MockRequest();

        f.doFilter(request, new MockResponse(), new MockFilterChain());

        assertSame(r, HiveMindFilter.getRegistry(request));

        assertEquals(true, l.getCleanup());

Examples of org.apache.hivemind.servlet.HiveMindFilter.doFilter()

        // It's a NPE that gets thrown.

        assertLoggedMessage("null");

        f.doFilter(new MockRequest(), new MockResponse(), new MockFilterChain());

        f.destroy();
    }

    public void testDestroyWithoutRepository()

Examples of org.apache.hivemind.servlet.HiveMindFilter.doFilter()

    {
        Filter f = new HiveMindFilter();

        interceptLogging(HiveMindFilter.class.getName());

        f.doFilter(new MockRequest(), new MockResponse(), new MockFilterChain());

        assertLoggedMessage("Unable to cleanup current thread");
    }

}

Examples of org.apache.jackrabbit.core.query.TextFilter.doFilter()

                Map fields = Collections.EMPTY_MAP;
                for (Iterator it = textFilters.iterator(); it.hasNext();) {
                    TextFilter filter = (TextFilter) it.next();
                    // use the first filter that can handle the mimeType
                    if (filter.canFilter(mimeType)) {
                        fields = filter.doFilter(dataProp, encoding);
                        break;
                    }
                }

                for (Iterator it = fields.keySet().iterator(); it.hasNext();) {

Examples of org.apache.jackrabbit.core.query.TextFilter.doFilter()

        InternalValue value = InternalValue.create(xml.getBytes());
        state.setValues(new InternalValue[]{value});

        TextFilter filter = new XMLTextFilter();
        Map fields = filter.doFilter(state, System.getProperty("encoding"));
        Reader reader = (Reader)fields.get(FieldNames.FULLTEXT);
        String result = getValue(reader);
        assertEquals("Stockholm", result.trim());
    }

Examples of org.apache.jackrabbit.core.query.TextFilter.doFilter()

        InternalValue value = InternalValue.create(xml.getBytes());
        state.setValues(new InternalValue[]{value});

        TextFilter filter = new XMLTextFilter();
        Map fields = filter.doFilter(state, System.getProperty("encoding"));
        Reader reader = (Reader)fields.get(FieldNames.FULLTEXT);
        String result = getValue(reader);
        assertEquals("Stockholm", result.trim());
    }

Examples of org.apache.jackrabbit.core.query.XMLTextFilter.doFilter()

        InternalValue value = InternalValue.create(xml.getBytes());
        state.setValues(new InternalValue[]{value});

        TextFilter filter = new XMLTextFilter();
        Map fields = filter.doFilter(state, System.getProperty("encoding"));
        Reader reader = (Reader)fields.get(FieldNames.FULLTEXT);
        String result = getValue(reader);
        assertEquals("Stockholm", result.trim());
    }

Examples of org.apache.jackrabbit.core.query.XMLTextFilter.doFilter()

        InternalValue value = InternalValue.create(xml.getBytes());
        state.setValues(new InternalValue[]{value});

        TextFilter filter = new XMLTextFilter();
        Map fields = filter.doFilter(state, System.getProperty("encoding"));
        Reader reader = (Reader)fields.get(FieldNames.FULLTEXT);
        String result = getValue(reader);
        assertEquals("Stockholm", result.trim());
    }

Examples of org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilter.doFilter()

        public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
            if(filters.hasNext()) {
                MarmottaHttpFilter filter = filters.next();

                if(path.matches(filter.getPattern())) {
                    filter.doFilter(request,response,this);
                } else {
                    doFilter(request,response);
                }
            } else {
                originalChain.doFilter(request,response);
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.