Examples of Filter


Examples of org.restlet.Filter

    }

    /** Start callback. */
    public void start() throws Exception {
        // Initialization of services
        Filter lastFilter = null;

        // Checking if all applications have proper connectors
        boolean success = checkVirtualHost(getComponent().getDefaultHost());
        if (success) {
            for (VirtualHost host : getComponent().getHosts()) {
                success = success && checkVirtualHost(host);
            }
        }

        // Let's actually start the component
        if (!success) {
            getComponent().stop();
        } else {
            // Logging of calls
            if (getComponent().getLogService().isEnabled()) {
                lastFilter = createLogFilter(getComponent().getContext(),
                        getComponent().getLogService());
                setFirst(lastFilter);
            }

            // Addition of status pages
            if (getComponent().getStatusService().isEnabled()) {
                Filter statusFilter = createStatusFilter(getComponent());
                if (lastFilter != null)
                    lastFilter.setNext(statusFilter);
                if (getFirst() == null)
                    setFirst(statusFilter);
                lastFilter = statusFilter;
View Full Code Here

Examples of org.restlet.routing.Filter

    }

    /** Start hook. */
    @Override
    public synchronized void start() throws Exception {
        Filter filter = null;

        for (Service service : getHelped().getServices()) {
            if (service.isEnabled()) {
                // Attach the service inbound filters
                filter = service
View Full Code Here

Examples of org.rhq.core.domain.drift.Filter

                assertEquals(BaseDirValueContext.pluginConfiguration, driftDef.getBasedir().getValueContext());
                assertEquals("connectionPropertyX", driftDef.getBasedir().getValueName());
                assertEquals(123456L, driftDef.getInterval());
                assertEquals(1, driftDef.getIncludes().size());
                assertEquals(2, driftDef.getExcludes().size());
                Filter filter = driftDef.getIncludes().get(0);
                assertEquals("foo/bar", filter.getPath());
                assertEquals("**/*.blech", filter.getPattern());
                filter = driftDef.getExcludes().get(0);
                assertEquals("/wot/gorilla", filter.getPath());
                assertEquals("*.xml", filter.getPattern());
                filter = driftDef.getExcludes().get(1);
                assertEquals("/hello", filter.getPath());
                assertEquals("", filter.getPattern());
            } else if (drift.getName().equals("drift-fs")) {
                driftDef = new DriftDefinition(drift.getConfiguration());
                assertTrue(driftDef.isEnabled());
                assertEquals(BaseDirValueContext.fileSystem, driftDef.getBasedir().getValueContext());
                assertEquals("/", driftDef.getBasedir().getValueName());
View Full Code Here

Examples of org.sbml.jsbml.util.filters.Filter

   * @throws IOException
   * @throws XMLStreamException
   */
  public static void main(String[] args) throws XMLStreamException, IOException {
    SBMLDocument doc = SBMLReader.read(new File(args[0]));
    Filter filter = new NameFilter(args[1]);
    System.out.println(doc.filter(filter));
  }
View Full Code Here

Examples of org.scannotation.archiveiterator.Filter

     * @param urlPath
     * @throws IOException
     */
    private void scanUrlPath(String urlPath) throws IOException
    {
        Filter filter = new Filter()
        {
            public boolean accepts(String filename)
            {
                if (filename.endsWith(".class"))
                {
View Full Code Here

Examples of org.sleuthkit.autopsy.timeline.filters.Filter

            getSubNodePane().getChildren().clear();
            chart.setRequiresLayout(true);
            chart.requestChartLayout();
        } else {
            //make a new filter intersecting the global filter with text(description) and type filters to restrict sub-clusters
            final Filter combinedFilter = Filter.intersect(new Filter[]{new TextFilter(event.getDescription()),
                new TypeFilter(event.getType()),
                chart.getFilteredEvents().filter().get()});

            //make a new end inclusive span (to 'filter' with)
            final Interval span = event.getSpan().withEndMillis(event.getSpan().getEndMillis() + 1000);
View Full Code Here

Examples of org.sonar.api.web.Filter

public class ProjectFilterTest {
  @Test
  public void should_create_filter() {
    ProjectFilter template = new ProjectFilter();

    Filter filter = template.createFilter();

    assertThat(template.getName()).isEqualTo("Projects");
    assertThat(filter).isNotNull();
    assertThat(filter.getCriteria()).hasSize(1);
    assertThat(filter.getColumns()).hasSize(6);
  }
View Full Code Here

Examples of org.springframework.ldap.filter.Filter

            // the entity
            if (!StringUtils.isEmpty(fromEntityUsedIdValue))
            {
                // fetch entities using target Entity DAO with a specific filter
                // on the member attribute
                Filter roleMemberAttrFilter = new EqualsFilter(relationAttribute, fromEntityUsedIdValue);
                return toDAO.getEntities(roleMemberAttrFilter);
            }
        }
        return null;
    }
View Full Code Here

Examples of org.springframework.roo.project.Filter

    private List<Filter> getFilters(final String xPathExpression,
            final Element configuration) {
        final List<Filter> filters = new ArrayList<Filter>();
        for (final Element filterElement : XmlUtils.findElements(
                xPathExpression + "/filters/filter", configuration)) {
            filters.add(new Filter(filterElement));
        }
        return filters;
    }
View Full Code Here

Examples of org.tmatesoft.hg.internal.Filter

    if (factories.isEmpty()) {
      return Collections.emptyList();
    }
    ArrayList<Filter> rv = new ArrayList<Filter>(factories.size());
    for (Filter.Factory ff : factories) {
      Filter f = ff.create(p, opts);
      if (f != null) {
        rv.add(f);
      }
    }
    return rv;
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.