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 JavaSVN 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 JavaSVN 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);

JavaSVN default implementations

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

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