Package org.apache.struts2.action
Interface ServletRequestAware
- All Known Implementing Classes:
- CspReportAction,- DefaultCspReportAction
public interface ServletRequestAware
All Actions that want to have access to the servlet request 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.
- 
Method SummaryModifier and TypeMethodDescriptionvoidwithServletRequest(jakarta.servlet.http.HttpServletRequest request) Applies the HTTP request object in implementing classes.
- 
Method Details- 
withServletRequestvoid withServletRequest(jakarta.servlet.http.HttpServletRequest request) Applies the HTTP request object in implementing classes.- Parameters:
- request- the HTTP request.
 
 
-