public class URLWorker extends BackgroundTask<Object>
| Constructor and Description |
|---|
URLWorker(QuickSetupStepPanel panel,
String url)
Constructs a URLWorker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundTaskCompleted(Object returnValue,
Throwable throwable)
This method will be invoked to indicate that the background task has
completed.
|
String |
getURL()
Returns the URL that we are trying to launch in the users browser.
|
Object |
processBackgroundTask()
Performs all processing associated with the task.
|
startBackgroundTaskpublic URLWorker(QuickSetupStepPanel panel, String url)
panel - the panel that created this URLWorker and to which we will
notify when we are over.url - the url to be displayed.public Object processBackgroundTask() throws WebBrowserException
processBackgroundTask in class BackgroundTask<Object>Object with information about the processing performed
for this task, or null if no return value is needed.WebBrowserExceptionpublic void backgroundTaskCompleted(Object returnValue, Throwable throwable)
Throwable argument will be null and the returnValue
argument will contain the value returned by the
processBackgroundTask method. If an exception or error was thrown,
then the throwable argument will not be null.backgroundTaskCompleted in class BackgroundTask<Object>returnValue - The value returned by the
processBackgroundTask method when processing
completed, or null if no value was returned or
an exception was encountered during processing.throwable - A Throwable instance (e.g., an exception) that
was raised during processing, or null if all
processing completed successfully.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.