This is an entry point for customizing an error handler for git-upload-pack.
Right before calling UploadPack#uploadWithExceptionPropagation, JGit
will call this handler if specified through GitFilter. The
implementation of this handler is responsible for calling
UploadPackRunnable and handling exceptions for clients.
If a custom handler is not specified, JGit will use the default error handler.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | UploadPackErrorHandler.
Process a git-upload-pack request. |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the HTTP status code as an intThe thrown Exception. error)Maps a thrown git related Exception to an appropriate HTTP status code. |
| public void | upload(HttpServletRequest
The HTTP request req, HttpServletResponse The HTTP response rsp, UploadPackErrorHandler.A continuation that handles a git-upload-pack request. rUpload pack |
| statusCodeForThrowable | back to summary |
|---|---|
| public static int statusCodeForThrowable(Throwable error) Maps a thrown git related Exception to an appropriate HTTP status code.
| |
| upload | back to summary |
|---|---|
| public void upload(HttpServletRequest req, HttpServletResponse rsp, UploadPackErrorHandler. Upload pack
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| upload | back to summary |
|---|---|
| public void upload() throws ServiceMayNotContinueException, IOException See
| |