Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-09-08 02:13:07 +0000
committermkersten2006-09-08 02:13:07 +0000
commit52c602a8bdd3b62127b9e4f2baa38c62bfdfb0b8 (patch)
tree1996db501b0870c56d5c4c17ec2db1ea3463df07 /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java
parent34cde3f36a3e427f31cd8468c7f0e099fe3c4e91 (diff)
downloadorg.eclipse.mylyn.tasks-52c602a8bdd3b62127b9e4f2baa38c62bfdfb0b8.tar.gz
org.eclipse.mylyn.tasks-52c602a8bdd3b62127b9e4f2baa38c62bfdfb0b8.tar.xz
org.eclipse.mylyn.tasks-52c602a8bdd3b62127b9e4f2baa38c62bfdfb0b8.zip
Progress on: 154876: extract trac.core plug-in from trac.ui
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154876
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java42
1 files changed, 20 insertions, 22 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java
index 42dec8ae4..4824d516a 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaCorePlugin.java
@@ -17,13 +17,10 @@ import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Proxy;
-import java.security.KeyManagementException;
-import java.security.NoSuchAlgorithmException;
+import java.security.GeneralSecurityException;
import java.util.HashMap;
import java.util.Map;
-import javax.security.auth.login.LoginException;
-
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
@@ -49,12 +46,12 @@ public class BugzillaCorePlugin extends Plugin {
private static BugzillaCorePlugin INSTANCE;
private static boolean cacheFileRead = false;
-
+
private static File repositoryConfigurationFile = null;
/** Product configuration for the current server */
private static Map<String, RepositoryConfiguration> repositoryConfigurations = new HashMap<String, RepositoryConfiguration>();
-
+
public BugzillaCorePlugin() {
super();
}
@@ -85,26 +82,28 @@ public class BugzillaCorePlugin extends Plugin {
return repositoryConfigurations.get(repositoryUrl);
}
-
public static void setConfigurationCacheFile(File file) {
repositoryConfigurationFile = file;
}
-
+
/**
* Retrieves the latest repository configuration from the server
- * @throws BugzillaException
+ *
+ * @throws BugzillaException
+ * @throws GeneralSecurityException
+ * @throws
*/
public static RepositoryConfiguration getRepositoryConfiguration(boolean forceRefresh, String repositoryUrl,
Proxy proxySettings, String userName, String password, String encoding) throws IOException,
- KeyManagementException, LoginException, NoSuchAlgorithmException, BugzillaException {
+ BugzillaException, GeneralSecurityException {
if (!cacheFileRead) {
readRepositoryConfigurationFile();
cacheFileRead = true;
}
if (repositoryConfigurations.get(repositoryUrl) == null || forceRefresh) {
RepositoryConfigurationFactory configFactory = new RepositoryConfigurationFactory();
- addRepositoryConfiguration(configFactory.getConfiguration(repositoryUrl,
- proxySettings, userName, password, encoding));
+ addRepositoryConfiguration(configFactory.getConfiguration(repositoryUrl, proxySettings, userName, password,
+ encoding));
}
return repositoryConfigurations.get(repositoryUrl);
}
@@ -115,14 +114,15 @@ public class BugzillaCorePlugin extends Plugin {
repositoryConfigurations.put(config.getRepositoryUrl(), config);
}
-// /**
-// * Returns the path to the file cacheing the product configuration.
-// */
-// private static IPath getProductConfigurationCachePath() {
-// IPath stateLocation = Platform.getStateLocation(BugzillaPlugin.getDefault().getBundle());
-// IPath configFile = stateLocation.append("repositoryConfigurations");
-// return configFile;
-// }
+ // /**
+ // * Returns the path to the file cacheing the product configuration.
+ // */
+ // private static IPath getProductConfigurationCachePath() {
+ // IPath stateLocation =
+ // Platform.getStateLocation(BugzillaPlugin.getDefault().getBundle());
+ // IPath configFile = stateLocation.append("repositoryConfigurations");
+ // return configFile;
+ // }
/** public for testing */
public void removeConfiguration(RepositoryConfiguration config) {
@@ -233,5 +233,3 @@ public class BugzillaCorePlugin extends Plugin {
return bugFile;
}
}
-
-

Back to the top