Module org.eclipse.jgit.http.server
Package org.eclipse.jgit.http.server
Interface UploadPackErrorHandler
-
public interface UploadPackErrorHandlerHandle git-upload-pack errors.This is an entry point for customizing an error handler for git-upload-pack. Right before calling
UploadPack.uploadWithExceptionPropagation(java.io.InputStream, java.io.OutputStream, java.io.OutputStream), JGit will call this handler if specified throughGitFilter. The implementation of this handler is responsible for callingUploadPackErrorHandler.UploadPackRunnableand handling exceptions for clients.If a custom handler is not specified, JGit will use the default error handler.
- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUploadPackErrorHandler.UploadPackRunnableProcess a git-upload-pack request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, UploadPackErrorHandler.UploadPackRunnable r)
-
-
-
Method Detail
-
upload
void upload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, UploadPackErrorHandler.UploadPackRunnable r) throws IOException- Parameters:
req- The HTTP requestrsp- The HTTP responser- A continuation that handles a git-upload-pack request.- Throws:
IOException
-
-