net.trajano.twiff
Interface ActionResultProcessor

All Known Implementing Classes:
StringActionResultProcessor, UrlActionResultProcessor

public interface ActionResultProcessor

Processes an action result.

Author:
Archimedes Trajano

Method Summary
 boolean isResultProcessable(Object result, HttpServletRequest request)
          Returns true if the result object is processable by the current processor.
 String processActionResult(Object result, HttpServletRequest request)
          Processes the action result and returns the URL to redirect to.
 

Method Detail

isResultProcessable

boolean isResultProcessable(Object result,
                            HttpServletRequest request)
Returns true if the result object is processable by the current processor.

Parameters:
result - result of the action.
request - servlet request.
Returns:
true if the result is processable.

processActionResult

String processActionResult(Object result,
                           HttpServletRequest request)
Processes the action result and returns the URL to redirect to.

Parameters:
result - result of the action.
request - request object.
Returns:
the redirect URL that would be encoded.


Copyright © 2004-2005 trajano.net. All Rights Reserved.