Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Lindberg2009-05-11 09:11:54 -0400
committerHenrik Lindberg2009-05-11 09:11:54 -0400
commit519d5c98e23c5900d1725626b7b9bc01099ff20e (patch)
treef8233dfc9b462f16813eb5a37036ea2c73d5e047 /bundles/org.eclipse.equinox.p2.testserver
parentfba69e0bf372a6fd292096e94631bb6293bfae98 (diff)
downloadrt.equinox.p2-519d5c98e23c5900d1725626b7b9bc01099ff20e.tar.gz
rt.equinox.p2-519d5c98e23c5900d1725626b7b9bc01099ff20e.tar.xz
rt.equinox.p2-519d5c98e23c5900d1725626b7b9bc01099ff20e.zip
Added access to updates 3.4 via /proxy/public - useful for redirects
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.testserver')
-rw-r--r--bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/Activator.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.testserver/webfiles/index.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/Activator.java b/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/Activator.java
index 78e3b3ad1..07874cdac 100644
--- a/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/Activator.java
+++ b/bundles/org.eclipse.equinox.p2.testserver/src/org/eclipse/equinox/p2/testserver/Activator.java
@@ -76,6 +76,7 @@ public class Activator implements BundleActivator, ServiceTrackerCustomizer {
httpService.registerServlet("/decelerate", new ChopAndDelay("/decelerate", URI.create("/webfiles"), 3, 0, new LinearChange(0, 5, 100, 0)), null, null); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
httpService.registerServlet("/proxy/truncated", new Truncator("/proxy/truncated", URI.create(SITE), 50), null, null); //$NON-NLS-1$//$NON-NLS-2$
+ httpService.registerServlet("/proxy/public", new BasicResourceDelivery("/proxy/public", URI.create(SITE)), null, null); //$NON-NLS-1$//$NON-NLS-2$
httpService.registerServlet("/proxy/private", new BasicResourceDelivery("/proxy/private", URI.create(SITE)), null, secureHttpContext); //$NON-NLS-1$//$NON-NLS-2$
httpService.registerServlet("/proxy/never", new BasicResourceDelivery("/proxy/private", URI.create(SITE)), null, alwaysFail); //$NON-NLS-1$//$NON-NLS-2$
httpService.registerServlet("/proxy/flipFlop", new BasicResourceDelivery("/proxy/private", URI.create(SITE)), null, flipFlop); //$NON-NLS-1$//$NON-NLS-2$
diff --git a/bundles/org.eclipse.equinox.p2.testserver/webfiles/index.html b/bundles/org.eclipse.equinox.p2.testserver/webfiles/index.html
index 6eedf01fd..55b97505a 100644
--- a/bundles/org.eclipse.equinox.p2.testserver/webfiles/index.html
+++ b/bundles/org.eclipse.equinox.p2.testserver/webfiles/index.html
@@ -9,6 +9,7 @@ log in. The credentials are: user: <b>Aladdin</b>, password: <b>open sesame</b>.
<p>The following real content is registered:</p>
<ul>
<li>/proxy/private/ - goes to http://http://download.eclipse.org/eclipse/updates/3.4, but requires authentication.</li>
+<li>/proxy/public/ - goes to http://http://download.eclipse.org/eclipse/updates/3.4, (useful in redirects).</li>
<li>/proxy/never/ - goes to http://http://download.eclipse.org/eclipse/updates/3.4, but always fail authentication.</li>
<li>/proxy/flipFlop/ - goes to http://http://download.eclipse.org/eclipse/updates/3.4, but fails authentication every second attempt.</li>
<li>/proxy/truncated - goes to updates/3.4, but truncates all files</li>

Back to the top