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) |
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.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse rsp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
Copyright © 2015 Eclipse JGit Project. All rights reserved.