public class OsmServerChangesetReader extends OsmServerReader
OsmPrimitive from the OSM API server.OsmServerReader.DomParser<R>OsmConnection.OAuthAccessTokenFetcher| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
useAnonymousUser |
contentType, gpxParsedProperlyactiveConnection, cancel, fetcher, oauthParameters| Constructor and Description |
|---|
OsmServerChangesetReader()
Constructs a new
OsmServerChangesetReader with default settings. |
OsmServerChangesetReader(boolean useAnonymousUser)
Constructs a new
OsmServerChangesetReader |
| Modifier and Type | Method and Description |
|---|---|
ChangesetDataSet |
downloadChangeset(int id,
ProgressMonitor monitor)
Downloads the content of a changeset
|
protected java.io.InputStream |
getChangesetInputStream(long id,
boolean includeDiscussion,
ProgressMonitor monitor) |
DataSet |
parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
java.util.List<Changeset> |
queryChangesets(ChangesetQuery query,
ProgressMonitor monitor)
Queries a list
|
Changeset |
readChangeset(long id,
boolean includeDiscussion,
ProgressMonitor monitor)
Reads the changeset with id
id from the server. |
java.util.List<Changeset> |
readChangesets(java.util.Collection<java.lang.Integer> ids,
boolean includeDiscussion,
ProgressMonitor monitor)
Reads the changesets with id
ids from the server. |
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, setOAuthAccessTokenFetcherfinal boolean useAnonymousUser
public OsmServerChangesetReader()
OsmServerChangesetReader with default settings.public OsmServerChangesetReader(boolean useAnonymousUser)
OsmServerChangesetReaderuseAnonymousUser - if true, replace all user information with the anonymous userpublic DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
parseOsm in class OsmServerReaderprogressMonitor - The progress monitorOsmTransferException - if any error occursprotected final java.io.InputStream getChangesetInputStream(long id, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
OsmTransferExceptionpublic java.util.List<Changeset> queryChangesets(ChangesetQuery query, ProgressMonitor monitor) throws OsmTransferException
query - the query specification. Must not be null.monitor - a progress monitor. Set to NullProgressMonitor.INSTANCE if nulljava.lang.IllegalArgumentException - if query is nullOsmTransferException - if something goes wrongpublic Changeset readChangeset(long id, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
id from the server.id - the changeset id. id > 0 required.includeDiscussion - determines if discussion comments must be downloaded or notmonitor - the progress monitor. Set to NullProgressMonitor.INSTANCE if nullOsmTransferException - if something goes wrongjava.lang.IllegalArgumentException - if id <= 0public java.util.List<Changeset> readChangesets(java.util.Collection<java.lang.Integer> ids, boolean includeDiscussion, ProgressMonitor monitor) throws OsmTransferException
ids from the server.ids - the list of ids. Ignored if null. Only load changesets for ids > 0.includeDiscussion - determines if discussion comments must be downloaded or notmonitor - the progress monitor. Set to NullProgressMonitor.INSTANCE if nullOsmTransferException - if something goes wrongjava.lang.IllegalArgumentException - if id <= 0public ChangesetDataSet downloadChangeset(int id, ProgressMonitor monitor) throws OsmTransferException
id - the changeset id. > 0 required.monitor - the progress monitor. NullProgressMonitor.INSTANCE assumed if null.java.lang.IllegalArgumentException - if id <= 0OsmTransferException - if something went wrong