org.apache.struts2.interceptor
接口 ServletResponseAware


public interface ServletResponseAware

All Actions that want to have access to the servlet response object must implement this interface.

This interface is only relevant if the Action is used in a servlet environment.

Note that using this interface makes the Action tied to a servlet environment, so it should be avoided if possible since things like unit testing will become more difficult.


方法摘要
 void setServletResponse(javax.servlet.http.HttpServletResponse response)
          Sets the HTTP response object in implementing classes.
 

方法详细信息

setServletResponse

void setServletResponse(javax.servlet.http.HttpServletResponse response)
Sets the HTTP response object in implementing classes.

参数:
response - the HTTP response.