Examples of Filter


Examples of javax.servlet.Filter

            }
        }
        logger.info("Installing Servlet {}", servletClassName);
        filterChain.setServlet(sc, servlet);

        Filter f;
        for (String fClass : filtersClass) {
            try {
                f = (Filter) urlC.loadClass(fClass).newInstance();
            } catch (NullPointerException ex) {
                // We failed to load the Filter, let's try directly.
                f = (Filter) Thread.currentThread().getContextClassLoader()
                        .loadClass(fClass).newInstance();
            }
            FilterConfigImpl fc = new FilterConfigImpl(sc);
            fc.setFilter(f);

            if (filterName == null) {
               if (sc.getInitParameter(APPLICATION_NAME) != null) {
                   filterName = sc.getInitParameter(APPLICATION_NAME);
               } else {
                   filterName = f.getClass().getSimpleName();
               }
            }

            fc.setFilterName(filterName);
            filterChain.addFilter(fc);
View Full Code Here

Examples of jm.audio.synth.Filter

     * Initialisation method used to build the objects that
     * this instrument will use and specify thier interconnections.
     */
    public void createChain() {
        Oscillator wt = new Oscillator(this, Oscillator.SAWTOOTH_WAVE, this.sampleRate, this.channels);
        Filter filt = new Filter(wt, this.filterCutoff, Filter.LOW_PASS);
        Envelope env = new Envelope(filt,
                new double[]{0.0, 0.0, 0.05, 1.0, 0.3, 0.4, 1.0, 0.0});
        Volume vol = new Volume(env);
//    SampleOut sout = new SampleOut(vol);
    }
View Full Code Here

Examples of juzu.impl.fs.Filter

  }

  public void compile(String... compilationUnits) throws IOException, CompilationException {
    // Copy anything that is not a java file
    RAMFileSystem sourcePath1 = new RAMFileSystem();
    sourcePath.copy(new Filter() {
      public boolean acceptDir(Object dir, String name) throws IOException {
        return true;
      }

      public boolean acceptFile(Object file, String name) throws IOException {
View Full Code Here

Examples of lupos.engine.operators.singleinput.filter.Filter

    super();
  }

  @Override
  protected boolean checkPrecondition(final Map<String, BasicOperator> mso) {
    final Filter filter = (Filter) mso.get("filter");
    if (filter.getPrecedingOperators().size() > 1)
      return false;
    final AddBinding add1 = (AddBinding) mso.get("add1");
    if (add1.getPrecedingOperators().size() > 1)
      return false;
    final AddBinding add2 = (AddBinding) mso.get("add2");

    lupos.sparql1_1.Node filterNode = filter.getNodePointer();
    if (filterNode.jjtGetNumChildren() > 0) {
      filterNode = filterNode.jjtGetChild(0);

      // filter must be an unequality expression of 2 variables...
      if (filterNode instanceof lupos.sparql1_1.ASTNotEqualsNode) {
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Filter

  public Object visit(final ASTFilterConstraint node, final Object data) {
    final SPARQLParserVisitorImplementationDumper filterDumper = new SPARQLParserVisitorImplementationDumper();

    final String filterExpr = node.jjtGetChild(0).accept(filterDumper);

    final Filter filterOp = new Filter(this.prefix, filterExpr);

    return filterOp;
  }
View Full Code Here

Examples of mage.filter.Filter

        if (attachedTo == null) {
          if (perm.moveToZone(Zone.GRAVEYARD, null, this, false))
            somethingHappened = true;
        }
        else {
          Filter auraFilter = perm.getSpellAbility().getTargets().get(0).getFilter();
          if (!auraFilter.match(attachedTo) || attachedTo.hasProtectionFrom(perm)) {
            if (perm.moveToZone(Zone.GRAVEYARD, null, this, false))
              somethingHappened = true;
          }
        }
      }
View Full Code Here

Examples of mireka.filter.Filter

    }

    public void init() {
        FilterChain nextLink = new ChainEnd(mailTransaction);
        for (int i = filters.size() - 1; i >= 0; i--) {
            Filter filter = filters.get(i);
            filter.setChain(nextLink);
            nextLink = new Link(filter, mailTransaction);
        }
        head = nextLink;
    }
View Full Code Here

Examples of net.asfun.jangod.lib.Filter

    assertEquals(12, res);
  }
 
  @Test
  public void testOther() throws InterpretException {
    Filter af = new AbsFilter();
    Object res = filter.filter(af, compiler);
    assertEquals(af, res);
  }
View Full Code Here

Examples of net.csdn.common.scan.component.Filter

    @Override
    public List<InputStream> scanArchives(URL... urls) throws IOException {
        List<InputStream> streamList = new ArrayList<InputStream>();
        for (URL url : urls) {
            Filter filter = new Filter() {
                public boolean accepts(String filename) {
                    if (filename.endsWith(".class")) {
                        return true;

                    }
View Full Code Here

Examples of net.sf.collabreview.core.filter.Filter

   * @see net.sf.collabreview.reputation.ReputationMetric#configure(net.sf.collabreview.core.configuration.ConfigurationData)
   */
  protected final void startConfigure(ConfigurationData configurationData) throws Exception {
    ConfigurationData filter = configurationData.getSubElement("filter");
    if (filter != null) {
      Filter f = Filter.readFilter(configurationData);
      setFilter(f);
    }
    String name = configurationData.getValue("name");
    if (name != null) {
      this.name = name;
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.