Package org.archive.wayback.replay.html

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


    // only testing JSStringTransformer 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 =
View Full Code Here


      e1.printStackTrace();
      throw new IOException(e1.getMessage());
    }

    // same code in ArchivalUrlSAXRewriteReplayRenderer
    ContextResultURIConverterFactory fact = null;
   
    if (uriConverter instanceof ArchivalUrlResultURIConverter) {
      fact = new ArchivalUrlContextResultURIConverterFactory(
          (ArchivalUrlResultURIConverter) uriConverter);
    } else if (converterFactory != null) {
View Full Code Here

      throw new IOException(e1.getMessage());
    }
    // determine the character set used to encode the document bytes:
    String charSet = charsetDetector.getCharset(httpHeadersResource, decodedResource, wbRequest);

    ContextResultURIConverterFactory fact = createConverterFactory(uriConverter, httpRequest, wbRequest);
   
    // set up the context:
    ReplayParseContext context =
        new ReplayParseContext(fact,url,result.getCaptureTimestamp());
   
View Full Code Here

  }
 
  protected ContextResultURIConverterFactory createConverterFactory(ResultURIConverter uriConverter, HttpServletRequest httpRequest, WaybackRequest wbRequest)
  {
    // sam ecode in ArchivalURLJSStringTransformerReplayRenderer
    ContextResultURIConverterFactory fact = null;
   
    if (uriConverter instanceof ArchivalUrlResultURIConverter) {
      fact = new ArchivalUrlContextResultURIConverterFactory(
          (ArchivalUrlResultURIConverter) uriConverter);
    } else if (converterFactory != null) {
View Full Code Here

  @Override
  public ResultURIConverter getUriConverter() {
   
    if (cacheUriConverter == null) {   
      ContextResultURIConverterFactory factory = composite.getUriConverterFactory();
     
      if (factory != null) {
        cacheUriConverter = factory.getContextConverter(getReplayPrefix());
      } else {
        cacheUriConverter = composite.getUriConverter();
      }
    }
   
View Full Code Here

TOP

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

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.