Module org.eclipse.jgit.http.server
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.receivepackexplicitly set to true.
-
Field Summary
Fields inherited from interface org.eclipse.jgit.transport.resolver.ReceivePackFactory
DISABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(javax.servlet.http.HttpServletRequest req, Repository db)
-
Constructor Details
-
DefaultReceivePackFactory
public DefaultReceivePackFactory()
-
-
Method Details
-
create
public ReceivePack create(javax.servlet.http.HttpServletRequest req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException - Specified by:
createin interfaceReceivePackFactory<javax.servlet.http.HttpServletRequest>- Throws:
ServiceNotEnabledExceptionServiceNotAuthorizedException
-