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 configureReceivePackservice 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 Constructor Description DefaultReceivePackFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceivePackcreate(javax.servlet.http.HttpServletRequest req, Repository db)
-
-
-
Method Detail
-
create
public ReceivePack create(javax.servlet.http.HttpServletRequest req, Repository db) throws ServiceNotEnabledException, ServiceNotAuthorizedException
- Specified by:
createin interfaceReceivePackFactory<javax.servlet.http.HttpServletRequest>- Throws:
ServiceNotEnabledExceptionServiceNotAuthorizedException
-
-