Package org.archive.wayback.replay.html

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


        String tagName = m.group(1);
        String testAttrName = m.group(2);
        String testAttrValue = m.group(3);
        String attrNameMatch = m.group(4);
        String transformerName = p.getProperty(key);
        StringTransformer transformer = transformers.get(transformerName);
        if (transformer == null) {
          LOGGER.warning("Unknown transformer name \"" +
              transformerName + "\" for key \"" + key + "\"");
          continue;
        }
View Full Code Here


   * Also covered is a feature for disabling script by returning {@code null} from
   * {@code jsBlockTrans} (This feature may be removed/redesigned at any time).
   * @throws Exception
   */
  public void testDisableScriptElement() throws Exception {
    delegator.setJsBlockTrans(new StringTransformer() {
      @Override
      public String transform(ReplayParseContext context, String input) {
        if (input.equals("dropthis.js"))
          return null;
        else
View Full Code Here

TOP

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

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.