public class RetrieveRequestTokenTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private OsmOAuthAuthorizationClient |
client |
private OAuthParameters |
parameters |
private Component |
parent |
private OAuthToken |
requestToken |
progressMonitor
Constructor and Description |
---|
RetrieveRequestTokenTask(Component parent,
OAuthParameters parameters)
Creates the task
|
Modifier and Type | Method and Description |
---|---|
protected void |
alertRetrievingRequestTokenFailed(OsmOAuthAuthorizationException e) |
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, run
private boolean canceled
private OAuthToken requestToken
private OAuthParameters parameters
private OsmOAuthAuthorizationClient client
public RetrieveRequestTokenTask(Component parent, OAuthParameters parameters)
parent
- the parent component relative to which the PleaseWaitRunnable
-Dialog
is displayedparameters
- the OAuth parameters. Must not be null.IllegalArgumentException
- thrown if parameters is null.protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void alertRetrievingRequestTokenFailed(OsmOAuthAuthorizationException e)
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
IOException
OsmTransferException
public boolean isCanceled()
public OAuthToken getRequestToken()