|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.gui.oauth.RetrieveAccessTokenTask
public class RetrieveAccessTokenTask
Asynchronous task for retrieving an Access Token.
| Field Summary | |
|---|---|
private OAuthToken |
accessToken
|
private boolean |
canceled
|
private OsmOAuthAuthorizationClient |
client
|
private OAuthParameters |
parameters
|
private java.awt.Component |
parent
|
private OAuthToken |
requestToken
|
| Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
|---|
progressMonitor |
| Constructor Summary | |
|---|---|
RetrieveAccessTokenTask(java.awt.Component parent,
OAuthParameters parameters,
OAuthToken requestToken)
Creates the task |
|
| Method Summary | |
|---|---|
protected void |
alertRetrievingAccessTokenFailed(OsmOAuthAuthorizationException e)
|
protected void |
cancel()
User pressed cancel button. |
protected void |
finish()
Finish up the data work. |
OAuthToken |
getAccessToken()
Replies the retrieved Access Token. |
boolean |
isCanceled()
Replies true if the task was canceled. |
protected void |
realRun()
Called in the worker thread to do the actual work. |
| Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
|---|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean canceled
private OAuthToken accessToken
private OAuthParameters parameters
private OsmOAuthAuthorizationClient client
private OAuthToken requestToken
private java.awt.Component parent
| Constructor Detail |
|---|
public RetrieveAccessTokenTask(java.awt.Component parent,
OAuthParameters parameters,
OAuthToken requestToken)
parent - the parent component relative to which the PleaseWaitRunnable-Dialog
is displayedparameters - the OAuth parameters. Must not be null.requestToken - the request token for which an Access Token is retrieved. Must not be null.
java.lang.IllegalArgumentException - thrown if parameters is null.
java.lang.IllegalArgumentException - thrown if requestToken is null.| Method Detail |
|---|
protected void cancel()
PleaseWaitRunnable
cancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnable
finish in class PleaseWaitRunnableprotected void alertRetrievingAccessTokenFailed(OsmOAuthAuthorizationException e)
protected void realRun()
throws org.xml.sax.SAXException,
java.io.IOException,
OsmTransferException
PleaseWaitRunnable
realRun in class PleaseWaitRunnableorg.xml.sax.SAXException
java.io.IOException
OsmTransferExceptionpublic boolean isCanceled()
public OAuthToken getAccessToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||