|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.Forward
public class Forward
A forward web consequence.
| Field Summary | |
|---|---|
static String |
ACTION_REQUEST
The action is set in the request with this name |
static String |
APPLICATION_REQUEST
The application context is set in the request with this name |
static String |
INPUT_REQUEST
The action input is set in the request with this name |
static String |
SESSION_REQUEST
The session context is set in the request with this name |
| Constructor Summary | |
|---|---|
Forward(String url)
Creates a web consequence for the given url. |
|
| Method Summary | |
|---|---|
void |
execute(Action a,
String result,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Executes this consequence. |
static void |
forward(String url,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Forward your web application to an URL. |
String |
getUrl()
|
void |
setUrl(String url)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String ACTION_REQUEST
public static String SESSION_REQUEST
public static String APPLICATION_REQUEST
public static String INPUT_REQUEST
| Constructor Detail |
|---|
public Forward(String url)
url - The url for the forward| Method Detail |
|---|
public void execute(Action a,
String result,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws ConsequenceException
Consequence
execute in interface Consequencea - The action that generated this consequence.result - The result generated by the action.req - The servlet request of the action.res - The servlet response of the action.
ConsequenceException
public static void forward(String url,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
url - The url for the forward.req - The http servlet request.res - the http servlet response.
javax.servlet.ServletException
IOExceptionpublic String toString()
toString in class Objectpublic String getUrl()
public void setUrl(String url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||