org.eclipse.jgit.http.server.resolver
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultReceivePackFactory
public DefaultReceivePackFactory()
create
public ReceivePack create(javax.servlet.http.HttpServletRequest req,
Repository db)
throws ServiceNotEnabledException,
ServiceNotAuthorizedException
- Specified by:
create in interface ReceivePackFactory<javax.servlet.http.HttpServletRequest>
- Throws:
ServiceNotEnabledException
ServiceNotAuthorizedException
Copyright © 2011. All Rights Reserved.