Package org.gcube.smartgears.managers
Class RequestManager
- java.lang.Object
-
- org.gcube.smartgears.managers.RequestManager
-
- All Implemented Interfaces:
javax.servlet.Filter
public class RequestManager extends Object implements javax.servlet.Filter
AFilterthat executes aApplicationPipelineofRequestHandlers 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
-
-
Constructor Summary
Constructors Constructor Description RequestManager(ApplicationContext context, String servletName, List<RequestHandler> handlers)Creates an instance with the name of the target servlet and a pipeline.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Constructor Detail
-
RequestManager
public RequestManager(ApplicationContext context, String servletName, List<RequestHandler> handlers)
Creates an instance with the name of the target servlet and a pipeline.- Parameters:
servlet- the name of the servletpipeline- the pipeline
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
-