Class DefaultReceivePackFactory

java.lang.Object
org.eclipse.jgit.http.server.resolver.DefaultReceivePackFactory
All Implemented Interfaces:
ReceivePackFactory<javax.servlet.http.HttpServletRequest>

public class DefaultReceivePackFactory extends Object implements ReceivePackFactory<javax.servlet.http.HttpServletRequest>
Create and configure ReceivePack service instance.

Writing by receive-pack is permitted if any of the following is true:

  • The container has authenticated the user and set HttpServletRequest.getRemoteUser() to the authenticated name.
  • The repository configuration file has http.receivepack explicitly set to true.
and explicitly rejected otherwise.