Tabnine Logo
WaybackURLKeyMaker
Code IndexAdd Tabnine to your IDE (free)

How to use
WaybackURLKeyMaker
in
org.archive.url

Best Java code snippets using org.archive.url.WaybackURLKeyMaker (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.netpreserve.openwayback/openwayback-core

/**
 * 
 */
public KeyMakerUrlCanonicalizer() {
  this.surtForm = true;
  keyMaker = new WaybackURLKeyMaker(true);
}
origin: iipc/openwayback

public String canonicalize(String url, boolean surt) throws UnsupportedEncodingException, URISyntaxException
{
  if ((canonicalizer == null) || (url == null) || url.isEmpty()) {
    return url;
  }
  
  url = java.net.URLDecoder.decode(url, "UTF-8");
  
  if (surt) {
    return url;
  }
  
  int slashIndex = url.indexOf('/');
  // If true, assume this is already a SURT and skip
  if ((slashIndex > 0) && url.charAt(slashIndex - 1) == ')') {
    return url;
  }
          
  return canonicalizer.makeKey(url);
}

origin: org.netpreserve.commons/webarchive-commons

WaybackURLKeyMaker keymaker = new WaybackURLKeyMaker(true);
    next = keymaker.makeKey(next);
  } catch (Exception e) {
    continue;
origin: org.netpreserve.commons/commons-web

key = applyCustomRules(key);
origin: org.netpreserve.commons/commons-web

WaybackURLKeyMaker keymaker = new WaybackURLKeyMaker(true);
    next = keymaker.makeKey(next);
  } catch (Exception e) {
    continue;
origin: org.netpreserve.commons/webarchive-commons

key = applyCustomRules(key);
origin: org.netpreserve.openwayback/openwayback-core

public KeyMakerUrlCanonicalizer(boolean surtForm) {
  this.surtForm = surtForm;
  keyMaker = new WaybackURLKeyMaker(surtForm);
}

origin: iipc/webarchive-commons

WaybackURLKeyMaker keymaker = new WaybackURLKeyMaker(true);
    next = keymaker.makeKey(next);
  } catch (Exception e) {
    continue;
origin: org.netpreserve.openwayback/openwayback-cdx-server

public String canonicalize(String url, boolean surt) throws UnsupportedEncodingException, URISyntaxException
{
  if ((canonicalizer == null) || (url == null) || url.isEmpty()) {
    return url;
  }
  
  url = java.net.URLDecoder.decode(url, "UTF-8");
  
  if (surt) {
    return url;
  }
  
  int slashIndex = url.indexOf('/');
  // If true, assume this is already a SURT and skip
  if ((slashIndex > 0) && url.charAt(slashIndex - 1) == ')') {
    return url;
  }
          
  return canonicalizer.makeKey(url);
}

origin: iipc/webarchive-commons

key = applyCustomRules(key);
origin: iipc/openwayback

public KeyMakerUrlCanonicalizer(boolean surtForm) {
  this.surtForm = surtForm;
  keyMaker = new WaybackURLKeyMaker(surtForm);
}

origin: org.netpreserve.commons/webarchive-commons

  public RealCDXExtractorOutput(PrintWriter out) {
    this(out,new WaybackURLKeyMaker());
  }
//    SimpleJSONPathSpec gzFooterLengthSpec = new SimpleJSONPathSpec("Container.Gzip-Metadata.Footer-Length");
origin: iipc/openwayback

/**
 * 
 */
public KeyMakerUrlCanonicalizer() {
  this.surtForm = true;
  keyMaker = new WaybackURLKeyMaker(true);
}
origin: org.netpreserve.commons/commons-web

  public RealCDXExtractorOutput(PrintWriter out) {
    this(out,new WaybackURLKeyMaker());
  }
//    SimpleJSONPathSpec gzFooterLengthSpec = new SimpleJSONPathSpec("Container.Gzip-Metadata.Footer-Length");
origin: iipc/webarchive-commons

  public RealCDXExtractorOutput(PrintWriter out) {
    this(out,new WaybackURLKeyMaker());
  }
//    SimpleJSONPathSpec gzFooterLengthSpec = new SimpleJSONPathSpec("Container.Gzip-Metadata.Footer-Length");
origin: iipc/openwayback

@Override
public void afterPropertiesSet() throws Exception {
  if (authChecker == null) {
    authChecker = new AllAccessAuth();
  }
  
  canonicalizer = new WaybackURLKeyMaker(surtMode);
  urlSurtRangeComputer = new UrlSurtRangeComputer(surtMode);
}

origin: org.netpreserve.openwayback/openwayback-cdx-server

@Override
public void afterPropertiesSet() throws Exception {
  if (authChecker == null) {
    authChecker = new AllAccessAuth();
  }
  
  canonicalizer = new WaybackURLKeyMaker(surtMode);
  urlSurtRangeComputer = new UrlSurtRangeComputer(surtMode);
}

origin: org.netpreserve.commons/webarchive-commons

out = new RealCDXExtractorOutput(makePrintWriter(os), new WaybackURLKeyMaker(false));
origin: iipc/webarchive-commons

out = new RealCDXExtractorOutput(makePrintWriter(os), new WaybackURLKeyMaker(false));
origin: org.netpreserve.commons/commons-web

out = new RealCDXExtractorOutput(makePrintWriter(os), new WaybackURLKeyMaker(false));
org.archive.urlWaybackURLKeyMaker

Most used methods

  • <init>
  • makeKey
  • applyCustomRules

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now