Class TraditionalDiffProvider

java.lang.Object
org.apache.wiki.diff.TraditionalDiffProvider
All Implemented Interfaces:
org.apache.wiki.api.providers.WikiProvider, DiffProvider

public class TraditionalDiffProvider extends Object implements DiffProvider
This is the JSPWiki 'traditional' diff. It uses an internal diff engine.
  • Constructor Details

  • Method Details

    • getProviderInfo

      Specified by:
      getProviderInfo in interface org.apache.wiki.api.providers.WikiProvider
      See Also:
      • WikiProvider.getProviderInfo()
    • initialize

      public void initialize(org.apache.wiki.api.core.Engine engine, Properties properties) throws org.apache.wiki.api.exceptions.NoRequiredPropertyException, IOException
      Specified by:
      initialize in interface org.apache.wiki.api.providers.WikiProvider
      Throws:
      org.apache.wiki.api.exceptions.NoRequiredPropertyException
      IOException
      See Also:
      • WikiProvider.initialize(org.apache.wiki.api.core.Engine, java.util.Properties)
    • makeDiffHtml

      public String makeDiffHtml(org.apache.wiki.api.core.Context ctx, String p1, String p2)
      Makes a diff using the BMSI utility package. We use our own diff printer, which makes things easier.
      Specified by:
      makeDiffHtml in interface DiffProvider
      Parameters:
      ctx - The WikiContext in which the diff should be made.
      p1 - The first string
      p2 - The second string.
      Returns:
      Full HTML diff.