Aware Interfaces

Last modified by Ken McWilliams on 2012/10/02 03:07

Aware Interfaces

The following are the nine Struts2 Aware Interfaces (current as of version 2.3.4). All interfaces can be found in the org.apache.struts2.interceptor package of the sruts2-core-2.x.x.jar with the exception of the ServeletContextAware interceptor which in found in the org.apache.struts2.util package.

  • ApplicationAware
  • CookiesAware
  • RequestAware
  • ParameterAware
  • PrincipalAware
  • ServeletContextAware
  • ServletRequestAware
  • ServletResponseAware
  • SessionAware

ApplicationAware

public void setApplication(Map<String, Object> application);

CookiesAware

public void setCookiesMap(Map<String, String> cookies);

RequestAware

public void setRequest(Map<String, Object> request);

ParameterAware

public void setParameters(Map<String, String[]> parameters);

PrincipalAware

public void setPrincipalProxy(PrincipalProxy principalProxy);

ServeletContextAware

public void setServletContext(ServletContext context);

ServletRequestAware

public void setRequest(Map<String, Object> request);

ServletResponseAware

public void setServletResponse(HttpServletResponse response);

SessionAware

public void setSession(Map<String, Object> session);