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