|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.stripes.action.OnwardResolution
public abstract class OnwardResolution
Abstract class that provides a consistent API for all Resolutions that send the user onward to another view - either by forwarding, redirecting or some other mechanism. Provides methods for getting and setting the path that the user should be sent to next.
| Field Summary | |
|---|---|
protected String |
path
|
| Constructor Summary | |
|---|---|
OnwardResolution()
|
|
| Method Summary | |
|---|---|
abstract void |
execute(HttpServletRequest request,
HttpServletResponse response)
Method should be implemented by sublcasses to perform the actual task of sending the user to the path specified. |
String |
getPath()
Accessor for the path that the user should be sent to. |
void |
setPath(String path)
Setter for the path that the user should be sent to. |
String |
toString()
Method that will work for this class and subclasses; returns a String containing the class name, and the path to which it will send the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String path
| Constructor Detail |
|---|
public OnwardResolution()
| Method Detail |
|---|
public String getPath()
public void setPath(String path)
public abstract void execute(HttpServletRequest request,
HttpServletResponse response)
throws Exception
request - the current HttpServletRequestresponse - the current HttpServletResponse
Exception - subclasses should throw an exception if the execution failspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||