net.sourceforge.pebble.confirmation
Class NoOpConfirmationStrategy

java.lang.Object
  extended by net.sourceforge.pebble.confirmation.AbstractConfirmationStrategy
      extended by net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy
All Implemented Interfaces:
CommentConfirmationStrategy, ConfirmationStrategy, TrackBackConfirmationStrategy

public class NoOpConfirmationStrategy
extends AbstractConfirmationStrategy

No-op implementation that doesn't require confirmation to be performed.

Author:
Simon Brown

Field Summary
 
Fields inherited from class net.sourceforge.pebble.confirmation.AbstractConfirmationStrategy
REQUIRED_KEY
 
Constructor Summary
NoOpConfirmationStrategy()
           
 
Method Summary
 boolean confirmationRequired(Blog blog)
          Called to determine whether confirmation is required.
 boolean confirmationRequired(Comment comment)
          Called to determine whether confirmation is required.
 java.lang.String getUri()
          Gets the URI of the confirmation page.
 boolean isConfirmed(HttpServletRequest request)
          Called to determine whether confirmation was successful.
 void setupConfirmation(HttpServletRequest request)
          Called before showing the confirmation page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpConfirmationStrategy

public NoOpConfirmationStrategy()
Method Detail

confirmationRequired

public boolean confirmationRequired(Comment comment)
Called to determine whether confirmation is required.

Specified by:
confirmationRequired in interface CommentConfirmationStrategy
Overrides:
confirmationRequired in class AbstractConfirmationStrategy
Parameters:
comment - the Comment being confirmed
Returns:
true if the comment should be confirmed, false otherwise

confirmationRequired

public boolean confirmationRequired(Blog blog)
Called to determine whether confirmation is required.

Specified by:
confirmationRequired in interface TrackBackConfirmationStrategy
Overrides:
confirmationRequired in class AbstractConfirmationStrategy
Parameters:
blog - the owning Blog
Returns:
true if the confirmation is required, false otherwise

setupConfirmation

public void setupConfirmation(HttpServletRequest request)
Called before showing the confirmation page.

Parameters:
request - the HttpServletRequest used in the confirmation

getUri

public java.lang.String getUri()
Gets the URI of the confirmation page.

Returns:
a URI, relative to the web application root.

isConfirmed

public boolean isConfirmed(HttpServletRequest request)
Called to determine whether confirmation was successful.

Parameters:
request - the HttpServletRequest used in the confirmation
Returns:
true if the confirmation was successful, false otherwise


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