aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-09-01 16:22:21 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-09-01 16:22:21 +0200
commitc0380e9cddb26bb9b983305ec0a8051664782ae8 (patch)
treed98b8acae823bd11e4641a0580562283b460b994 /org.eclipse.jgit.http.server
parent35eeab41b3eb3fcf6185dd3714c1c5205c5e15c3 (diff)
parent5a3569f04b4c83d4c5aabe8223fc021d38970b41 (diff)
downloadjgit-c0380e9cddb26bb9b983305ec0a8051664782ae8.tar.gz
jgit-c0380e9cddb26bb9b983305ec0a8051664782ae8.zip
Merge branch 'stable-5.11' into stable-5.12
* stable-5.11: GitServlet: allow to override default error handlers Change-Id: I65c01857ab42ec3023da16e6816d58e1a36e40e4
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java
index 6c5280e501..8e49b37b3d 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java
@@ -113,6 +113,17 @@ public class GitServlet extends MetaServlet {
}
/**
+ * Set a custom error handler for git-upload-pack.
+ *
+ * @param h
+ * A custom error handler for git-upload-pack.
+ * @since 5.9.1
+ */
+ public void setUploadPackErrorHandler(UploadPackErrorHandler h) {
+ gitFilter.setUploadPackErrorHandler(h);
+ }
+
+ /**
* Add upload-pack filter
*
* @param filter
@@ -137,6 +148,17 @@ public class GitServlet extends MetaServlet {
}
/**
+ * Set a custom error handler for git-receive-pack.
+ *
+ * @param h
+ * A custom error handler for git-receive-pack.
+ * @since 5.9.1
+ */
+ public void setReceivePackErrorHandler(ReceivePackErrorHandler h) {
+ gitFilter.setReceivePackErrorHandler(h);
+ }
+
+ /**
* Add receive-pack filter
*
* @param filter