The only pure Java™ Subversion library in the world!
Home Get Library Knowledge Base Licensing

Customizing network connections

For accessing a repository via the http:// (https://) protocol SVNKit uses the IHTTPConnection interface. And IHTTPConnection objects are provided by IHTTPConnectionFactory. Both these interfaces can be found in the org.tmatesoft.svn.core.internal.io.dav package.

Using your custom implementations

To make SVNKit use your implementations of IHTTPConnection and IHTTPConnectionFactory provide your factory implementation to DAVRepositoryFactory when setting up the library for using via the http:// protocol:

...
import org.tmatesoft.svn.core.internal.io.dav;
...
    IHTTPConnectionFactory factory = new YourCustomHTTPConnectionFactory();
    DAVRepositoryFactory.setup(factory);

SVNKit default implementations

When you call DAVRepositoryFactory.setup(), SVNKit takes into use a default implementation of IHTTPConnectionFactory - IHTTPConnectionFactory.DEFAULT.

If you have any questions regarding SVNKit, would like to report a bug or contribute a patch, please write to support@svnkit.com


Java™ and all Java-based marks are a trademark or registered trademark of Sun Microsystems, Inc, in the United States and other countries. TMate Software and the website svnkit.com are independent of Sun Microsystems, Inc. and have no relationship, formal or informal.