public class OsmServerUserInfoReader extends OsmServerReader
OsmServerReader.DomParser<R>OsmConnection.OAuthAccessTokenFetchercontentType, gpxParsedProperlyactiveConnection, cancel, fetcher, oauthParameters| Constructor and Description |
|---|
OsmServerUserInfoReader()
Constructs a new
OsmServerUserInfoReader. |
| Modifier and Type | Method and Description |
|---|---|
static UserInfo |
buildFromXML(org.w3c.dom.Document document)
Parses the given XML data and returns the associated user info.
|
UserInfo |
fetchUserInfo(ProgressMonitor monitor)
Fetches user info, without explicit reason.
|
UserInfo |
fetchUserInfo(ProgressMonitor monitor,
java.lang.String reason)
Fetches user info, with an explicit reason.
|
DataSet |
parseOsm(ProgressMonitor progressMonitor)
Download OSM files from somewhere
|
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, setOAuthAccessTokenFetcherpublic OsmServerUserInfoReader()
OsmServerUserInfoReader.public static UserInfo buildFromXML(org.w3c.dom.Document document) throws XmlParsingException
document - The XML contentsXmlParsingException - if parsing goes wrongpublic DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
OsmServerReaderparseOsm in class OsmServerReaderprogressMonitor - The progress monitorOsmTransferException - if any error occurspublic UserInfo fetchUserInfo(ProgressMonitor monitor) throws OsmTransferException
monitor - The progress monitorOsmTransferException - if something goes wrongpublic UserInfo fetchUserInfo(ProgressMonitor monitor, java.lang.String reason) throws OsmTransferException
monitor - The progress monitorreason - The reason to show on console. Can be null if no reason is givenOsmTransferException - if something goes wrong