KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > interceptor > ServletRequestAware


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.webwork.interceptor;
6
7 import javax.servlet.http.HttpServletRequest JavaDoc;
8
9
10 /**
11  * All Actions that want to have access to the servlet request object must 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 ServletRequestAware {
21     //~ Methods ////////////////////////////////////////////////////////////////
22

23     /**
24      * Sets the HTTP request object in implementing classes.
25      *
26      * @param request the HTTP request.
27      */

28     public void setServletRequest(HttpServletRequest JavaDoc request);
29 }
30
Popular Tags