aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2021-09-01 15:55:58 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-09-01 15:55:58 +0200
commit738ef7782d992540baf773062328d297ffb8a1af (patch)
tree6ee293314bfec9203d1e335700217e60a61fe817
parentbae2f86ac790e8d8019094eb65d3a84068d1eeee (diff)
parent84707715108a65a366ef35f2ae04aabecd0b35f6 (diff)
downloadjgit-738ef7782d992540baf773062328d297ffb8a1af.tar.gz
jgit-738ef7782d992540baf773062328d297ffb8a1af.zip
Merge branch 'stable-5.9' into stable-5.10
* stable-5.9: GitServlet: allow to override default error handlers Change-Id: I55273087f8a67762130728eaaf635519c25255b3
-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