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 |
gpxParsedProperly
activeConnection, 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, parseOsmBzip2, parseOsmChange, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseOsmZip, parseRawGps, parseRawGps, parseRawGpsBzip2, parseRawNotes, parseRawNotes, parseRawNotesBzip2, setDoAuthenticate
addAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled, obtainAccessToken, retrieveBasicAuthorizationLogin, setOAuthAccessTokenFetcher
private 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 OsmServerReader
progressMonitor
- The progress monitorOsmTransferException
- if any error occurspublic HistoryDataSet parseHistory(ProgressMonitor progressMonitor) throws OsmTransferException
progressMonitor
- progress monitorOsmTransferException
- if an exception occurs