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>
filters
private javax.servlet.http.HttpServlet
httpServlet
-
Constructor Summary
Constructors Constructor Description ServletBinderImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract UrlPipeline
create()
protected javax.servlet.Filter[]
getFilters()
Get filtersprotected javax.servlet.http.HttpServlet
getServlet()
Get the servletServletBinder
through(javax.servlet.Filter filter)
Set the filter to trigger while processing the path.void
with(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:
through
in 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:
with
in 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.
-
-