01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12: package org.tmatesoft.svn.core.internal.io.dav.http;
13:
14: import org.tmatesoft.svn.core.SVNException;
15: import org.tmatesoft.svn.core.io.SVNRepository;
16:
17: /**
18: * @version 1.1.1
19: * @author TMate Software Ltd.
20: */
21: public interface IHTTPConnectionFactory {
22:
23: public IHTTPConnectionFactory DEFAULT = new IHTTPConnectionFactory() {
24:
25: public IHTTPConnection createHTTPConnection(
26: SVNRepository repository) throws SVNException {
27: String charset = System.getProperty("svnkit.http.encoding",
28: "US-ASCII");
29: return new HTTPConnection(repository, charset, null, false);
30: }
31:
32: };
33:
34: public IHTTPConnection createHTTPConnection(SVNRepository repository)
35: throws SVNException;
36:
37: }
|