Package org.archive.wayback.replay.html

Examples of org.archive.wayback.replay.html.IdentityResultURIConverterFactory


    // using custom RecordingReplayParseContext for testing actual rewrite. This is more than
    // a unit test of JSStringTransformer, but it is useful to capture bugs caused by inconsistency
    // among JSStringTransformer, ReplayParseContext and ResultURIConverterFactory (hopefully
    // they should be refactored into coherent, easier-to-test components.) this is a common
    // setup for proxy-mode (IdentityResultURIConverterFactory returns ProxyHttpsResultURIConverter.)
    IdentityResultURIConverterFactory uriConverterFactory = new IdentityResultURIConverterFactory();
    rc = new RecordingReplayParseContext(uriConverterFactory, baseURL, null);
    rc.setRewriteHttpsOnly(true);

    // Note: ParseContext.resolve(String) uses UsableURIFactory.getInstance() for
    // making URL absolute. It not only prepends baseURL but also removes escaping
View Full Code Here


    JSStringTransformer transformer = new JSStringTransformer();
    renderer.setTransformer(transformer);
   
    ResultURIConverter proxyURIConverter = new ProxyHttpsResultURIConverter();
    ContextResultURIConverterFactory converterFactory =
        new IdentityResultURIConverterFactory(proxyURIConverter);
    renderer.setConverterFactory(converterFactory);
    renderer.setRewriteHttpsOnly(true);
   
    final String payload =
        "var img1 = 'https://home.archive.org/~hstern/ARI-3745/happy_face.jpg';\n" +
View Full Code Here

      fact = new ArchivalUrlContextResultURIConverterFactory(
          (ArchivalUrlResultURIConverter) uriConverter);
    } else if (converterFactory != null) {
      fact = converterFactory;
    } else {
      fact = new IdentityResultURIConverterFactory(uriConverter);     
    }   
   
    // set up the context:
    ReplayParseContext context =
      new ReplayParseContext(fact,url,result.getCaptureTimestamp());
View Full Code Here

      fact = new ArchivalUrlContextResultURIConverterFactory(
          (ArchivalUrlResultURIConverter) uriConverter);
    } else if (converterFactory != null) {
      fact = converterFactory;
    } else {
      fact = new IdentityResultURIConverterFactory(uriConverter);     
    }
   
    return fact;
  }
View Full Code Here

TOP

Related Classes of org.archive.wayback.replay.html.IdentityResultURIConverterFactory

Copyright © 2018 www.massapicom. 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.