Module org.eclipse.jgit.http.server
Class RegexGroupFilter
- java.lang.Object
-
- org.eclipse.jgit.http.server.glue.RegexGroupFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class RegexGroupFilter extends Object implements javax.servlet.Filter
Switch servlet path and path info to use another regex match group.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 Summary
Constructors Constructor Description RegexGroupFilter(int groupIdx)Constructor for RegexGroupFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse rsp, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse rsp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
-