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
  • 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 request
      rsp - The HTTP response
      r - A continuation that handles a git-receive-pack request.
      Throws:
      IOException - if an IO error occurred