|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.remoteclient.taskplanning.retrieving.URLRetrieveTask
public class URLRetrieveTask
Clase para bajar ficheros en un thread independiente. La idea (y parte del código) está tomada de EarthFlicks
http://today.java.net/lpt/a/212| Constructor Summary | |
|---|---|
URLRetrieveTask(URLRequest request,
RetrieveListener listener)
|
|
| Method Summary | |
|---|---|
void |
addRetrieveListener(RetrieveListener l)
|
void |
cancel()
Cancels the current execution, if any, of this task. |
void |
execute()
Executes this task's operations. |
java.util.Vector |
getListeners()
|
URLRequest |
getRequest()
|
long |
getTaskTimeout()
Returns the timeout set to this task in milliseconds |
boolean |
isRunning()
Tells if the task is on execution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLRetrieveTask(URLRequest request,
RetrieveListener listener)
| Method Detail |
|---|
public void execute()
IRunnableTask
execute in interface IRunnableTaskpublic void addRetrieveListener(RetrieveListener l)
public void cancel()
IRunnableTask
cancel in interface IRunnableTaskpublic boolean isRunning()
IRunnableTask
isRunning in interface IRunnableTaskpublic URLRequest getRequest()
public java.util.Vector getListeners()
public long getTaskTimeout()
IRunnableTask
getTaskTimeout in interface IRunnableTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||