Package org.eclipse.jgit.http.server
Interface ReceivePackErrorHandler
public interface ReceivePackErrorHandler
Handle git-receive-pack errors.
This is an entry point for customizing an error handler for git-receive-pack.
Right before calling ReceivePack.receiveWithExceptionPropagation(java.io.InputStream, java.io.OutputStream, java.io.OutputStream),
JGit will call this handler if specified through GitFilter. The
implementation of this handler is responsible for calling
ReceivePackErrorHandler.ReceivePackRunnable and handling exceptions for clients.
If a custom handler is not specified, JGit will use the default error handler.
- Since:
- 5.7
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProcess a git-receive-pack request. -
Method Summary
Modifier and TypeMethodDescriptionvoidreceive(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, ReceivePackErrorHandler.ReceivePackRunnable r) Receive pack
-
Method Details
-
receive
void receive(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp, ReceivePackErrorHandler.ReceivePackRunnable r) throws IOException Receive pack- Parameters:
req- The HTTP requestrsp- The HTTP responser- A continuation that handles a git-receive-pack request.- Throws:
IOException- if an IO error occurred
-