net.sourceforge.pebble.decorator
Class NoFollowDecorator

java.lang.Object
  extended by net.sourceforge.pebble.decorator.ContentDecoratorSupport
      extended by net.sourceforge.pebble.decorator.NoFollowDecorator
All Implemented Interfaces:
ContentDecorator

public class NoFollowDecorator
extends ContentDecoratorSupport

Adds a rel="nofollow" attribute into all links within comment and TrackBack content.

Author:
Simon Brown

Constructor Summary
NoFollowDecorator()
           
 
Method Summary
 void decorate(ContentDecoratorContext context, Comment comment)
          Decorates the specified comment.
 void decorate(ContentDecoratorContext context, TrackBack trackBack)
          Decorates the specified TrackBack.
 
Methods inherited from class net.sourceforge.pebble.decorator.ContentDecoratorSupport
decorate, decorate, getBlog, setBlog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoFollowDecorator

public NoFollowDecorator()
Method Detail

decorate

public void decorate(ContentDecoratorContext context,
                     Comment comment)
Decorates the specified comment.

Specified by:
decorate in interface ContentDecorator
Overrides:
decorate in class ContentDecoratorSupport
Parameters:
context - the context in which the decoration is running
comment - the comment to be decorated

decorate

public void decorate(ContentDecoratorContext context,
                     TrackBack trackBack)
Decorates the specified TrackBack.

Specified by:
decorate in interface ContentDecorator
Overrides:
decorate in class ContentDecoratorSupport
Parameters:
context - the context in which the decoration is running
trackBack - the TrackBack to be decorated


Copyright © 2003-2006, Simon Brown. All Rights Reserved.