net.anotheria.maf.action
Class CommandRedirect

java.lang.Object
  extended by net.anotheria.maf.action.ActionCommand
      extended by 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

Constructor Summary
CommandRedirect(String name, String target)
          Creates a new 302 redirect.
CommandRedirect(String name, String aTarget, int aCode)
          Creates a new redirect.
 
Method Summary
 CommandRedirect addParameter(String name, String value)
          Adds a parameter to redirected url.
 CommandRedirect clone()
           
 int getCode()
           
 String getTarget()
           
 String toString()
           
 
Methods inherited from class net.anotheria.maf.action.ActionCommand
getName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.