Class BlackboardURLs

  • All Implemented Interfaces:
    SpecialURL

    public class BlackboardURLs
    extends java.lang.Object
    implements SpecialURL
    Implements URL rewriting in course documents. bb:foo A link to an internal page of a Blackboard course (requires a legitimate URL for bbURL in the constructor below)
    • Constructor Summary

      Constructors 
      Constructor Description
      BlackboardURLs​(java.lang.String bbURL0)
      Create a URL rewriter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlackboardURLs

        public BlackboardURLs​(java.lang.String bbURL0)
        Create a URL rewriter.
        Parameters:
        bbURL0 - url to course on Blackboard
    • 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:
        applyTo in interface SpecialURL
        Parameters:
        link - an element containing a URL
        linkAttr - name of the attribute containing the URL
        Returns:
        true if the element has been rewritten.