Package net.anotheria.anosite.action
Class ActionCommand
- java.lang.Object
-
- net.anotheria.anosite.action.ActionCommand
-
public class ActionCommand extends Object
ActionCommand is the result of an action execution. By returning an ActionCommand the action 'tells' the ActionServlet how to perform further.- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description ActionCommand()ActionCommand(ActionMappingDef def)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameters(String someParameters)static CommandTypecms2enum(int value)StringgetPage()StringgetParameters()StringgetTarget()Returns the target for the redirect or forward.CommandTypegetType()StringgetUrl()voidsetPage(String page)voidsetParameters(String parameters)voidsetType(CommandType type)voidsetUrl(String url)StringtoString()
-
-
-
Constructor Detail
-
ActionCommand
public ActionCommand()
-
ActionCommand
public ActionCommand(ActionMappingDef def)
-
-
Method Detail
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getPage
public String getPage()
-
setPage
public void setPage(String page)
-
getType
public CommandType getType()
-
setType
public void setType(CommandType type)
-
getTarget
public String getTarget()
Returns the target for the redirect or forward. First the url parameter is checked, if no url parameter is specified, page parameter is considered and the url to the specified page is returned.- Returns:
- the target for the redirect or forward.
-
cms2enum
public static final CommandType cms2enum(int value)
-
getParameters
public String getParameters()
-
setParameters
public void setParameters(String parameters)
-
addParameters
public void addParameters(String someParameters)
-
-