public class RequestManager extends Object implements javax.servlet.Filter
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.| Constructor and Description |
|---|
RequestManager(ApplicationContext context,
String servletName,
ApplicationPipeline<RequestHandler> pipeline)
Creates an instance with the name of the target servlet and a pipeline.
|
public RequestManager(ApplicationContext context, String servletName, ApplicationPipeline<RequestHandler> pipeline)
servlet - the name of the servletpipeline - the pipelinepublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2015. All Rights Reserved.