Package | Description |
---|---|
org.openstreetmap.josm.actions | |
org.openstreetmap.josm.actions.downloadtasks | |
org.openstreetmap.josm.gui | |
org.openstreetmap.josm.gui.dialogs | |
org.openstreetmap.josm.gui.dialogs.changeset | |
org.openstreetmap.josm.gui.dialogs.changeset.query | |
org.openstreetmap.josm.gui.dialogs.relation | |
org.openstreetmap.josm.gui.download | |
org.openstreetmap.josm.gui.history | |
org.openstreetmap.josm.gui.io | |
org.openstreetmap.josm.gui.oauth | |
org.openstreetmap.josm.gui.preferences |
Provides generic classes for handling JOSM preferences.
|
org.openstreetmap.josm.gui.preferences.server |
Provides classes for handling connection preferences, including server authentication and proxy settings.
|
org.openstreetmap.josm.io | |
org.openstreetmap.josm.io.imagery | |
org.openstreetmap.josm.plugins | |
org.openstreetmap.josm.tools |
Modifier and Type | Method and Description |
---|---|
protected UserInfo |
CloseChangesetAction.DownloadOpenChangesetsTask.fetchUserInfo()
Fetch the user info from the server.
|
protected void |
OpenFileAction.OpenFileTask.realRun() |
protected void |
UploadSelectionAction.DeletedParentsChecker.realRun() |
protected void |
CloseChangesetAction.DownloadOpenChangesetsTask.realRun() |
protected void |
ValidateAction.ValidationTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
DownloadReferrersTask.downloadParents(long id,
OsmPrimitiveType type,
ProgressMonitor progressMonitor) |
protected DataSet |
DownloadOsmTask.DownloadTask.parseDataSet() |
protected DataSet |
DownloadOsmChangeTask.DownloadTask.parseDataSet() |
protected void |
DownloadReferrersTask.realRun() |
void |
DownloadGpsTask.DownloadTask.realRun() |
void |
DownloadOsmTask.DownloadTask.realRun() |
abstract void |
DownloadNotesTask.DownloadTask.realRun() |
void |
DownloadNotesTask.DownloadBoundingBoxTask.realRun() |
void |
DownloadNotesTask.DownloadRawUrlTask.realRun() |
void |
DownloadNotesTask.DownloadBzip2RawUrlTask.realRun() |
Modifier and Type | Method and Description |
---|---|
static void |
ExceptionDialogUtil.explainInternalServerError(OsmTransferException e)
Explains a
OsmApiException which was thrown because of an internal server
error in the OSM API server. |
static void |
ExceptionDialogUtil.explainNestedIllegalDataException(OsmTransferException e)
Explains a
IllegalDataException which has caused an OsmTransferException . |
static void |
ExceptionDialogUtil.explainNestedIOException(OsmTransferException e)
Explains a
IOException which has caused an OsmTransferException . |
static void |
ExceptionDialogUtil.explainNestedOfflineAccessException(OsmTransferException e)
Explains a
OfflineAccessException which has caused an OsmTransferException . |
static void |
ExceptionDialogUtil.explainNestedSocketException(OsmTransferException e)
Explains a
SocketException which has caused an OsmTransferException . |
static void |
ExceptionDialogUtil.explainNestedUnkonwnHostException(OsmTransferException e)
Explains a
UnknownHostException which has caused an OsmTransferException . |
static void |
ExceptionDialogUtil.explainOsmTransferException(OsmTransferException e)
Explains an
OsmTransferException to the user. |
static void |
ExceptionDialogUtil.explainSecurityException(OsmTransferException e)
Explains a
SecurityException which has caused an OsmTransferException . |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
PleaseWaitRunnable.realRun()
Called in the worker thread to do the actual work.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ValidatorDialog.FixTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
ChangesetContentDownloadTask.downloadChangeset(int changesetId)
Downloads the changeset with id
changesetId (only "header"
information, no content) |
protected void |
ChangesetContentDownloadTask.realRun() |
protected void |
ChangesetHeaderDownloadTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
ChangesetQueryTask.fullyIdentifyCurrentUser()
Tries to fully identify the current JOSM user
|
protected void |
ChangesetQueryTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
ChildRelationBrowser.DownloadAllChildrenTask.realRun() |
protected void |
ChildRelationBrowser.DownloadRelationSetTask.realRun() |
protected void |
DownloadRelationMemberTask.realRun() |
protected void |
RelationTree.RelationLoader.realRun() |
protected void |
ParentRelationLoadingTask.realRun() |
protected void |
DownloadRelationTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
PlaceSelection.NameQueryTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
HistoryLoadTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
DownloadOpenChangesetsTask.realRun() |
protected void |
CloseChangesetTask.realRun() |
protected void |
UpdatePrimitivesTask.realRun() |
protected void |
DownloadPrimitivesTask.realRun() |
protected void |
DownloadPrimitivesWithReferrersTask.realRun() |
protected void |
UploadLayerTask.recoverFromGoneOnServer(OsmApiPrimitiveGoneException e,
ProgressMonitor monitor)
Retries to recover the upload operation from an exception which was thrown because
an uploaded primitive was already deleted on the server.
|
protected void |
UploadPrimitivesTask.recoverFromGoneOnServer(OsmApiPrimitiveGoneException e,
ProgressMonitor monitor)
Retries to recover the upload operation from an exception which was thrown because
an uploaded primitive was already deleted on the server.
|
Modifier and Type | Method and Description |
---|---|
protected UserInfo |
TestAccessTokenTask.getUserDetails() |
protected void |
TestAccessTokenTask.realRun() |
protected void |
RetrieveAccessTokenTask.realRun() |
protected void |
FullyAutomaticAuthorizationUI.FullyAutomaticAuthorisationTask.realRun() |
protected void |
RetrieveRequestTokenTask.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
SourceEditor.SourceLoader.realRun() |
Modifier and Type | Method and Description |
---|---|
protected void |
ApiUrlTestTask.realRun() |
Modifier and Type | Class and Description |
---|---|
class |
ChangesetClosedException
A ChangesetClosedException is thrown if the server replies with a HTTP
return code 409 (Conflict) with the error header
ChangesetClosedException.ERROR_HEADER_PATTERN . |
class |
MissingOAuthAccessTokenException |
class |
OsmApiException
Exception thrown when a communication error occurs when accessing the OSM API.
|
class |
OsmApiInitializationException
Exception thrown when a communication error occured with the OSM server during API initialization.
|
class |
OsmApiPrimitiveGoneException
Represents an exception thrown by the OSM API if JOSM tries to update or delete a primitive
which is already deleted on the server.
|
class |
OsmTransferCanceledException
Exception thrown when a communication with the OSM server has been cancelled by the user.
|
Modifier and Type | Method and Description |
---|---|
protected void |
OsmConnection.addAuth(java.net.HttpURLConnection connection) |
protected void |
OsmConnection.addBasicAuthorizationHeader(java.net.HttpURLConnection con)
Adds an authentication header for basic authentication
|
protected void |
OsmConnection.addOAuthAuthorizationHeader(java.net.HttpURLConnection connection)
Signs the connection with an OAuth authentication header
|
void |
OsmApi.closeChangeset(Changeset changeset,
ProgressMonitor monitor)
Closes a changeset on the server.
|
void |
OsmApi.createPrimitive(IPrimitive osm,
ProgressMonitor monitor)
Creates an OSM primitive on the server.
|
void |
OsmApi.deletePrimitive(IPrimitive osm,
ProgressMonitor monitor)
Deletes an OSM primitive on the server.
|
protected <T> T |
OsmServerLocationReader.doParse(OsmServerLocationReader.Parser<T> parser,
ProgressMonitor progressMonitor) |
ChangesetDataSet |
OsmServerChangesetReader.downloadChangeset(int id,
ProgressMonitor monitor)
Downloads the content of a changeset
|
private GpxData |
BoundingBoxDownloader.downloadRawGps(Bounds b,
ProgressMonitor progressMonitor) |
protected void |
OsmApi.ensureValidChangeset()
Ensures that the current changeset can be used for uploading data
|
protected MultiFetchServerObjectReader.FetchResult |
MultiFetchServerObjectReader.Fetcher.fetch(ProgressMonitor progressMonitor)
fetches the requested primitives and updates the specified progress monitor.
|
protected void |
MultiFetchServerObjectReader.fetchPrimitives(java.util.Set<java.lang.Long> ids,
OsmPrimitiveType type,
ProgressMonitor progressMonitor)
fetches a set of ids of a given
OsmPrimitiveType from the server |
UserInfo |
OsmServerUserInfoReader.fetchUserInfo(ProgressMonitor monitor)
Fetches user info, without explicit reason.
|
UserInfo |
OsmServerUserInfoReader.fetchUserInfo(ProgressMonitor monitor,
java.lang.String reason)
Fetches user info, with an explicit reason.
|
protected java.io.InputStream |
OsmServerReader.getInputStream(java.lang.String urlStr,
ProgressMonitor progressMonitor)
Open a connection to the given url and return a reader on the input stream
from that connection.
|
protected java.io.InputStream |
OsmServerReader.getInputStream(java.lang.String urlStr,
ProgressMonitor progressMonitor,
java.lang.String reason)
Open a connection to the given url and return a reader on the input stream
from that connection.
|
protected java.io.InputStream |
OsmServerReader.getInputStreamRaw(java.lang.String urlStr,
ProgressMonitor progressMonitor)
Open a connection to the given url and return a reader on the input stream
from that connection.
|
protected java.io.InputStream |
OsmServerReader.getInputStreamRaw(java.lang.String urlStr,
ProgressMonitor progressMonitor,
java.lang.String reason)
Open a connection to the given url and return a reader on the input stream
from that connection.
|
protected java.io.InputStream |
OsmServerReader.getInputStreamRaw(java.lang.String urlStr,
ProgressMonitor progressMonitor,
java.lang.String reason,
boolean uncompressAccordingToContentDisposition)
Open a connection to the given url and return a reader on the input stream
from that connection.
|
private DataSet |
OsmServerBackreferenceReader.getReferringPrimitives(ProgressMonitor progressMonitor,
java.lang.String type,
java.lang.String message) |
protected DataSet |
OsmServerBackreferenceReader.getReferringRelations(ProgressMonitor progressMonitor)
Reads referring relations from the API server and replies them in a
DataSet |
protected DataSet |
OsmServerBackreferenceReader.getReferringWays(ProgressMonitor progressMonitor)
Reads referring ways from the API server and replies them in a
DataSet |
(package private) void |
OsmServerWriter.makeApiRequest(IPrimitive osm,
ProgressMonitor progressMonitor) |
void |
OsmApi.modifyPrimitive(IPrimitive osm,
ProgressMonitor monitor)
Modifies an OSM primitive on the server.
|
protected MultiFetchServerObjectReader.FetchResult |
MultiFetchServerObjectReader.Fetcher.multiGetIdPackage(OsmPrimitiveType type,
java.util.Set<java.lang.Long> pkg,
ProgressMonitor progressMonitor)
invokes a Multi Get for a set of ids and a given
OsmPrimitiveType . |
void |
OsmApi.openChangeset(Changeset changeset,
ProgressMonitor progressMonitor)
Creates a new changeset based on the keys in
changeset . |
abstract T |
OsmServerLocationReader.Parser.parse() |
DataSet |
OsmServerLocationReader.OsmParser.parse() |
DataSet |
OsmServerLocationReader.OsmChangeParser.parse() |
GpxData |
OsmServerLocationReader.GpxParser.parse() |
java.util.List<Note> |
OsmServerLocationReader.NoteParser.parse() |
HistoryDataSet |
OsmServerHistoryReader.parseHistory(ProgressMonitor progressMonitor)
Fetches the history from the OSM API and parses it
|
java.util.List<Note> |
OsmServerReader.parseNotes(java.lang.Integer noteLimit,
java.lang.Integer daysClosed,
ProgressMonitor progressMonitor)
Downloads notes from the API, given API limit parameters
|
java.util.List<Note> |
BoundingBoxDownloader.parseNotes(java.lang.Integer noteLimit,
java.lang.Integer daysClosed,
ProgressMonitor progressMonitor) |
DataSet |
MultiFetchServerObjectReader.parseOsm(ProgressMonitor progressMonitor)
invokes one or more Multi Gets to fetch the
OsmPrimitive s and replies
the dataset of retrieved primitives. |
DataSet |
MultiFetchServerObjectReader.Fetcher.parseOsm(ProgressMonitor progressMonitor) |
DataSet |
OsmServerObjectReader.parseOsm(ProgressMonitor progressMonitor)
Downloads and parses the data.
|
DataSet |
OsmServerUserInfoReader.parseOsm(ProgressMonitor progressMonitor) |
DataSet |
OsmServerLocationReader.parseOsm(ProgressMonitor progressMonitor) |
abstract DataSet |
OsmServerReader.parseOsm(ProgressMonitor progressMonitor)
Download OSM files from somewhere
|
DataSet |
OsmServerChangesetReader.parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
DataSet |
OsmServerHistoryReader.parseOsm(ProgressMonitor progressMonitor)
don't use - not implemented!
|
DataSet |
BoundingBoxDownloader.parseOsm(ProgressMonitor progressMonitor) |
DataSet |
OsmServerBackreferenceReader.parseOsm(ProgressMonitor progressMonitor)
Reads the referring primitives from the OSM server, parses them and
replies them as
DataSet |
DataSet |
OsmServerLocationReader.parseOsmBzip2(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmBzip2(ProgressMonitor progressMonitor)
Download BZip2-compressed OSM files from somewhere
|
DataSet |
OsmServerLocationReader.parseOsmChange(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmChange(ProgressMonitor progressMonitor)
Download OSM Change files from somewhere
|
DataSet |
OsmServerLocationReader.parseOsmChangeBzip2(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmChangeBzip2(ProgressMonitor progressMonitor)
Download BZip2-compressed OSM Change files from somewhere
|
DataSet |
OsmServerLocationReader.parseOsmChangeGzip(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmChangeGzip(ProgressMonitor progressMonitor)
Download GZip-compressed OSM Change files from somewhere
|
DataSet |
OsmServerLocationReader.parseOsmGzip(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmGzip(ProgressMonitor progressMonitor)
Download GZip-compressed OSM files from somewhere
|
DataSet |
OsmServerLocationReader.parseOsmZip(ProgressMonitor progressMonitor) |
DataSet |
OsmServerReader.parseOsmZip(ProgressMonitor progressMonitor)
Download Zip-compressed OSM files from somewhere
|
GpxData |
OsmServerLocationReader.parseRawGps(ProgressMonitor progressMonitor) |
GpxData |
OsmServerReader.parseRawGps(ProgressMonitor progressMonitor)
Retrieve raw gps waypoints from the server API.
|
GpxData |
BoundingBoxDownloader.parseRawGps(ProgressMonitor progressMonitor) |
GpxData |
OsmServerLocationReader.parseRawGpsBzip2(ProgressMonitor progressMonitor) |
GpxData |
OsmServerReader.parseRawGpsBzip2(ProgressMonitor progressMonitor)
Retrieve BZip2-compressed GPX files from somewhere.
|
java.util.List<Note> |
OsmServerLocationReader.parseRawNotes(ProgressMonitor progressMonitor) |
java.util.List<Note> |
OsmServerReader.parseRawNotes(ProgressMonitor progressMonitor)
Downloads notes from a given raw URL.
|
java.util.List<Note> |
OsmServerLocationReader.parseRawNotesBzip2(ProgressMonitor progressMonitor) |
java.util.List<Note> |
OsmServerReader.parseRawNotesBzip2(ProgressMonitor progressMonitor)
Download notes from a URL that contains a bzip2 compressed notes dump file
|
java.util.List<Changeset> |
OsmServerChangesetReader.queryChangesets(ChangesetQuery query,
ProgressMonitor monitor)
Queries a list
|
Changeset |
OsmServerChangesetReader.readChangeset(long id,
ProgressMonitor monitor)
Reads the changeset with id
id from the server |
java.util.List<Changeset> |
OsmServerChangesetReader.readChangesets(java.util.Collection<java.lang.Integer> ids,
ProgressMonitor monitor)
Reads the changeset with id
id from the server |
protected DataSet |
OsmServerBackreferenceReader.readIncompletePrimitives(DataSet ds,
ProgressMonitor progressMonitor)
Scans a dataset for incomplete primitives.
|
protected java.lang.String |
OsmApi.sendRequest(java.lang.String requestMethod,
java.lang.String urlSuffix,
java.lang.String requestBody,
ProgressMonitor monitor) |
protected java.lang.String |
OsmApi.sendRequest(java.lang.String requestMethod,
java.lang.String urlSuffix,
java.lang.String requestBody,
ProgressMonitor monitor,
boolean doAuthenticate,
boolean fastFail)
Generic method for sending requests to the OSM API.
|
protected DataSet |
MultiFetchServerObjectReader.Fetcher.singleGetId(OsmPrimitiveType type,
long id,
ProgressMonitor progressMonitor)
invokes a Multi Get for a single id and a given
OsmPrimitiveType . |
protected MultiFetchServerObjectReader.FetchResult |
MultiFetchServerObjectReader.Fetcher.singleGetIdPackage(OsmPrimitiveType type,
java.util.Set<java.lang.Long> pkg,
ProgressMonitor progressMonitor)
invokes a sequence of Multi Gets for individual ids in a set of ids and a given
OsmPrimitiveType . |
void |
OsmApi.updateChangeset(Changeset changeset,
ProgressMonitor monitor)
Updates a changeset with the keys in
changesetUpdate . |
protected byte[] |
OsmApi.CapabilitiesCache.updateData() |
protected void |
OsmServerWriter.uploadChangesAsDiffUpload(java.util.Collection<? extends IPrimitive> primitives,
ProgressMonitor progressMonitor)
Upload all changes in one diff upload
|
protected void |
OsmServerWriter.uploadChangesInChunks(java.util.Collection<? extends IPrimitive> primitives,
ProgressMonitor progressMonitor,
int chunkSize)
Upload all changes in one diff upload
|
protected void |
OsmServerWriter.uploadChangesIndividually(java.util.Collection<? extends IPrimitive> primitives,
ProgressMonitor progressMonitor)
Uploads the changes individually.
|
java.util.Collection<IPrimitive> |
OsmApi.uploadDiff(java.util.Collection<? extends IPrimitive> list,
ProgressMonitor monitor)
Uploads a list of changes in "diff" form to the server.
|
void |
OsmServerWriter.uploadOsm(UploadStrategySpecification strategy,
java.util.Collection<? extends IPrimitive> primitives,
Changeset changeset,
ProgressMonitor monitor)
Send the dataset to the server.
|
Constructor and Description |
---|
ProgressInputStream(java.net.URLConnection con,
ProgressMonitor progressMonitor) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.image.BufferedImage |
WMSGrabber.grab(WMSRequest request,
java.net.URL url,
int attempt) |
Modifier and Type | Method and Description |
---|---|
protected void |
ReadLocalPluginInformationTask.realRun() |
protected void |
ReadRemotePluginInformationTask.realRun() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ExceptionUtil.explainInternalServerError(OsmTransferException e)
Explains a
OsmApiException which was thrown because of an internal server
error in the OSM API server.. |
static java.lang.String |
ExceptionUtil.explainNestedIllegalDataException(OsmTransferException e)
Explains a
IllegalDataException which has caused an OsmTransferException . |
static java.lang.String |
ExceptionUtil.explainNestedIOException(OsmTransferException e)
Explains a
IOException which has caused an OsmTransferException . |
static java.lang.String |
ExceptionUtil.explainNestedSocketException(OsmTransferException e)
Explains a
SocketException which has caused an OsmTransferException . |
static java.lang.String |
ExceptionUtil.explainNestedUnknownHostException(OsmTransferException e)
Explains a
UnknownHostException which has caused an OsmTransferException . |
static java.lang.String |
ExceptionUtil.explainOfflineAccessException(OsmTransferException e)
Explains a
OfflineAccessException which has caused an OsmTransferException . |
static java.lang.String |
ExceptionUtil.explainOsmTransferException(OsmTransferException e)
Explains an
OsmTransferException to the user. |
static java.lang.String |
ExceptionUtil.explainSecurityException(OsmTransferException e)
Explains a
SecurityException which has caused an OsmTransferException . |