Package org.apache.wiki.filters
Class PingWeblogsComFilter
- java.lang.Object
-
- org.apache.wiki.api.filters.BasePageFilter
-
- org.apache.wiki.filters.PingWeblogsComFilter
-
- All Implemented Interfaces:
PageFilter
public class PingWeblogsComFilter extends BasePageFilter
A very dumb class that pings weblogs.com on each save. INTERNAL USE ONLY SO FAR! Look, but don't use as-is.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_PINGURL
The property name for the URL to ping.-
Fields inherited from class org.apache.wiki.api.filters.BasePageFilter
m_engine
-
-
Constructor Summary
Constructors Constructor Description PingWeblogsComFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(Engine engine, java.util.Properties props)
If you override this, you should call super.initialize() first.void
postSave(Context context, java.lang.String pagecontent)
This method is called after the page has been successfully saved.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wiki.api.filters.PageFilter
destroy, postTranslate, preSave, preTranslate
-
-
-
-
Field Detail
-
PROP_PINGURL
public static final java.lang.String PROP_PINGURL
The property name for the URL to ping. Value is "pingurl".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PingWeblogsComFilter
public PingWeblogsComFilter()
-
-
Method Detail
-
initialize
public void initialize(Engine engine, java.util.Properties props)
If you override this, you should call super.initialize() first. Is called whenever the a new PageFilter is instantiated and reset.- Specified by:
initialize
in interfacePageFilter
- Overrides:
initialize
in classBasePageFilter
- Parameters:
engine
- The Engine which owns this PageFilterprops
- The properties ripped from filters.xml.
-
postSave
public void postSave(Context context, java.lang.String pagecontent)
This method is called after the page has been successfully saved. If the saving fails for any reason, then this method will not be called.Since the result is discarded from this method, this is only useful for things like counters, etc.
- Parameters:
context
- The WikiContextpagecontent
- The content which was just stored.
-
-