public class CreoleFilter extends BasicPageFilter
Provides the Implementation for mixed mode creole: If you activate this filter, it will translate all markup that was saved as creole markup to JSPWiki markup. Therefore the files will be saved with mixed markup.
WARNING: There's no turning back after installing this filter. Since your wiki pages are saved in Creole markup you can not deactivate it afterwards.
WARNING: This feature is completely experimental, and is known to be broken. Use at your own risk.
WARNING: The CreoleFilter feature is deprecated. JSPWiki is likely to implement a non-mixed mode Creole at some point, since turning on Creole will make new pages obsolete.
m_engine
Constructor and Description |
---|
CreoleFilter() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(WikiEngine engine,
Properties props)
If you override this, you should call super.initialize() first.
|
String |
preSave(WikiContext wikiContext,
String content)
This method is called before the page has been saved to the PageProvider.
|
String |
preTranslate(WikiContext wikiContext,
String content)
This method is called whenever a page has been loaded from the provider,
but not yet been sent through the markup-translation process.
|
destroy, postSave, postTranslate
public CreoleFilter()
public void initialize(WikiEngine engine, Properties props) throws FilterException
initialize
in interface PageFilter
initialize
in class BasicPageFilter
engine
- The WikiEngine whic owns this PageFilterprops
- The properties ripped from filters.xml.FilterException
- If the filter could not be initialized. If this is thrown,
the filter is not added to the internal queues.public String preSave(WikiContext wikiContext, String content)
preSave
in interface PageFilter
preSave
in class BasicPageFilter
wikiContext
- The WikiContextcontent
- The wikimarkup that the user just wanted to save.public String preTranslate(WikiContext wikiContext, String content)
preTranslate
in interface PageFilter
preTranslate
in class BasicPageFilter
wikiContext
- The current wikicontext.content
- WikiMarkup.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.