diff options
author | Antonio Barone <syntonyze@gmail.com> | 2021-09-01 12:04:07 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-09-01 15:25:30 +0200 |
commit | 84707715108a65a366ef35f2ae04aabecd0b35f6 (patch) | |
tree | f5f03fd45e2065ca15d659751e97456447a94d6b /pom.xml | |
parent | 59aec9b15a10609ef0c1a8603ad5dae42d0f3320 (diff) | |
download | jgit-84707715108a65a366ef35f2ae04aabecd0b35f6.tar.gz jgit-84707715108a65a366ef35f2ae04aabecd0b35f6.zip |
GitServlet: allow to override default error handlers
GitServlet delegates repository access over HTTP to the GitFilter
servlet.
GitServlet, in turn, can be extended by jgit consumers to provide custom
logic when handling such operations.
This is the case, for example, with Gerrit Code Review, which provides
custom behavior with a GitOverHttpServlet [1].
Among possible customizations, the ability of specifying a custom error
handler for UploadPack and ReceivePack was already introduced in
GitFilter by Idd3b87d6b and I9c708aa5a2, respectively.
However the `setUploadPackErrorHandler` and `setReceivePackErrorHandler`
methods were never added to the GitServlet.
Expose the `setUploadPackErrorHandler` and `setReceivePackErrorHandler`
methods to the GitServlet, so that consumers of the jgit library might
specify custom error handlers.
[1] https://gerrit.googlesource.com/gerrit/+/refs/heads/stable-3.2/java/com/google/gerrit/httpd/GitOverHttpServlet.java#95
Change-Id: I712d485ff68b662b48c71ef75650c5a155950d23
Diffstat (limited to 'pom.xml')
0 files changed, 0 insertions, 0 deletions