com.mockrunner.mock.web.MockForwardConfig Maven / Gradle / Ivy
package com.mockrunner.mock.web;
import org.apache.struts.action.ActionForward;
/**
* Mock implementation of ForwardConfig
.
*/
public class MockForwardConfig extends ActionForward
{
private String name = null;
private String path = null;
private boolean redirect = false;
private boolean contextRelative = false;
private String module = null;
public MockForwardConfig()
{
}
public MockForwardConfig(String name, String path, boolean redirect)
{
super();
setName(name);
setPath(path);
setRedirect(redirect);
}
public MockForwardConfig(String name, String path, boolean redirect, boolean contextRelative)
{
super();
setName(name);
setPath(path);
setRedirect(redirect);
setContextRelative(contextRelative);
}
public MockForwardConfig(String name, String path, boolean redirect, String module)
{
super();
setName(name);
setPath(path);
setRedirect(redirect);
setModule(module);
}
public boolean getContextRelative()
{
return contextRelative;
}
public void setContextRelative(boolean contextRelative)
{
this.contextRelative = contextRelative;
}
public String getModule()
{
return module;
}
public void setModule(String module)
{
this.module = module;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = path;
}
public boolean getRedirect()
{
return redirect;
}
public void setRedirect(boolean redirect)
{
this.redirect = redirect;
}
public String toString()
{
String sb = "ForwardConfig[" + "name=" +
this.name +
",path=" +
this.path +
",redirect=" +
this.redirect +
"]";
return (sb);
}
}