net.trajano.twiff.internal.servlet
Class UrlActionResultProcessor
java.lang.Object
net.trajano.twiff.internal.servlet.UrlActionResultProcessor
- All Implemented Interfaces:
- ActionResultProcessor
public class UrlActionResultProcessor
- extends Object
- implements ActionResultProcessor
Processes action results of strings.
- Author:
- Archimedes Trajano
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlActionResultProcessor
public UrlActionResultProcessor()
isResultProcessable
public boolean isResultProcessable(Object result,
HttpServletRequest request)
- Returns true if the result is a string.
- Specified by:
isResultProcessable
in interface ActionResultProcessor
- Parameters:
result
- result of the action.request
- servlet request.
- Returns:
- true if the result is processable.
- See Also:
ActionResultProcessor.isResultProcessable(java.lang.Object,
javax.servlet.http.HttpServletRequest)
processActionResult
public String processActionResult(Object result,
HttpServletRequest request)
- Description copied from interface:
ActionResultProcessor
- Processes the action result and returns the URL to redirect to.
- Specified by:
processActionResult
in interface ActionResultProcessor
- Parameters:
result
- result of the action.request
- request object.
- Returns:
- the redirect URL that would be encoded.
- See Also:
ActionResultProcessor.processActionResult(java.lang.Object,
javax.servlet.http.HttpServletRequest)
Copyright © 2004-2005 trajano.net. All Rights Reserved.