Package org.openstreetmap.josm.io
Class OsmServerHistoryReader
java.lang.Object
org.openstreetmap.josm.io.OsmConnection
org.openstreetmap.josm.io.OsmServerReader
org.openstreetmap.josm.io.OsmServerHistoryReader
Reads the history of an
OsmPrimitive from the OSM API server.-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.io.OsmServerReader
OsmServerReader.DomParser<R>Nested classes/interfaces inherited from class org.openstreetmap.josm.io.OsmConnection
OsmConnection.OAuthAccessTokenFetcher -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.io.OsmServerReader
contentType, gpxParsedProperlyFields inherited from class org.openstreetmap.josm.io.OsmConnection
activeConnection, cancel, fetcher, oAuth20Parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseHistory(ProgressMonitor progressMonitor) Fetches the history from the OSM API and parses itparseOsm(ProgressMonitor progressMonitor) don't use - not implemented!Methods inherited from class org.openstreetmap.josm.io.OsmServerReader
adaptRequest, fetchData, getAttribute, getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, parseOsm, parseOsmChange, parseOsmChange, parseRawGps, parseRawGps, parseRawNotes, parseRawNotes, setDoAuthenticateMethods inherited from class org.openstreetmap.josm.io.OsmConnection
addAuth, addBasicAuthorizationHeader, addOAuth20AuthorizationHeader, cancel, isCanceled, retrieveBasicAuthorizationLogin, setOAuthAccessTokenFetcher
-
Field Details
-
primitiveType
-
id
-
-
Constructor Details
-
OsmServerHistoryReader
constructor- Parameters:
type- the type of the primitive whose history is to be fetched from the server. Must not be null.id- the id of the primitive- Throws:
IllegalArgumentException- if type is null
-
-
Method Details
-
parseOsm
don't use - not implemented!- Specified by:
parseOsmin classOsmServerReader- Parameters:
progressMonitor- The progress monitor- Returns:
- The corresponding dataset
- Throws:
OsmTransferException- if any error occurs
-
parseHistory
Fetches the history from the OSM API and parses it- Parameters:
progressMonitor- progress monitor- Returns:
- the data set with the parsed history data
- Throws:
OsmTransferException- if an exception occurs
-