public class OsmServerUserInfoReader extends OsmServerReader
gpxParsedProperly
activeConnection, cancel, oauthParameters
Constructor and Description |
---|
OsmServerUserInfoReader()
Constructs a new
OsmServerUserInfoReader . |
Modifier and Type | Method and Description |
---|---|
static UserInfo |
buildFromXML(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,
String reason)
Fetches user info, with an explicit reason.
|
protected static String |
getAttribute(Node node,
String name) |
DataSet |
parseOsm(ProgressMonitor progressMonitor)
Download OSM files from somewhere
|
getBaseUrl, getInputStream, getInputStream, getInputStreamRaw, getInputStreamRaw, getInputStreamRaw, isDoAuthenticate, isGpxParsedProperly, parseNotes, parseOsmBzip2, parseOsmChange, parseOsmChangeBzip2, parseOsmChangeGzip, parseOsmGzip, parseOsmZip, parseRawGps, parseRawGpsBzip2, parseRawNotes, parseRawNotesBzip2, setDoAuthenticate
addAuth, addBasicAuthorizationHeader, addOAuthAuthorizationHeader, cancel, isCanceled
public OsmServerUserInfoReader()
OsmServerUserInfoReader
.protected static String getAttribute(Node node, String name)
public static UserInfo buildFromXML(Document document) throws XmlParsingException
document
- The XML contentsXmlParsingException
- if parsing goes wrongpublic DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException
OsmServerReader
parseOsm
in class OsmServerReader
progressMonitor
- 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, 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