1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.seasar.cubby.action;
18
19 import java.lang.reflect.Method;
20 import java.util.Map;
21
22 import javax.servlet.ServletRequest;
23
24
25
26
27
28
29
30 public class ActionContextProxy implements ActionContext {
31
32
33 private final ActionContextHelper actionContextHelper;
34
35
36
37
38
39
40
41 public ActionContextProxy(final ServletRequest request) {
42 this.actionContextHelper = new ActionContextHelper(request);
43 }
44
45
46
47
48 public Object getAction() {
49 return subject().getAction();
50 }
51
52
53
54
55 public Class<?> getActionClass() {
56 return subject().getActionClass();
57 }
58
59
60
61
62 public Method getActionMethod() {
63 return subject().getActionMethod();
64 }
65
66
67
68
69 public Object getFormBean() {
70 return subject().getFormBean();
71 }
72
73
74
75
76 public boolean isBindRequestParameterToAllProperties() {
77 return subject().isBindRequestParameterToAllProperties();
78 }
79
80
81
82
83 public void invokeInitializeMethod() {
84 subject().invokeInitializeMethod();
85 }
86
87
88
89
90 public void invokePreRenderMethod() {
91 subject().invokePreRenderMethod();
92 }
93
94
95
96
97 public void invokePostRenderMethod() {
98 subject().invokePostRenderMethod();
99 }
100
101
102
103
104 public ActionErrors getActionErrors() {
105 return subject().getActionErrors();
106 }
107
108
109
110
111 public Map<String, Object> getFlashMap() {
112 return subject().getFlashMap();
113 }
114
115
116
117
118 public void clearFlash() {
119 subject().clearFlash();
120 }
121
122
123
124
125
126
127 protected ActionContext subject() {
128 return actionContextHelper.getActionContext();
129 }
130
131 }