KickJava   Java API By Example, From Geeks To Geeks.

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


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.HttpServletResponse JavaDoc;
8
9
10 /**
11  * All Actions that want to have access to the servlet response 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 ServletResponseAware {
21     //~ Methods ////////////////////////////////////////////////////////////////
22

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

28     public void setServletResponse(HttpServletResponse JavaDoc response);
29 }
30
Popular Tags