01: package com.mockrunner.mock.web;
02:
03: import org.apache.struts.action.ActionForward;
04:
05: /**
06: * Mock implementation of <code>ForwardConfig</code>.
07: */
08: public class MockForwardConfig extends ActionForward {
09: private String name = null;
10: private String path = null;
11: private boolean redirect = false;
12: private boolean contextRelative = false;
13: private String module = null;
14:
15: public MockForwardConfig() {
16:
17: }
18:
19: public MockForwardConfig(String name, String path, boolean redirect) {
20: super ();
21: setName(name);
22: setPath(path);
23: setRedirect(redirect);
24: }
25:
26: public MockForwardConfig(String name, String path,
27: boolean redirect, boolean contextRelative) {
28:
29: super ();
30: setName(name);
31: setPath(path);
32: setRedirect(redirect);
33: setContextRelative(contextRelative);
34: }
35:
36: public MockForwardConfig(String name, String path,
37: boolean redirect, String module) {
38: super ();
39: setName(name);
40: setPath(path);
41: setRedirect(redirect);
42: setModule(module);
43: }
44:
45: public boolean getContextRelative() {
46: return contextRelative;
47: }
48:
49: public void setContextRelative(boolean contextRelative) {
50: this .contextRelative = contextRelative;
51: }
52:
53: public String getModule() {
54: return module;
55: }
56:
57: public void setModule(String module) {
58: this .module = module;
59: }
60:
61: public String getName() {
62: return name;
63: }
64:
65: public void setName(String name) {
66: this .name = name;
67: }
68:
69: public String getPath() {
70: return path;
71: }
72:
73: public void setPath(String path) {
74: this .path = path;
75: }
76:
77: public boolean getRedirect() {
78: return redirect;
79: }
80:
81: public void setRedirect(boolean redirect) {
82: this .redirect = redirect;
83: }
84:
85: public String toString() {
86: StringBuffer sb = new StringBuffer("ForwardConfig[");
87: sb.append("name=");
88: sb.append(this .name);
89: sb.append(",path=");
90: sb.append(this .path);
91: sb.append(",redirect=");
92: sb.append(this .redirect);
93: sb.append("]");
94: return (sb.toString());
95: }
96: }
|