Changeset 5266 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2012-06-03T16:41:25+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/ChangesetClosedException.java
r3562 r5266 14 14 /** 15 15 * A ChangesetClosedException is thrown if the server replies with a HTTP 16 * return code 409 (Conflict) with the error header {@ see#ERROR_HEADER_PATTERN}.16 * return code 409 (Conflict) with the error header {@link #ERROR_HEADER_PATTERN}. 17 17 * 18 18 * Depending on the context the exception is thrown in we have to react differently. … … 50 50 51 51 /** 52 * Replies true if <code>errorHeader</code> matches with {@ see#ERROR_HEADER_PATTERN}52 * Replies true if <code>errorHeader</code> matches with {@link #ERROR_HEADER_PATTERN} 53 53 * 54 54 * @param errorHeader the error header 55 * @return true if <code>errorHeader</code> matches with {@ see#ERROR_HEADER_PATTERN}55 * @return true if <code>errorHeader</code> matches with {@link #ERROR_HEADER_PATTERN} 56 56 */ 57 57 static public boolean errorHeaderMatchesPattern(String errorHeader) { -
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r4902 r5266 67 67 * 68 68 * Caveat: for historical reasons the username might not be unique! It is recommended to use 69 * {@ see#forUser(int)} to restrict the query to a specific user.69 * {@link #forUser(int)} to restrict the query to a specific user. 70 70 * 71 71 * @param username the username. Must not be null. … … 94 94 /** 95 95 * Replies the user name which this query is restricted to. null, if this query isn't 96 * restricted to a user name, i.e. if {@ see#isRestrictedToPartiallyIdentifiedUser()} is false.96 * restricted to a user name, i.e. if {@link #isRestrictedToPartiallyIdentifiedUser()} is false. 97 97 * 98 98 * @return the user name which this query is restricted to … … 406 406 /** 407 407 * Parses the changeset query given as URL query parameters and replies a 408 * {@ seeChangesetQuery}408 * {@link ChangesetQuery} 409 409 * 410 410 * <code>query</code> is the query part of a API url for querying changesets, -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r4196 r5266 24 24 public class DefaultProxySelector extends ProxySelector { 25 25 /** 26 * The {@ seeProxySelector} provided by the JDK will retrieve proxy information26 * The {@link ProxySelector} provided by the JDK will retrieve proxy information 27 27 * from the system settings, if the system property <tt>java.net.useSystemProxies</tt> 28 28 * is defined <strong>at startup</strong>. It has no effect if the property is set … … 40 40 41 41 /** 42 * The {@ seeProxySelector} provided by the JDK will retrieve proxy information42 * The {@link ProxySelector} provided by the JDK will retrieve proxy information 43 43 * from the system settings, if the system property <tt>java.net.useSystemProxies</tt> 44 44 * is defined <strong>at startup</strong>. If the property is set later by the application, -
trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java
r4100 r5266 70 70 * 71 71 * @param diffUploadResponse the response. Must not be null. 72 * @param progressMonitor a progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null72 * @param progressMonitor a progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null 73 73 * @throws IllegalArgumentException thrown if diffUploadRequest is null 74 74 * @throws OsmDataParsingException thrown if the diffUploadRequest can't be parsed successfully … … 105 105 * 106 106 * @param cs the current changeset. Ignored if null. 107 * @param monitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if null107 * @param monitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 108 108 * @return the collection of processed primitives 109 109 */ -
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r4217 r5266 29 29 30 30 /** 31 * Retrieves a set of {@ seeOsmPrimitive}s from an OSM server using the so called31 * Retrieves a set of {@link OsmPrimitive}s from an OSM server using the so called 32 32 * Multi Fetch API. 33 33 * … … 77 77 78 78 /** 79 * Remembers an {@ seeOsmPrimitive}'s id. The id will79 * Remembers an {@link OsmPrimitive}'s id. The id will 80 80 * later be fetched as part of a Multi Get request. 81 81 * … … 94 94 95 95 /** 96 * remembers an {@ seeOsmPrimitive}'s id. <code>ds</code> must include97 * an {@ seeOsmPrimitive} with id=<code>id</code>. The id will96 * remembers an {@link OsmPrimitive}'s id. <code>ds</code> must include 97 * an {@link OsmPrimitive} with id=<code>id</code>. The id will 98 98 * later we fetched as part of a Multi Get request. 99 99 * … … 103 103 * @param id the id 104 104 * @exception IllegalArgumentException thrown, if ds is null 105 * @exception NoSuchElementException thrown, if ds doesn't include an {@ seeOsmPrimitive} with105 * @exception NoSuchElementException thrown, if ds doesn't include an {@link OsmPrimitive} with 106 106 * id=<code>id</code> 107 107 */ … … 135 135 136 136 /** 137 * appends a {@ seeNode}s id to the list of ids which will be fetched from the server.137 * appends a {@link Node}s id to the list of ids which will be fetched from the server. 138 138 * 139 139 * @param node the node (ignored, if null) … … 148 148 149 149 /** 150 * appends a {@ seeWay}s id and the list of ids of nodes the way refers to the list of ids which will be fetched from the server.150 * appends a {@link Way}s id and the list of ids of nodes the way refers to the list of ids which will be fetched from the server. 151 151 * 152 152 * @param way the way (ignored, if null) … … 167 167 168 168 /** 169 * appends a {@ seeRelation}s id to the list of ids which will be fetched from the server.169 * appends a {@link Relation}s id to the list of ids which will be fetched from the server. 170 170 * 171 171 * @param relation the relation (ignored, if null) … … 204 204 205 205 /** 206 * appends a list of {@ seeOsmPrimitive} to the list of ids which will be fetched from the server.206 * appends a list of {@link OsmPrimitive} to the list of ids which will be fetched from the server. 207 207 * 208 208 * @param primitives the list of primitives (ignored, if null) … … 223 223 224 224 /** 225 * extracts a subset of max {@ see#MAX_IDS_PER_REQUEST} ids from <code>ids</code> and225 * extracts a subset of max {@link #MAX_IDS_PER_REQUEST} ids from <code>ids</code> and 226 226 * replies the subset. The extracted subset is removed from <code>ids</code>. 227 227 * … … 248 248 /** 249 249 * builds the Multi Get request string for a set of ids and a given 250 * {@ seeOsmPrimitiveType}.250 * {@link OsmPrimitiveType}. 251 251 * 252 252 * @param type the type … … 271 271 /** 272 272 * builds the Multi Get request string for a single id and a given 273 * {@ seeOsmPrimitiveType}.273 * {@link OsmPrimitiveType}. 274 274 * 275 275 * @param type the type … … 286 286 287 287 /** 288 * invokes a Multi Get for a set of ids and a given {@ seeOsmPrimitiveType}.289 * The retrieved primitives are merged to {@ see#outputDataSet}.288 * invokes a Multi Get for a set of ids and a given {@link OsmPrimitiveType}. 289 * The retrieved primitives are merged to {@link #outputDataSet}. 290 290 * 291 291 * @param type the type … … 309 309 310 310 /** 311 * invokes a Multi Get for a single id and a given {@ seeOsmPrimitiveType}.312 * The retrieved primitive is merged to {@ see#outputDataSet}.311 * invokes a Multi Get for a single id and a given {@link OsmPrimitiveType}. 312 * The retrieved primitive is merged to {@link #outputDataSet}. 313 313 * 314 314 * @param type the type … … 333 333 334 334 /** 335 * invokes a sequence of Multi Gets for individual ids in a set of ids and a given {@ seeOsmPrimitiveType}.336 * The retrieved primitives are merged to {@ see#outputDataSet}.335 * invokes a sequence of Multi Gets for individual ids in a set of ids and a given {@link OsmPrimitiveType}. 336 * The retrieved primitives are merged to {@link #outputDataSet}. 337 337 * 338 338 * This method is used if one of the ids in pkg doesn't exist (the server replies with return code 404). … … 380 380 381 381 /** 382 * merges the dataset <code>from</code> to {@ see#outputDataSet}.382 * merges the dataset <code>from</code> to {@link #outputDataSet}. 383 383 * 384 384 * @param from the other dataset … … 391 391 392 392 /** 393 * fetches a set of ids of a given {@ seeOsmPrimitiveType} from the server393 * fetches a set of ids of a given {@link OsmPrimitiveType} from the server 394 394 * 395 395 * @param ids the set of ids … … 423 423 424 424 /** 425 * invokes one or more Multi Gets to fetch the {@ seeOsmPrimitive}s and replies425 * invokes one or more Multi Gets to fetch the {@link OsmPrimitive}s and replies 426 426 * the dataset of retrieved primitives. Note that the dataset includes non visible primitives too! 427 427 * In contrast to a simple Get for a node, a way, or a relation, a Multi Get always replies … … 429 429 * visible==false). 430 430 * 431 * Invoke {@ see#getMissingPrimitives()} to get a list of primitives which have not been431 * Invoke {@link #getMissingPrimitives()} to get a list of primitives which have not been 432 432 * found on the server (the server response code was 404) 433 433 * -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r5084 r5266 59 59 60 60 /** 61 * replies the {@ seeOsmApi} for a given server URL61 * replies the {@link OsmApi} for a given server URL 62 62 * 63 63 * @param serverUrl the server URL … … 75 75 } 76 76 /** 77 * replies the {@ seeOsmApi} for the URL given by the preference <code>osm-server.url</code>77 * replies the {@link OsmApi} for the URL given by the preference <code>osm-server.url</code> 78 78 * 79 79 * @return the OsmApi … … 387 387 * 388 388 * @param changeset the changeset to update. Must not be null. 389 * @param monitor the progress monitor. If null, uses the {@ seeNullProgressMonitor#INSTANCE}.389 * @param monitor the progress monitor. If null, uses the {@link NullProgressMonitor#INSTANCE}. 390 390 * 391 391 * @throws OsmTransferException if something goes wrong. … … 428 428 * 429 429 * @param changeset the changeset to be closed. Must not be null. changeset.getId() > 0 required. 430 * @param monitor the progress monitor. If null, uses {@ seeNullProgressMonitor#INSTANCE}430 * @param monitor the progress monitor. If null, uses {@link NullProgressMonitor#INSTANCE} 431 431 * 432 432 * @throws OsmTransferException if something goes wrong. -
trunk/src/org/openstreetmap/josm/io/OsmChangeReader.java
r4532 r5266 100 100 * 101 101 * @param source the source input stream. Must not be null. 102 * @param progressMonitor the progress monitor. If null, {@ seeNullProgressMonitor#INSTANCE} is assumed102 * @param progressMonitor the progress monitor. If null, {@link NullProgressMonitor#INSTANCE} is assumed 103 103 * 104 104 * @return the dataset with the parsed data -
trunk/src/org/openstreetmap/josm/io/OsmChangesetContentParser.java
r4734 r5266 300 300 * Parses the content 301 301 * 302 * @param progressMonitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE}302 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} 303 303 * if null 304 304 * @return the parsed data -
trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java
r4734 r5266 32 32 * Parser for OSM history data. 33 33 * 34 * It is slightly different from {@ seeOsmReader} because we don't build an internal graph of35 * {@ see OsmPrimitive}s. We use objects derived from {@seeHistoryOsmPrimitive} instead and we36 * keep the data in a dedicated {@ seeHistoryDataSet}.34 * It is slightly different from {@link OsmReader} because we don't build an internal graph of 35 * {@link OsmPrimitive}s. We use objects derived from {@link HistoryOsmPrimitive} instead and we 36 * keep the data in a dedicated {@link HistoryDataSet}. 37 37 * 38 38 */ -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r5025 r5266 606 606 * 607 607 * @param source the source input stream. Must not be null. 608 * @param progressMonitor the progress monitor. If null, {@ seeNullProgressMonitor#INSTANCE} is assumed608 * @param progressMonitor the progress monitor. If null, {@link NullProgressMonitor#INSTANCE} is assumed 609 609 * 610 610 * @return the dataset with the parsed data -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r5251 r5266 21 21 /** 22 22 * OsmServerBackreferenceReader fetches the primitives from the OSM server which 23 * refer to a specific primitive. For a {@ seeNode}, ways and relations are retrieved24 * which refer to the node. For a {@ see Way} or a {@seeRelation}, only relations are23 * refer to a specific primitive. For a {@link Node}, ways and relations are retrieved 24 * which refer to the node. For a {@link Way} or a {@link Relation}, only relations are 25 25 * read. 26 26 * … … 29 29 * of these calls is to reply incomplete primitives only. 30 30 * 31 * If you set {@ see #setReadFull(boolean)} to true this reader uses a {@seeMultiFetchServerObjectReader}31 * If you set {@link #setReadFull(boolean)} to true this reader uses a {@link MultiFetchServerObjectReader} 32 32 * to complete incomplete primitives. 33 33 * … … 123 123 124 124 /** 125 * Reads referring ways from the API server and replies them in a {@ seeDataSet}125 * Reads referring ways from the API server and replies them in a {@link DataSet} 126 126 * 127 127 * @return the data set … … 160 160 161 161 /** 162 * Reads referring relations from the API server and replies them in a {@ seeDataSet}162 * Reads referring relations from the API server and replies them in a {@link DataSet} 163 163 * 164 164 * @param progressMonitor the progress monitor … … 203 203 * 204 204 * <ul> 205 * <li>if this reader reads referers for a {@ seeNode}, referring ways are always205 * <li>if this reader reads referers for a {@link Node}, referring ways are always 206 206 * read individually from the server</li> 207 * <li>if this reader reads referers for an {@ see Way} or a {@seeRelation}, referring relations208 * are only read fully if {@ see#setReadFull(boolean)} is set to true.</li>207 * <li>if this reader reads referers for an {@link Way} or a {@link Relation}, referring relations 208 * are only read fully if {@link #setReadFull(boolean)} is set to true.</li> 209 209 * </ul> 210 210 * … … 249 249 /** 250 250 * Reads the referring primitives from the OSM server, parses them and 251 * replies them as {@ seeDataSet}252 * 253 * @param progressMonitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if null.251 * replies them as {@link DataSet} 252 * 253 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null. 254 254 * @return the dataset with the referring primitives 255 255 * @exception OsmTransferException thrown if an error occurs while communicating with the server -
trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java
r3083 r5266 22 22 23 23 /** 24 * Reads the history of an {@ seeOsmPrimitive} from the OSM API server.24 * Reads the history of an {@link OsmPrimitive} from the OSM API server. 25 25 * 26 26 */ … … 47 47 * Queries a list 48 48 * @param query the query specification. Must not be null. 49 * @param monitor a progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if null49 * @param monitor a progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 50 50 * @return the list of changesets read from the server 51 51 * @throws IllegalArgumentException thrown if query is null … … 80 80 * 81 81 * @param id the changeset id. id > 0 required. 82 * @param monitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if null82 * @param monitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 83 83 * @return the changeset read 84 84 * @throws OsmTransferException thrown if something goes wrong … … 116 116 * 117 117 * @param ids the list of ids. Ignored if null. Only load changesets for ids > 0. 118 * @param monitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if null118 * @param monitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if null 119 119 * @return the changeset read 120 120 * @throws OsmTransferException thrown if something goes wrong … … 165 165 * 166 166 * @param id the changeset id. >0 required. 167 * @param monitor the progress monitor. {@ seeNullProgressMonitor#INSTANCE} assumed if null.167 * @param monitor the progress monitor. {@link NullProgressMonitor#INSTANCE} assumed if null. 168 168 * @return the changeset content 169 169 * @throws IllegalArgumentException thrown if id <= 0 -
trunk/src/org/openstreetmap/josm/io/OsmServerHistoryReader.java
r3083 r5266 14 14 15 15 /** 16 * Reads the history of an {@ seeOsmPrimitive} from the OSM API server.16 * Reads the history of an {@link OsmPrimitive} from the OSM API server. 17 17 * 18 18 */ -
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r4734 r5266 106 106 * Downloads and parses the data. 107 107 * 108 * @param progressMonitor the progress monitor. Set to {@ seeNullProgressMonitor#INSTANCE} if108 * @param progressMonitor the progress monitor. Set to {@link NullProgressMonitor#INSTANCE} if 109 109 * null 110 110 * @return the downloaded data -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r4645 r5266 185 185 * @param primitives list of objects to send 186 186 * @param changeset the changeset the data is uploaded to. Must not be null. 187 * @param monitor the progress monitor. If null, assumes {@ seeNullProgressMonitor#INSTANCE}187 * @param monitor the progress monitor. If null, assumes {@link NullProgressMonitor#INSTANCE} 188 188 * @throws IllegalArgumentException thrown if changeset is null 189 189 * @throws IllegalArgumentException thrown if strategy is null -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
r4690 r5266 11 11 * A CredentialsAgent manages two credentials: 12 12 * <ul> 13 * <li>the credential for {@ seeRequestorType#SERVER} which is equal to the OSM API credentials13 * <li>the credential for {@link RequestorType#SERVER} which is equal to the OSM API credentials 14 14 * in JOSM</li> 15 * <li>the credential for {@ seeRequestorType#PROXY} which is equal to the credentials for an15 * <li>the credential for {@link RequestorType#PROXY} which is equal to the credentials for an 16 16 * optional HTTP proxy server a user may use</li> 17 17 * </ul> … … 24 24 * Looks up the credentials for a given type. 25 25 * 26 * @param the type of service. {@ see RequestorType#SERVER} for the OSM API server, {@seeRequestorType#PROXY}26 * @param the type of service. {@link RequestorType#SERVER} for the OSM API server, {@link RequestorType#PROXY} 27 27 * for a proxy server 28 28 * @return the credentials … … 34 34 * Saves the credentials in <code>credentials</code> for the given service type. 35 35 * 36 * @param the type of service. {@ see RequestorType#SERVER} for the OSM API server, {@seeRequestorType#PROXY}36 * @param the type of service. {@link RequestorType#SERVER} for the OSM API server, {@link RequestorType#PROXY} 37 37 * for a proxy server 38 38 * @param credentials the credentials … … 43 43 /** 44 44 * 45 * @param requestorType the type of service. {@ see RequestorType#SERVER} for the OSM API server, {@seeRequestorType#PROXY}45 * @param requestorType the type of service. {@link RequestorType#SERVER} for the OSM API server, {@link RequestorType#PROXY} 46 46 * for a proxy server 47 47 * @param noSuccessWithLastResponse true, if the last request with the supplied credentials failed; false otherwise. -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgentResponse.java
r4310 r5266 3 3 4 4 /** 5 * CredentialsAgentResponse represents the response from {@ seeCredentialsAgent#getCredentials(java.net.Authenticator.RequestorType, boolean)}.5 * CredentialsAgentResponse represents the response from {@link CredentialsAgent#getCredentials(java.net.Authenticator.RequestorType, boolean)}. 6 6 * 7 7 * The response consists of the username and the password the requested credentials consists of. 8 8 * In addition, it provides information whether authentication was canceled by the user, i.e. 9 * because he or she canceled a username/password dialog (see {@ see#isCanceled()}.9 * because he or she canceled a username/password dialog (see {@link #isCanceled()}. 10 10 * 11 11 */ -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsManager.java
r5111 r5266 14 14 * CredentialManager is a factory for the single credential agent used. 15 15 * 16 * Currently, it defaults to replying an instance of {@ seeJosmPreferencesCredentialAgent}.16 * Currently, it defaults to replying an instance of {@link JosmPreferencesCredentialAgent}. 17 17 * 18 18 */ -
trunk/src/org/openstreetmap/josm/io/auth/DefaultAuthenticator.java
r4690 r5266 12 12 * This is the default authenticator used in JOSM. It delegates lookup of credentials 13 13 * for the OSM API and an optional proxy server to the currently configured 14 * {@ seeCredentialsManager}.14 * {@link CredentialsManager}. 15 15 * 16 16 */
Note:
See TracChangeset
for help on using the changeset viewer.