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.DiffProviderDiffProvider.NullDiffProvider
 
- 
 - 
Field Summary- 
Fields inherited from interface org.apache.wiki.api.providers.WikiProviderLATEST_VERSION
 
- 
 - 
Constructor SummaryConstructors Constructor Description TraditionalDiffProvider()Constructs the provider.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProviderInfo()Return a valid HTML string for information.voidinitialize(Engine engine, java.util.Properties properties)Initializes the page provider.java.lang.StringmakeDiffHtml(Context ctx, java.lang.String p1, java.lang.String p2)Makes a diff using the BMSI utility package.
 
- 
- 
- 
Constructor Detail- 
TraditionalDiffProviderpublic TraditionalDiffProvider() Constructs the provider.
 
- 
 - 
Method Detail- 
getProviderInfopublic java.lang.String getProviderInfo() Return a valid HTML string for information. May be anything.- Specified by:
- getProviderInfoin interface- WikiProvider
- Returns:
- A string describing the provider.
- See Also:
- WikiProvider.getProviderInfo()
 
 - 
initializepublic void initialize(Engine engine, java.util.Properties properties) throws NoRequiredPropertyException, java.io.IOException Initializes the page provider.- Specified by:
- initializein interface- WikiProvider
- Parameters:
- engine- Engine to own this provider
- properties- A set of properties used to initialize this provider
- Throws:
- NoRequiredPropertyException- If the provider needs a property which is not found in the property set
- java.io.IOException- If there is an IO problem
- See Also:
- WikiProvider.initialize(org.apache.wiki.api.core.Engine, java.util.Properties)
 
 - 
makeDiffHtmlpublic 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 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.
 
 
- 
 
-