net.sourceforge.pebble.api.confirmation
Interface ConfirmationStrategy

All Known Subinterfaces:
CommentConfirmationStrategy, TrackBackConfirmationStrategy
All Known Implementing Classes:
AbstractConfirmationStrategy, DefaultConfirmationStrategy, ImageCaptchaConfirmationStrategy, NoOpConfirmationStrategy, SimpleMathsConfirmationStrategy

public interface ConfirmationStrategy

Represents an abstraction of the various ways that confirmations can happen.

Author:
Simon Brown

Method Summary
 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.
 

Method Detail

setupConfirmation

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

Parameters:
request - the HttpServletRequest used in the confirmation

getUri

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

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

isConfirmed

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.