diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-09-01 16:23:47 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-09-01 16:23:47 +0200 |
commit | 35aaca1efb68016ac15fdc41f6479381fa201410 (patch) | |
tree | 2f2e30266472d310990afda3a73188a6a7f1f438 | |
parent | 525127ebb446eec5d200e3f5d5c4f2f4e0cb01c3 (diff) | |
parent | c0380e9cddb26bb9b983305ec0a8051664782ae8 (diff) | |
download | jgit-35aaca1efb68016ac15fdc41f6479381fa201410.tar.gz jgit-35aaca1efb68016ac15fdc41f6479381fa201410.zip |
Merge branch 'stable-5.12'
* stable-5.12:
GitServlet: allow to override default error handlers
Change-Id: I4710cec30c58d7a6525a42dc5f1fdffc912ed073
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitServlet.java | 22 |
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 |