com.mockrunner.mock.web.MockForwardConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockrunner-core Show documentation
Show all versions of mockrunner-core Show documentation
Core classes common to all Mockrunner modules
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()
{
StringBuffer sb = new StringBuffer("ForwardConfig[");
sb.append("name=");
sb.append(this.name);
sb.append(",path=");
sb.append(this.path);
sb.append(",redirect=");
sb.append(this.redirect);
sb.append("]");
return (sb.toString());
}
}