java.lang.Object
cloud.piranha.nano.NanoFilterChain
- All Implemented Interfaces:
FilterChain
class NanoFilterChain extends java.lang.Object implements FilterChain
The FilterChain class used by
NanoPiranha for
processing of a request and generating a response.- Author:
- Manfred Riem (mriem@manorrock.com)
- See Also:
cloud.piranha.nano
-
Field Summary
Fields Modifier and Type Field Description private FilterfilterStores the filter.private FilterChainfilterChainStores the next filter chain.private ServletservletStores the servlet. -
Constructor Summary
Constructors Constructor Description NanoFilterChain(Filter filter, FilterChain filterChain)Constructor.NanoFilterChain(Servlet servlet)Constructor. -
Method Summary
Modifier and Type Method Description voiddoFilter(ServletRequest request, ServletResponse response)Do filter processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
filter
Stores the filter. -
filterChain
Stores the next filter chain. -
servlet
Stores the servlet.
-
-
Constructor Details
-
NanoFilterChain
Constructor.- Parameters:
filter- the filter.filterChain- the next filter chain.
-
NanoFilterChain
Constructor.- Parameters:
servlet- the servlet.
-
-
Method Details
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletExceptionDo filter processing.- Specified by:
doFilterin interfaceFilterChain- Parameters:
request- the request.response- the response.- Throws:
java.io.IOException- when an I/O error occurs.ServletException- when a Servlet error occurs.
-