| java.lang.Object org.blojsom.plugin.nofollow.NoFollowPlugin
NoFollowPlugin | public class NoFollowPlugin implements Plugin(Code) | | NoFollow plugin adds support for the rel="nofollow" attribute on links added
to comments and trackbacks.
author: David Czarnecki version: $Id: NoFollowPlugin.java,v 1.3 2007/01/17 02:35:12 czarneckid Exp $ since: blojsom 3.0 |
NoFollowPlugin | public NoFollowPlugin()(Code) | | Construct a new instance of the NoFollow plugin
|
destroy | public void destroy() throws PluginException(Code) | | Called when BlojsomServlet is taken out of service
throws: PluginException - If there is an error in finalizing this plugin |
noFollowFy | protected String noFollowFy(String text)(Code) | | Take a string and add rel="nofollow" attributes to the <a href/> links
if they are not already on the links.
Parameters: text - Text to look for hyperlinks Text with rel="nofollow" attributes added to the hyperlinks |
process | public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries) throws PluginException(Code) | | Process the blog entries
Parameters: httpServletRequest - Request Parameters: httpServletResponse - Response Parameters: blog - Blog instance Parameters: context - Context Parameters: entries - Blog entries retrieved for the particular request Modified set of blog entries throws: PluginException - If there is an error processing the blog entries |
|
|