Class ServletBinderImpl
java.lang.Object
org.eclipse.jgit.http.server.glue.ServletBinderImpl
- All Implemented Interfaces:
ServletBinder
- Direct Known Subclasses:
RegexPipeline.Binder
,SuffixPipeline.Binder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<javax.servlet.Filter>
private javax.servlet.http.HttpServlet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract UrlPipeline
create()
protected javax.servlet.Filter[]
Get filtersprotected javax.servlet.http.HttpServlet
Get the servletthrough
(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
-
Field Details
-
filters
-
httpServlet
private javax.servlet.http.HttpServlet httpServlet
-
-
Constructor Details
-
ServletBinderImpl
ServletBinderImpl()
-
-
Method Details
-
through
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
- Returns:
- the pipeline that matches and executes this chain.
-