1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.interceptor;
19
20 import java.util.Map;
21
22 /***
23 * Actions that want access to the current serlvet request attributes should implement this interface.<p />
24 *
25 * This interface is only relevant if the Action is used in a servlet environment.<p/>
26 *
27 * Note that using this interface makes the Action tied to a servlet environment, so it should be
28 * avoided if possible since things like unit testing will become more difficult.
29 */
30 public interface RequestAware {
31
32 /***
33 * Sets the Map of request attributes in the implementing class.
34 *
35 * @param request a Map of HTTP request attribute name/value pairs.
36 */
37 public void setRequest(Map request);
38 }