Examples of GuardRailFilter


Examples of org.archive.wayback.resourceindex.filters.GuardRailFilter

    }

    // set up the common Filters:

    // makes sure we don't inspect too many records: prevents DOS
    GuardRailFilter guardrail = new GuardRailFilter(maxRecords);

    // checks an exclusion service for every matching record
    ObjectFilter<SearchResult> exclusion = wbRequest.getExclusionFilter();

    // count how many results got to the ExclusionFilter:
View Full Code Here

Examples of org.archive.wayback.resourceindex.filters.GuardRailFilter

  private MimeTypeFilter mimeExcludeFilter = new MimeTypeFilter();
  private static String ALEXA_DAT_MIME = "alexa/dat";

  public CoreCaptureFilterGroup(LocalResourceIndex index) {
    chain = new ObjectFilterChain<CaptureSearchResult>();
    chain.addFilter(new GuardRailFilter(index.getMaxRecords()));
    chain.addFilter(new DuplicateRecordFilter());

    MimeTypeFilter mimeExcludeFilter = new MimeTypeFilter();
    mimeExcludeFilter.addMime(ALEXA_DAT_MIME);
    mimeExcludeFilter.setIncludeIfContains(false);
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.