]> source.dussan.org Git - jgit.git/commit
http: Allow specifying a custom error handler for UploadPack 44/147144/10
authorMasaya Suzuki <masayasuzuki@google.com>
Tue, 6 Aug 2019 19:02:23 +0000 (12:02 -0700)
committerMasaya Suzuki <masayasuzuki@google.com>
Wed, 9 Oct 2019 17:25:54 +0000 (10:25 -0700)
commitabedaf0d3854f319d0df839851c0e95909aec06a
treea6b2d959fb7d4335209f73b331afdd2b94f1a152
parentb8d9734c0268446cddac281ec762808ac369538e
http: Allow specifying a custom error handler for UploadPack

By abstracting the error handler, this lets a user customize the error
handler for UploadPack. A customized error handler can show a custom
error message to the clients based on the exception thrown from the
hook, create a monitoring system for server errors, or do custom
logging.

Change-Id: Idd3b87d6bd471fef807c0cf1183e904b2886157e
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit.http.server/META-INF/MANIFEST.MF
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackErrorHandler.java [new file with mode: 0644]
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java