net.anotheria.maf.action
Class CommandRedirect
java.lang.Object
net.anotheria.maf.action.ActionCommand
net.anotheria.maf.action.CommandRedirect
- All Implemented Interfaces:
- Cloneable
public class CommandRedirect
- extends ActionCommand
- implements Cloneable
This type of action command is used for redirects.
- Author:
- lrosenberg
CommandRedirect
public CommandRedirect(String name,
String aTarget,
int aCode)
- Creates a new redirect.
- Parameters:
name - aTarget - aCode -
CommandRedirect
public CommandRedirect(String name,
String target)
- Creates a new 302 redirect.
- Parameters:
name - target -
toString
public String toString()
- Overrides:
toString in class ActionCommand
getTarget
public String getTarget()
getCode
public int getCode()
clone
public CommandRedirect clone()
- Overrides:
clone in class Object
addParameter
public CommandRedirect addParameter(String name,
String value)
- Adds a parameter to redirected url.
- Parameters:
name - value -
- Returns:
Copyright © 2010-2013 anotheria.net. All Rights Reserved.