public class RegexGroupFilter extends Object implements javax.servlet.Filter
This filter is meant to be installed in the middle of a pipeline created by
MetaServlet.serveRegex(String). The passed request's servlet path is
updated to be all text up to the start of the designated capture group, and
the path info is changed to the contents of the capture group.
| Constructor and Description |
|---|
RegexGroupFilter(int groupIdx) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig config) |
public RegexGroupFilter(int groupIdx)
groupIdx - capture group number, 1 through the number of groups.public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse rsp,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionCopyright © 2017 Eclipse JGit Project. All rights reserved.