Package org.gcube.smartgears.managers
Class RequestManager
java.lang.Object
org.gcube.smartgears.managers.RequestManager
- All Implemented Interfaces:
jakarta.servlet.Filter
A
Filter that executes a ApplicationPipeline of RequestHandlers before and a client request is delivered
to a given servlet and before the response produced by the servlet is returned to the client.- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Constructor Summary
ConstructorsConstructorDescriptionRequestManager(ApplicationContext context, String servletName, List<RequestHandler> handlers) Creates an instance with the name of the target servlet and a list of handlers. -
Method Summary
-
Constructor Details
-
RequestManager
public RequestManager(ApplicationContext context, String servletName, List<RequestHandler> handlers) Creates an instance with the name of the target servlet and a list of handlers.- Parameters:
context- the application contextservletName- the name of the servlethandlers- the request handlers
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-