Class StrutsExecuteFilter
java.lang.Object
org.apache.struts2.dispatcher.filter.StrutsExecuteFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,StrutsStatics
Executes the discovered request information. This filter requires the
StrutsPrepareFilter to have already
been executed in the current chain.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecuteOperationsprotected jakarta.servlet.FilterConfigprotected PrepareOperationsFields inherited from interface org.apache.struts2.StrutsStatics
ACTION_MAPPING, HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExecuteOperationscreateExecuteOperations(Dispatcher dispatcher) Creates a new instance ofExecuteOperationsto be used during initialisingDispatcherprotected InitOperationsCreates a new instance ofInitOperationsto be used during initialisingDispatcherprotected PrepareOperationscreatePrepareOperations(Dispatcher dispatcher) Creates a new instance ofPrepareOperationsto be used during initialisingDispatchervoiddestroy()voiddoFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) voidinit(jakarta.servlet.FilterConfig filterConfig) protected voidlazyInit()
-
Field Details
-
prepare
-
execute
-
filterConfig
protected jakarta.servlet.FilterConfig filterConfig
-
-
Constructor Details
-
StrutsExecuteFilter
public StrutsExecuteFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
lazyInit
protected void lazyInit() -
createInitOperations
Creates a new instance ofInitOperationsto be used during initialisingDispatcher- Returns:
- instance of
InitOperations
-
createPrepareOperations
Creates a new instance ofPrepareOperationsto be used during initialisingDispatcher- Returns:
- instance of
PrepareOperations
-
createExecuteOperations
Creates a new instance ofExecuteOperationsto be used during initialisingDispatcher- Returns:
- instance of
ExecuteOperations
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-