All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mockrunner.mock.web.MockForwardConfig Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy