adding the advanced tab for proxy configuration.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9914 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-06-07 01:05:52 +00:00
1 parent 9ceeb55624
commit 59a6f8e771
4 files changed
+42 -17

No files matched your search

@@ -26,6 +26,7 @@ import java.util.logging.Logger;
import org.apache.commons.logging.LogFactory;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.QueryParameter;
/**
* Manages {@link PluginWrapper}s.
@@ -171,6 +172,12 @@ public final class PluginManager extends AbstractModelObject {
rsp.sendRedirect("../updateCenter/");
}
public void doProxyConfigure(@QueryParameter("proxy.server") String server, @QueryParameter("proxy.port") String port, StaplerResponse rsp) throws IOException {
System.setProperty("http.proxyHost",Util.fixEmptyAndTrim(server));
System.setProperty("http.proxyPort",Util.fixEmptyAndTrim(port));
rsp.sendRedirect("./advanced");
}
private final class UberClassLoader extends ClassLoader {
public UberClassLoader() {
super(PluginManager.class.getClassLoader());