Package org.apache.wiki.diff
Class TraditionalDiffProvider
- java.lang.Object
-
- org.apache.wiki.diff.TraditionalDiffProvider
-
- All Implemented Interfaces:
WikiProvider,DiffProvider
public class TraditionalDiffProvider extends java.lang.Object implements DiffProvider
This is the JSPWiki 'traditional' diff. It uses an internal diff engine.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wiki.diff.DiffProvider
DiffProvider.NullDiffProvider
-
-
Field Summary
-
Fields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION
-
-
Constructor Summary
Constructors Constructor Description TraditionalDiffProvider()Constructs the provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProviderInfo()voidinitialize(Engine engine, java.util.Properties properties)java.lang.StringmakeDiffHtml(Context ctx, java.lang.String p1, java.lang.String p2)Makes a diff using the BMSI utility package.
-
-
-
Constructor Detail
-
TraditionalDiffProvider
public TraditionalDiffProvider()
Constructs the provider.
-
-
Method Detail
-
getProviderInfo
public java.lang.String getProviderInfo()
- Specified by:
getProviderInfoin interfaceWikiProvider- See Also:
WikiProvider.getProviderInfo()
-
initialize
public void initialize(Engine engine, java.util.Properties properties) throws NoRequiredPropertyException, java.io.IOException
- Specified by:
initializein interfaceWikiProvider- Throws:
NoRequiredPropertyExceptionjava.io.IOException- See Also:
WikiProvider.initialize(org.apache.wiki.api.core.Engine, java.util.Properties)
-
makeDiffHtml
public java.lang.String makeDiffHtml(Context ctx, java.lang.String p1, java.lang.String p2)
Makes a diff using the BMSI utility package. We use our own diff printer, which makes things easier.- Specified by:
makeDiffHtmlin interfaceDiffProvider- Parameters:
ctx- The WikiContext in which the diff should be made.p1- The first stringp2- The second string.- Returns:
- Full HTML diff.
-
-