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.HttpServletRequest;
08:
09: /**
10: * All Actions that want to have access to the servlet request 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 ServletRequestAware {
20:
21: /**
22: * Sets the HTTP request object in implementing classes.
23: *
24: * @param request the HTTP request.
25: */
26: public void setServletRequest(HttpServletRequest request);
27: }
|