Wiki source code of Aware Interfaces

Last modified by Ken McWilliams on 2012/10/02 03:07

Show last authors
1 = Aware Interfaces =
2
3 The following are the nine Struts2 Aware Interfaces (current as of version 2.3.4). All interfaces can be found in the //org.apache.struts2.interceptor// package of the sruts2-core-2.x.x.jar with the exception of the ServeletContextAware interceptor which in found in the //org.apache.struts2.util// package.
4
5 * ApplicationAware
6 * CookiesAware
7 * RequestAware
8 * ParameterAware
9 * PrincipalAware
10 * ServeletContextAware
11 * ServletRequestAware
12 * ServletResponseAware
13 * SessionAware
14
15 == ApplicationAware ==
16
17 public void setApplication(Map<String, Object> application);
18
19 == CookiesAware ==
20
21 public void setCookiesMap(Map<String, String> cookies);
22
23 == RequestAware ==
24
25 public void setRequest(Map<String, Object> request);
26
27 == ParameterAware ==
28
29 public void setParameters(Map<String, String[]> parameters);
30
31 == PrincipalAware ==
32
33 public void setPrincipalProxy(PrincipalProxy principalProxy);
34
35 == ServeletContextAware ==
36
37 public void setServletContext(ServletContext context);
38
39 == ServletRequestAware ==
40
41 public void setRequest(Map<String, Object> request);
42
43 == ServletResponseAware ==
44
45 public void setServletResponse(HttpServletResponse response);
46
47 == SessionAware ==
48
49 public void setSession(Map<String, Object> session);