Changeset 11194 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-10-30T18:14:52+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r11193 r11194 16 16 import org.openstreetmap.josm.data.osm.DataSet; 17 17 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 18 import org.openstreetmap.josm.io.auth.CredentialsAgentException; 19 import org.openstreetmap.josm.io.auth.CredentialsManager; 18 20 import org.openstreetmap.josm.tools.HttpClient; 19 21 … … 29 31 public abstract class OsmServerReader extends OsmConnection { 30 32 private final OsmApi api = OsmApi.getOsmApi(); 31 private boolean doAuthenticate = OsmApi.isUsingOAuth();33 private boolean doAuthenticate; 32 34 protected boolean gpxParsedProperly; 35 36 /** 37 * Constructs a new {@code OsmServerReader}. 38 */ 39 public OsmServerReader() { 40 try { 41 doAuthenticate = OsmApi.isUsingOAuth() && CredentialsManager.getInstance().lookupOAuthAccessToken() != null; 42 } catch (CredentialsAgentException e) { 43 Main.warn(e); 44 } 45 } 33 46 34 47 /**
Note:
See TracChangeset
for help on using the changeset viewer.