public class Forward extends Object implements Consequence
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Forward(String url)
Creates a web consequence for the given url.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static String ACTION_REQUEST
public static String SESSION_REQUEST
public static String APPLICATION_REQUEST
public static String INPUT_REQUEST
public Forward(String url)
url - The url for the forwardpublic void execute(Action a, String result, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws ConsequenceException
Consequenceexecute 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.ConsequenceExceptionpublic 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.ServletExceptionIOExceptionpublic String getUrl()
public void setUrl(String url)
Copyright © 2015. All Rights Reserved.