01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.interceptor;
06:
07: import java.util.Map;
08:
09: /**
10: * Actions that want access to the user's HTTP session should implement this interface.<p>
11: * <p/>
12: * This interface is only relevant if the Action is used in a servlet environment.<p>
13: * <p/>
14: * Note that using this interface makes the Action tied to a servlet environment, so it should be
15: * avoided if possible since things like unit testing will become more difficult.
16: *
17: * @author <a href="mailto:rickard@middleware-company.com">Rickard Öberg</a>
18: */
19: public interface SessionAware {
20:
21: /**
22: * Sets the Map of session attributes in the implementing class.
23: *
24: * @param session a Map of HTTP session attribute name/value pairs.
25: */
26: public void setSession(Map session);
27: }
|