Package edu.odu.cs.cowem.documents.urls
Class StylesURLs
- java.lang.Object
-
- edu.odu.cs.cowem.documents.urls.StylesURLs
-
- All Implemented Interfaces:
SpecialURL
public class StylesURLs extends java.lang.Object implements SpecialURL
Implements URL rewriting in course documents. styles:foo, rewritten as baseURL/styles/foo
-
-
Constructor Summary
Constructors Constructor Description StylesURLs(java.lang.String baseURL0)Create a URL rewriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTo(org.w3c.dom.Element link, java.lang.String linkAttr)Checks to see if a linking element (a or img) uses a special protocol label and, if so, attempts to rewrite the element.
-
-
-
Method Detail
-
applyTo
public final boolean applyTo(org.w3c.dom.Element link, java.lang.String linkAttr)Checks to see if a linking element (a or img) uses a special protocol label and, if so, attempts to rewrite the element.- Specified by:
applyToin interfaceSpecialURL- Parameters:
link- an element containing a URLlinkAttr- name of the attribute containing the URL- Returns:
- true if the element has been rewritten.
-
-