Class ServletBinderImpl
- java.lang.Object
-
- org.eclipse.jgit.http.server.glue.ServletBinderImpl
-
- All Implemented Interfaces:
ServletBinder
- Direct Known Subclasses:
RegexPipeline.Binder,SuffixPipeline.Binder
abstract class ServletBinderImpl extends java.lang.Object implements ServletBinder
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javax.servlet.Filter>filtersprivate javax.servlet.http.HttpServlethttpServlet
-
Constructor Summary
Constructors Constructor Description ServletBinderImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract UrlPipelinecreate()protected javax.servlet.Filter[]getFilters()Get filtersprotected javax.servlet.http.HttpServletgetServlet()Get the servletServletBinderthrough(javax.servlet.Filter filter)Set the filter to trigger while processing the path.voidwith(javax.servlet.http.HttpServlet servlet)Set the servlet to execute on this path
-
-
-
Method Detail
-
through
public ServletBinder through(javax.servlet.Filter filter)
Set the filter to trigger while processing the path.- Specified by:
throughin interfaceServletBinder- Parameters:
filter- the filter to trigger while processing the path.- Returns:
this.
-
with
public void with(javax.servlet.http.HttpServlet servlet)
Set the servlet to execute on this path- Specified by:
within interfaceServletBinder- Parameters:
servlet- the servlet to execute on this path.
-
getServlet
protected javax.servlet.http.HttpServlet getServlet()
Get the servlet- Returns:
- the configured servlet, or singleton returning 404 if none.
-
getFilters
protected javax.servlet.Filter[] getFilters()
Get filters- Returns:
- the configured filters; zero-length array if none.
-
create
abstract UrlPipeline create()
- Returns:
- the pipeline that matches and executes this chain.
-
-