Changeset 592 in josm for trunk/src/org
- Timestamp:
- 2008-03-28T00:47:41+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r529 r592 27 27 28 28 /** 29 * Class that upload es all changes to the osm server.29 * Class that uploads all changes to the osm server. 30 30 * 31 31 * This is done like this: - All objects with id = 0 are uploaded as new, except … … 41 41 42 42 /** 43 * This list contain all suc essfull processed objects. The caller of43 * This list contain all successful processed objects. The caller of 44 44 * upload* has to check this after the call and update its dataset. 45 45 * 46 * If a server connection error occ ours, this may contain fewer entries46 * If a server connection error occurs, this may contain fewer entries 47 47 * than where passed in the list to upload*. 48 48 */ … … 192 192 activeConnection.setConnectTimeout(15000); 193 193 activeConnection.setRequestMethod(requestMethod); 194 if (addBody) 194 addAuth(activeConnection); 195 if (addBody) { 195 196 activeConnection.setDoOutput(true); 196 activeConnection.connect();197 System.out.println("connected");198 if (addBody) {199 197 OutputStream out = activeConnection.getOutputStream(); 200 198 OsmWriter.output(out, new OsmWriter.Single(osm, true)); 201 199 out.close(); 202 } 200 } 201 activeConnection.connect(); 202 System.out.println("connected"); 203 203 204 204 int retCode = activeConnection.getResponseCode();
Note:
See TracChangeset
for help on using the changeset viewer.