Changeset 8811
- Timestamp:
- 2004-12-15T11:13:06+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Dictionary.java
r8652 r8811 213 213 214 214 215 static public void registerTooltip(Component component, String tooltip_key) { 215 static public void registerTooltip(Component component, String tooltip_key) 216 { 216 217 setTooltip(component, tooltip_key); 217 218 } 218 219 219 220 220 static public void registerTooltipText(Component component, String tooltip) { 221 static public void registerTooltipText(Component component, String tooltip) 222 { 221 223 setTooltipText(component, tooltip); 222 224 } -
trunk/gli/src/org/greenstone/gatherer/GAuthenticator.java
r8474 r8811 40 40 import java.awt.event.*; 41 41 import java.net.*; 42 import java.util.*; 42 43 import javax.swing.*; 43 44 import org.greenstone.gatherer.gui.GLIButton; … … 48 49 */ 49 50 public class GAuthenticator 50 extends Authenticator { 51 extends Authenticator 52 { 53 static public Hashtable authentications = new Hashtable(); 54 51 55 /** Indicates if this authentication prompt been cancelled, and if so rolls-back authentication. */ 52 56 private boolean authentication_cancelled = false; … … 129 133 if(!authentication_cancelled) { 130 134 // Store the authentication 131 Gatherer.authentications.put(getRequestingHost() + ":" + getRequestingPort(), username.getText() + "@" + new String(password.getPassword()));135 authentications.put(getRequestingHost() + ":" + getRequestingPort(), username.getText() + "@" + new String(password.getPassword())); 132 136 return new PasswordAuthentication(username.getText(), password.getPassword()); 133 137 } else { -
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r8807 r8811 64 64 public class Gatherer 65 65 { 66 static public Hashtable authentications = new Hashtable(); 67 68 static final private String SKIN_DEFINITION_FILE = "lib/greenaqua/greenaqua.xml"; 69 70 /** Has the exit flag been set? <i>true</i> if so, <i>false</i> otherwise. */ 66 /** Has the exit flag been set? */ 71 67 public boolean exit = false; 72 /** The size of the Gatherer window. */73 public Dimension frame_size = null;74 68 75 69 /** All of the external applications that must exit before we close the Gatherer. */ -
trunk/gli/src/org/greenstone/gatherer/collection/DownloadJob.java
r8783 r8811 46 46 import org.greenstone.gatherer.Dictionary; 47 47 import org.greenstone.gatherer.Gatherer; 48 import org.greenstone.gatherer.GAuthenticator; 48 49 import org.greenstone.gatherer.WGet; 49 50 import org.greenstone.gatherer.file.WorkspaceTree; … … 231 232 String address = proxy_host + ":" + proxy_port; 232 233 int count = 0; 233 while(count < 3 && (user_pass = (String) G atherer.authentications.get(address)) == null) {234 while(count < 3 && (user_pass = (String) GAuthenticator.authentications.get(address)) == null) { 234 235 Authenticator.requestPasswordAuthentication(proxy_host, null, Integer.parseInt(proxy_port), "http://", Dictionary.get("WGet.Prompt"), "HTTP"); 235 236 count++;
Note:
See TracChangeset
for help on using the changeset viewer.