railo.runtime.util
Class URLResolver

java.lang.Object
  extended by railo.runtime.util.URLResolver

public final class URLResolver
extends Object

Transform a HTML String, set all relative Pathes inside HTML File to absolute TODO Test this


Constructor Summary
URLResolver()
           
 
Method Summary
static URLResolver getInstance()
           
 void transform(Node node, URL url)
           
 String transform(String html, URL url, boolean setBaseTag)
          transform the HTML String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResolver

public URLResolver()
Method Detail

transform

public void transform(Node node,
                      URL url)
               throws MalformedURLException
Throws:
MalformedURLException

transform

public String transform(String html,
                        URL url,
                        boolean setBaseTag)
                 throws PageException
transform the HTML String

Parameters:
html - HTML String to transform
url - Absolute URL path to set
Returns:
transformed HTMl String
Throws:
PageException

getInstance

public static URLResolver getInstance()


Copyright © 2012 Railo