01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.interceptor;
06:
07: import javax.servlet.http.HttpServletResponse;
08:
09: /**
10: * All Actions that want to have access to the servlet response object must 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 ServletResponseAware {
20:
21: /**
22: * Sets the HTTP response object in implementing classes.
23: *
24: * @param response the HTTP response.
25: */
26: public void setServletResponse(HttpServletResponse response);
27: }
|