public class OsmServerHistoryReader extends OsmServerReader
OsmPrimitive from the OSM API server.OsmServerReader.DomParser<R>OsmConnection.OAuthAccessTokenFetcher| Modifier and Type | Field and Description |
|---|---|
private long |
id |
private OsmPrimitiveType |
primitiveType |
contentType, gpxParsedProperlyactiveConnection, cancel, fetcher, oauthParameters| Constructor and Description |
|---|
OsmServerHistoryReader(OsmPrimitiveType type,
long id)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
HistoryDataSet |
parseHistory(ProgressMonitor progressMonitor)
Fetches the history from the OSM API and parses it
|
DataSet |
parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
adaptRequest, fetchData, getAttribute, getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, parseOsm, parseOsmChange, parseOsmChange, parseRawGps, parseRawGps, parseRawNotes, parseRawNotes, setDoAuthenticateaddAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled, obtainAccessToken, retrieveBasicAuthorizationLogin, setOAuthAccessTokenFetcherprivate final OsmPrimitiveType primitiveType
private final long id
public OsmServerHistoryReader(OsmPrimitiveType type, long id)
type - the type of the primitive whose history is to be fetched from the server.
Must not be null.id - the id of the primitivejava.lang.IllegalArgumentException - if type is nullpublic DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm in class OsmServerReaderprogressMonitor - The progress monitorOsmTransferException - if any error occurspublic HistoryDataSet parseHistory(ProgressMonitor progressMonitor) throws OsmTransferException
progressMonitor - progress monitorOsmTransferException - if an exception occurs