org.fusesource.scalate.wikitext

SwizzleLinkFilter

case class SwizzleLinkFilter (sourceDirectories: Traversable[File], extensions: Set[String]) extends Filter with Product with Serializable

Converts links used in wiki notation to find the template or wiki markup files on the file system.

Wiki links tend to assume a single name is unique per wiki space; but when converting wiki pages to URIs or files and directories you often want to move the wiki files into directory trees. This filter will fix up these bad links, searching for wiki files in your source tree and swizzling the generated links to use those.

Linear Supertypes
Serializable, Serializable, Product, Equals, Filter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SwizzleLinkFilter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Filter
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SwizzleLinkFilter (sourceDirectories: Traversable[File], extensions: Set[String])

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    SwizzleLinkFilter → Equals
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (arg0: Any): Boolean

    Definition Classes
    SwizzleLinkFilter → Equals → AnyRef → Any
  11. val extensions : Set[String]

  12. def filter (context: RenderContext, html: String): String

    Lets fix up any links which are local and do notcontain a file extension

    Lets fix up any links which are local and do notcontain a file extension

    Definition Classes
    SwizzleLinkFilter → Filter
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def findWikiFile (link: String, requestUri: String): Option[File]

    Finds a wiki File from a link name by starting at the root directories and navigating through all files until we find a file name that matches the given link (without an extension)

  15. def findWikiFileUri (link: String, requestUri: String): Option[String]

    Finds a wiki URI from a link name by starting at the root directories and navigating through all files until we find a file name that matches the given link (without an extension)

  16. def findWikiFileWith [T] (link: String, requestUri: String)(fn: (File, File) ⇒ T): Option[T]

    Attributes
    protected
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    SwizzleLinkFilter → AnyRef → Any
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. val linkRegex : Regex

    Attributes
    protected
  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def productArity : Int

    Definition Classes
    SwizzleLinkFilter → Product
  25. def productElement (arg0: Int): Any

    Definition Classes
    SwizzleLinkFilter → Product
  26. def productIterator : Iterator[Any]

    Definition Classes
    Product
  27. def productPrefix : String

    Definition Classes
    SwizzleLinkFilter → Product
  28. val sourceDirectories : Traversable[File]

  29. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  30. def toString (): String

    Definition Classes
    SwizzleLinkFilter → AnyRef → Any
  31. def transformLink (link: String, requestUri: String): String

    If a link is external or includes a dot then assume its OK, otherwise append html extension

  32. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Filter

Inherited from AnyRef

Inherited from Any