Examples of Filter


Examples of org.apache.lucene.search.Filter

            }
          }
          key.setImpl( def.getImpl() );
        }

        Filter filter = def.isCache() ?
            searchFactoryImplementor.getFilterCachingStrategy().getCachedFilter( key ) :
            null;
        if (filter == null) {
          if ( def.getFactoryMethod() != null ) {
            try {
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.Filter

        // assertions - there must be one filter
        assertEquals( 1, filters.size() );

        // the filter must be able to filter the binary and the sources jar
        Filter filter = (Filter) filters.get( 0 );
        assertTrue( filter.canFilter( new File( "myfaces-impl-2.0.1-SNAPSHOT.jar" ) ) ); // binary jar
        assertTrue( filter.canFilter( new File( "myfaces-impl-2.0.1-SNAPSHOT-sources.jar" ) ) ); // sources jar
    }
View Full Code Here

Examples of org.apache.muse.ws.notification.Filter

        Element root = XmlUtils.createElement(doc, WsnConstants.SUBSCRIBE_QNAME);
       
        EndpointReference sub = getWsResource().getEndpointReference();
        EndpointReference consumer = getConsumerReference();
        EndpointReference producer = getProducerReference();
        Filter filter = getFilter();
       
        XmlUtils.setElement(root, WsnConstants.SUBSCRIPTION_EPR_QNAME, sub);
        XmlUtils.setElement(root, WsnConstants.CONSUMER_QNAME, consumer);
        XmlUtils.setElement(root, WsnConstants.PRODUCER_QNAME, producer);
        XmlUtils.setElement(root, WsnConstants.FILTER_QNAME, filter);
View Full Code Here

Examples of org.apache.niolex.commons.reflect.FieldUtil.Filter

     */
    public static final <QT> FieldFilter<QT> forType(final Class<QT> type) {
        // Step 1. Create a new field filter.
        FieldFilter<QT> e = new FieldFilter<QT>();
        // Step 2. Add filter.
        e.add(new Filter(){
            @Override
            public boolean isValid(Field f) {
                return ClassUtils.isAssignable(f.getType(), type);
            }});
        return e;
View Full Code Here

Examples of org.apache.oozie.util.XLogStreamer.Filter

        CoordinatorEngine ce = createCoordinatorEngine();
        String jobId = runJobsImpl(ce);
        ce.streamLog(jobId, new StringWriter()/* writer is unused */);

        DummyXLogService service = (DummyXLogService) services.get(XLogService.class);
        Filter filter = service.filter;

        assertEquals(filter.getFilterParams().get(DagXLogInfoService.JOB), jobId);
    }
View Full Code Here

Examples of org.apache.openejb.jee.Filter

    @Override
    public void merge(WebFragment webFragment, WebApp webApp, MergeContext mergeContext) throws DeploymentException {
        for (Filter srcFilter : webFragment.getFilter()) {
            String filterName = srcFilter.getFilterName();
            Filter targetFilter = (Filter) mergeContext.getAttribute(createFilterKey(filterName));
            if (targetFilter == null) {
                webApp.getFilter().add(srcFilter);
                mergeContext.setAttribute(createFilterKey(filterName), srcFilter);
                for (SubMergeHandler<Filter, Filter> subMergeHandler : subMergeHandlers) {
                    subMergeHandler.add(srcFilter, mergeContext);
View Full Code Here

Examples of org.apache.pdfbox.filter.Filter

            {
                done = true;
            }
            else
            {
                Filter filter = FilterFactory.INSTANCE.getFilter(nextFilter);
                filter.decode(is, os, stream, i);
                IOUtils.closeQuietly(is);
                is = new ByteArrayInputStream(os.toByteArray());
                os.reset();
            }
        }
View Full Code Here

Examples of org.apache.pluto.container.om.portlet.Filter

        filterList.add(filter);
    }

    public void doFilter(ActionRequest request, ActionResponse response) throws IOException, PortletException {
        if (filterListIndex <filterList.size()){
            Filter filter = filterList.get(filterListIndex);
            filterListIndex++;
            try {
                ActionFilter actionFilter = (ActionFilter) loader.loadClass(filter.getFilterClass()).newInstance();
                FilterConfigImpl filterConfig = new FilterConfigImpl(filter.getFilterName(),filter.getInitParams(),portletContext);
                actionFilter.init(filterConfig);
                actionFilter.doFilter(request, response, this);
                actionFilter.destroy();
            } catch (InstantiationException e) {
                e.printStackTrace();
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.messaging.Filter

            Connection conn = newConnection();


            Session session = conn.createSession();

            Filter filter = null;
            if(getFilter() != null)
            {
                String[] filterParts  = getFilter().split("=",2);
                if("exact-subject".equals(filterParts[0]))
                {
View Full Code Here

Examples of org.apache.servicemix.nmr.core.util.Filter

     * @return an iterator over the registered listeners
     */
    public <T extends Listener> Iterable<T> getListeners(final Class<T> type) {
        return new Iterable<T>() {
            public Iterator<T> iterator() {
                return new FilterIterator(getServices().iterator(), new Filter() {
                    public boolean match(Object endpoint) {
                        return type.isInstance(endpoint);
                    }
                });
            }
View Full Code Here
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.