summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.test/META-INF
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2020-11-29 16:22:39 +0100
committerThomas Wolf <thomas.wolf@paranor.ch>2021-01-14 16:23:44 +0100
commit224aaa0be755d74deb0b58afe1e1e4c06bdce0b8 (patch)
treef4f20a5cb6af08f5b6345c1705436563fd5c6416 /org.eclipse.jgit.http.test/META-INF
parent312ab4f7f65e4f7658e307e0fd143642fa95a98a (diff)
downloadjgit-224aaa0be755d74deb0b58afe1e1e4c06bdce0b8.tar.gz
jgit-224aaa0be755d74deb0b58afe1e1e4c06bdce0b8.zip
TransportHttp: make the connection factory configurable
Previously, TransportHttp always used the globally set connection factory. This is problematic if that global factory is changed in the middle of a fetch or push operation. Initialize the factory to use in the constructor, then use that factory for all HTTP requests made through this transport. Provide a setter and a getter for it so that client code can customize the factory, if needed, in a TransportConfigCallback. Once a factory has been used on a TransportHttp instance it cannot be changed anymore. Make the global static factory reference volatile. Change-Id: I7c6ee16680407d3724e901c426db174a3125ba1c Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.http.test/META-INF')
-rw-r--r--org.eclipse.jgit.http.test/META-INF/MANIFEST.MF1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.test/META-INF/MANIFEST.MF b/org.eclipse.jgit.http.test/META-INF/MANIFEST.MF
index 44ce9c4607..0bcc57c8ef 100644
--- a/org.eclipse.jgit.http.test/META-INF/MANIFEST.MF
+++ b/org.eclipse.jgit.http.test/META-INF/MANIFEST.MF
@@ -28,6 +28,7 @@ Import-Package: javax.servlet;version="[2.5.0,3.2.0)",
org.eclipse.jetty.util.log;version="[9.4.5,10.0.0)",
org.eclipse.jetty.util.security;version="[9.4.5,10.0.0)",
org.eclipse.jetty.util.thread;version="[9.4.5,10.0.0)",
+ org.eclipse.jgit.api;version="[5.11.0,5.12.0)",
org.eclipse.jgit.errors;version="[5.11.0,5.12.0)",
org.eclipse.jgit.http.server;version="[5.11.0,5.12.0)",
org.eclipse.jgit.http.server.glue;version="[5.11.0,5.12.0)",