de.scheisseichfindemalkeinen.hoster
Class HostURLChecker

java.lang.Object
  extended by de.scheisseichfindemalkeinen.hoster.HostURLChecker
All Implemented Interfaces:
IProgressObserver, java.lang.Runnable

public class HostURLChecker
extends java.lang.Object
implements java.lang.Runnable, IProgressObserver

This class is for checking multiple URLs


Constructor Summary
HostURLChecker(java.util.ArrayList<URL> urls)
          Constructor
 
Method Summary
 void addHMListener(IHostManagerListener l)
          Add listener
 void checkURLs()
          Start checking URLs
 void linksChecked(java.util.ArrayList<URL> urls, java.lang.String title, java.lang.String referrer)
           
 void progressChanged(boolean visible)
          Update the visbility of the progressbar
 void progressChanged(int val)
          Update the progressbar with a new value
 void progressChanged(int min, int max, int val)
          Update the progressbar with new min and max values
 void progressChanged(java.lang.String text)
          Update the text of the progressbar
 void removeHMListener(IHostManagerListener l)
          Remove listener
 void run()
           
 void stopAdding()
          Stop checking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostURLChecker

public HostURLChecker(java.util.ArrayList<URL> urls)
Constructor

Parameters:
urls - URLs
Method Detail

checkURLs

public void checkURLs()
Start checking URLs


run

public void run()
Specified by:
run in interface java.lang.Runnable

stopAdding

public void stopAdding()
Stop checking


linksChecked

public void linksChecked(java.util.ArrayList<URL> urls,
                         java.lang.String title,
                         java.lang.String referrer)
Parameters:
urls - URLs
title - Title
referrer - Referrer

addHMListener

public void addHMListener(IHostManagerListener l)
Add listener

Parameters:
l - Listener

removeHMListener

public void removeHMListener(IHostManagerListener l)
Remove listener

Parameters:
l - Listener

progressChanged

public void progressChanged(int val)
Description copied from interface: IProgressObserver
Update the progressbar with a new value

Specified by:
progressChanged in interface IProgressObserver
Parameters:
val - Value

progressChanged

public void progressChanged(int min,
                            int max,
                            int val)
Description copied from interface: IProgressObserver
Update the progressbar with new min and max values

Specified by:
progressChanged in interface IProgressObserver
Parameters:
min - Minimum
max - Maximum
val - Value

progressChanged

public void progressChanged(java.lang.String text)
Description copied from interface: IProgressObserver
Update the text of the progressbar

Specified by:
progressChanged in interface IProgressObserver
Parameters:
text - Progressbar-Text

progressChanged

public void progressChanged(boolean visible)
Description copied from interface: IProgressObserver
Update the visbility of the progressbar

Specified by:
progressChanged in interface IProgressObserver
Parameters:
visible - Visibility