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 throughGitFilter
. The implementation of this handler is responsible for callingReceivePackErrorHandler.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 Classes Modifier and Type Interface Description static interface
ReceivePackErrorHandler.ReceivePackRunnable
Process a git-receive-pack request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
receive(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, ReceivePackErrorHandler.ReceivePackRunnable r)
-
-
-
Method Detail
-
receive
void receive(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, ReceivePackErrorHandler.ReceivePackRunnable r) throws IOException
- Parameters:
req
- The HTTP requestrsp
- The HTTP responser
- A continuation that handles a git-receive-pack request.- Throws:
IOException
-
-