Top Description Inners Methods
org.eclipse.jgit.http.server

public Interface ReceivePackErrorHandler

Imports
java.io.IOException, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, org.eclipse.jgit.transport.ReceivePack, .ServiceMayNotContinueException

Handle git-receive-pack errors.

This is an entry point for customizing an error handler for git-receive-pack. Right before calling ReceivePack#receiveWithExceptionPropagation, JGit will call this handler if specified through GitFilter. The implementation of this handler is responsible for calling ReceivePackRunnable and handling exceptions for clients.

If a custom handler is not specified, JGit will use the default error handler.

Since
5.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ReceivePackErrorHandler.ReceivePackRunnable

Process a git-receive-pack request.

Method Summary

Modifier and TypeMethod and Description
public void
receive(HttpServletRequest
The HTTP request
req
,
HttpServletResponse
The HTTP response
rsp
,
ReceivePackErrorHandler.ReceivePackRunnable
A continuation that handles a git-receive-pack request.
r
)

Receive pack

Method Detail

receiveback to summary
public void receive(HttpServletRequest req, HttpServletResponse rsp, ReceivePackErrorHandler.ReceivePackRunnable r) throws IOException

Receive pack

Parameters
req:HttpServletRequest

The HTTP request

rsp:HttpServletResponse

The HTTP response

r:ReceivePackErrorHandler.ReceivePackRunnable

A continuation that handles a git-receive-pack request.

Exceptions
IOException:
if an IO error occurred
Since
7.0
org.eclipse.jgit.http.server back to summary

public Interface ReceivePackErrorHandler.ReceivePackRunnable


Process a git-receive-pack request.

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

receiveback to summary
public void receive() throws ServiceMayNotContinueException, IOException

See ReceivePack#receiveWithExceptionPropagation.

Exceptions
ServiceMayNotContinueException:
if transport service cannot continue
IOException:
if an IO error occurred