001    package com.mockrunner.mock.web;
002    
003    import org.apache.struts.action.ActionForward;
004    
005    /**
006     * Mock implementation of <code>ForwardConfig</code>.
007     */
008    public class MockForwardConfig extends ActionForward
009    {
010            private String name = null;
011            private String path = null;
012            private boolean redirect = false;
013            private boolean contextRelative = false;
014            private String module = null;
015    
016            public MockForwardConfig() 
017            {
018    
019            }
020             
021        public MockForwardConfig(String name, String path, boolean redirect) 
022        {
023            super();
024            setName(name);
025            setPath(path);
026            setRedirect(redirect);
027        }
028    
029        public MockForwardConfig(String name, String path, boolean redirect, boolean contextRelative) 
030        {
031    
032            super();
033            setName(name);
034            setPath(path);
035            setRedirect(redirect);
036            setContextRelative(contextRelative);
037        }
038        
039        public MockForwardConfig(String name, String path, boolean redirect, String module) 
040        {
041            super();
042            setName(name);
043            setPath(path);
044            setRedirect(redirect);
045            setModule(module);
046        }
047    
048        public boolean getContextRelative() 
049        {
050            return contextRelative;
051        }
052    
053        public void setContextRelative(boolean contextRelative) 
054        {
055            this.contextRelative = contextRelative;
056        }
057        
058        public String getModule() 
059        {
060            return module;
061        }
062        
063        public void setModule(String module) 
064        {
065            this.module = module;
066        }
067    
068        public String getName() 
069        {
070            return name;
071        }
072    
073        public void setName(String name) 
074        {
075            this.name = name;
076        }
077    
078        public String getPath() 
079            {
080            return path;
081        }
082    
083        public void setPath(String path) 
084        {
085            this.path = path;
086        }
087    
088        public boolean getRedirect() 
089        {
090            return redirect;
091        }
092    
093        public void setRedirect(boolean redirect) 
094        {
095            this.redirect = redirect;
096        }
097    
098        public String toString() 
099        {
100            StringBuffer sb = new StringBuffer("ForwardConfig[");
101            sb.append("name=");
102            sb.append(this.name);
103            sb.append(",path=");
104            sb.append(this.path);
105            sb.append(",redirect=");
106            sb.append(this.redirect);
107            sb.append("]");
108            return (sb.toString());
109        }
110    }