public class RetrieveRequestTokenTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private OsmOAuthAuthorizationClient |
client |
private OAuthParameters |
parameters |
private java.awt.Component |
parent |
private OAuthToken |
requestToken |
progressMonitor| Constructor and Description |
|---|
RetrieveRequestTokenTask(java.awt.Component parent,
OAuthParameters parameters)
Creates the task
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
alertRetrievingRequestTokenFailed() |
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
OAuthToken |
getRequestToken()
Replies the request token.
|
boolean |
isCanceled()
Replies true if the task was canceled
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private OAuthToken requestToken
private final OAuthParameters parameters
private OsmOAuthAuthorizationClient client
private final java.awt.Component parent
public RetrieveRequestTokenTask(java.awt.Component parent, OAuthParameters parameters)
parent - the parent component relative to which the PleaseWaitRunnable-Dialog
is displayedparameters - the OAuth parameters. Must not be null.java.lang.IllegalArgumentException - if parameters is null.protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void alertRetrievingRequestTokenFailed()
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.xml.sax.SAXException - if a SAX error occursjava.io.IOException - if an I/O error occursOsmTransferException - if a communication error with the OSM server occurspublic boolean isCanceled()
public OAuthToken getRequestToken()