package com.perforce.spark.connection; import java.util.ResourceBundle; public class ConnectionConfig { private static ResourceBundle bundle = ResourceBundle.getBundle("config"); public static String toUri() { String sslStr = bundle.getString("com.perforce.pam.p4ssl"); boolean ssl = "true".equalsIgnoreCase(sslStr); String port = bundle.getString("com.perforce.pam.p4port"); if (ssl) { return "p4javassl://" + port; } else { return "p4java://" + port; } } public static String getSearch() { return bundle.getString("com.perforce.pam.p4search"); } public static String getClientPrefix() { return bundle.getString("com.perforce.pam.clientprefix"); } public static String getProxyUser() { return bundle.getString("com.perforce.pam.proxy.user"); } public static String getProxyTicket() { return bundle.getString("com.perforce.pam.proxy.ticket"); } public static String getProduct() { return bundle.getString("com.perforce.pam.product"); } public static String getVersion() { return bundle.getString("com.perforce.pam.version"); } public static int getProxyPool() { String poolStr = bundle.getString("com.perforce.pam.proxy.poolsize"); int pool = Integer.parseInt(poolStr); return pool; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 15372 | Paul Allen | Added p4search host:port to configuration. | ||
#3 | 15313 | Paul Allen |
Added Client Workspace pool to manage parallel upload requests by the proxy (configuration set to 50). User uploads are restricted to only one per user. |
||
#2 | 15094 | Paul Allen | Added support for Proxy and Group. | ||
#1 | 14228 | Paul Allen |
Moved View over to the new model. Retactor connection to package. |
||
//guest/paul_allen/p4am/src/main/java/com/perforce/spark/ConnectionConfig.java | |||||
#9 | 14047 | Paul Allen | Moved depot to list and added config. | ||
#8 | 14017 | Paul Allen | Proxy caching to Perforce and SLF4J logging. | ||
#7 | 14013 | Paul Allen | Basic proxy | ||
#6 | 13969 | Paul Allen | Depot list/create for Assets | ||
#5 | 13862 | Paul Allen | Submit uploads to Perforce | ||
#4 | 13798 | Paul Allen | Basic file upload and login/logout cookie tidyup | ||
#3 | 13746 | Paul Allen | Basic File/Dir browsing and Cookie management. | ||
#2 | 13728 | Paul Allen | Error support | ||
#1 | 13720 | Paul Allen | Perforce Asset Manager (PAM or P4AM) -- ideas |