Examples of ResourceFilter


Examples of com.alibaba.citrus.service.resource.ResourceFilter

        return new ResourceFilterChain() {
            private int i = 0;

            public Resource doFilter(ResourceMatchResult filterMatchResult, Set<ResourceLoadingOption> options)
                    throws ResourceNotFoundException {
                ResourceFilter filter;

                if (i < filters.length) {
                    filter = filters[i++];

                    String resourceName = filterMatchResult.getResourceName();

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

                    return filter.doFilter(filterMatchResult, options, this);
                } else {
                    return root.doFilter(filterMatchResult, options);
                }
            }
        };
View Full Code Here

Examples of com.eclipsesource.jaxrs.publisher.ResourceFilter

    httpTracker = new HttpTracker( context, jaxRsConnector );
    httpTracker.open();
  }

  private void openAllServiceTracker( BundleContext context ) throws InvalidSyntaxException {
    ResourceFilter allResourceFilter = getResourceFilter( context );
    allTracker = new ResourceTracker( context, allResourceFilter.getFilter(), jaxRsConnector );
    allTracker.open();
  }
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    }

    final ZipScanner scanner = getScanner(includeList, excludeList,
        defaultExcludes, caseSensitive);

    publicPrefixSet.add(new PathPrefix(publicPackage, new ResourceFilter() {
      public boolean allows(String path) {
        return scanner.match(path);
      }
    }, true));
  }
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    }

    final ZipScanner scanner = getScanner(includeList, excludeList,
        defaultExcludes, caseSensitive);

    ResourceFilter sourceFileFilter = new ResourceFilter() {
      public boolean allows(String path) {
        return path.endsWith(".java") && scanner.match(path);
      }
    };
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    if (lazyPublicOracle != null) {
      throw new IllegalStateException("Already normalized");
    }
    //XXX <Instantiations
    if (defaultExcludes && caseSensitive && includeList.length == 0 && excludeList.length == 0) {
        publicPrefixSet.add(new PathPrefix(publicPackage, new ResourceFilter() {
            public boolean allows(String path) {
              return path.startsWith(publicPackage);
            }
          }, true));
        return;
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

      throw new IllegalStateException("Already normalized");
    }
    //XXX <Instantiations
    if (defaultExcludes && caseSensitive && !isSuperSource
        && includeList.length == 0 && excludeList.length == 0) {
        sourcePrefixSet.add(new PathPrefix(sourcePackage, new ResourceFilter() {
            public boolean allows(String path) {
              return path.startsWith(sourcePackage) && path.endsWith(".java");
            }
          }, isSuperSource));
        return;
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    }

    final ZipScanner scanner = getScanner(includeList, excludeList,
        defaultExcludes, caseSensitive);

    publicPrefixSet.add(new PathPrefix(publicPackage, new ResourceFilter() {
      public boolean allows(String path) {
        return scanner.match(path);
      }
    }, true));
  }
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    }

    final ZipScanner scanner = getScanner(includeList, excludeList,
        defaultExcludes, caseSensitive);

    ResourceFilter sourceFileFilter = new ResourceFilter() {
      public boolean allows(String path) {
        return path.endsWith(".java") && scanner.match(path);
      }
    };
View Full Code Here

Examples of com.google.gwt.dev.resource.impl.ResourceFilter

    ResourceOracleImpl oracle = new ResourceOracleImpl(logger);

    PathPrefixSet pps = new PathPrefixSet();
    pps.add(new PathPrefix(packageName.replace('.', '/') + '/',
    // Eliminate stuff that's definitely not source material
        new ResourceFilter() {
          public boolean allows(String path) {
            return !(path.endsWith(".class") || path.contains("/."));
          }
        }));
    oracle.setPathPrefixes(pps);
View Full Code Here

Examples of com.sun.grid.jgdi.monitoring.filter.ResourceFilter

    }

    //TODO LP: Add correct exitCodes
    private QHostOptions parse(List<String> argList) throws Exception {
        ResourceAttributeFilter resourceAttributeFilter = null;
        ResourceFilter resourceFilter = null;
        boolean showQueues = false;
        boolean showJobs = false;
        boolean showAsXML = false;
        UserFilter userFilter = null;
        HostFilter hostFilter = null;

        while (!argList.isEmpty()) {
            String arg = argList.remove(0);

            if (arg.equals("-help")) {
                out.println(getUsage());
                return null;
            } else if (arg.equals("-h")) {
                if (argList.isEmpty()) {
                    err.println("error: ERROR! -h option must have argument");
                    return null;
                }
                arg = argList.remove(0);
                //TODO LP: Qmaster should check if the value exists and is correct not the client
                //E.g.: qhost -h dfds -> qmaster should try to resolve the host a return error message
                hostFilter = HostFilter.parse(arg);
            } else if (arg.equals("-F")) {
                if (!argList.isEmpty()) {
                    arg = argList.get(0);
                    // we allow only a comma separated arg string
                    // qhost CLI allows also whitespace separated arguments
                    if (!arg.startsWith("-")) {
                        arg = argList.remove(0);
                        resourceAttributeFilter = ResourceAttributeFilter.parse(arg);
                    } else {
                        resourceAttributeFilter = new ResourceAttributeFilter();
                    }
                } else {
                    resourceAttributeFilter = new ResourceAttributeFilter();
                }
            } else if (arg.equals("-j")) {
                showJobs = true;
            } else if (arg.equals("-l")) {
                if (argList.isEmpty()) {
                    err.println("error: ERROR! -l option must have argument");
                    return null;
                }
                resourceFilter = new ResourceFilter();
                arg = argList.remove(0);
                try {
                    //TODO LP: Qmaster should check if the value exists and is correct not the client
                    //E.g.: qhost -l bal=34 -> qmaster should say bla does not exist
                    //E.g.: qhost -l swap_total -> qmaster - no value to swap_total
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.