package org.apache.maven.struts;

/* ====================================================================
 *   Copyright 2001-2004 The Apache Software Foundation.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 * ====================================================================
 */

/**
 * A class to represent a global forward as stored in the Struts configuration
 *
 * @author  dion
 * @version $Id: Forward.java,v 1.2 2004/03/02 15:36:14 evenisse Exp $
 */
public class Forward extends ConfigurationEntry
{
    /** path to forward or redirect to */
    private String path;
    /** whether to redirect or forward to the path*/
    private String redirect;
    
    /** Creates a new instance of Forward */
    public Forward()
    {
    }
    
    /** Getter for property path.
     * @return Value of property path.
     */
    public String getPath()
    {
        return path;
    }
    
    /** Setter for property path.
     * @param path New value of property path.
     */
    public void setPath(String path)
    {
        this.path = path;
    }
    
    /** Getter for property redirect.
     * @return Value of property redirect.
     */
    public String getRedirect()
    {
        return redirect;
    }
    
    /** Setter for property redirect.
     * @param redirect New value of property redirect.
     */
    public void setRedirect(String redirect)
    {
        this.redirect = redirect;
    }
    
}
