tr.linkchecker.url
Class CCheckUrlThread

java.lang.Object
  extended byjava.lang.Thread
      extended bytr.linkchecker.url.CCheckUrlThread
All Implemented Interfaces:
java.lang.Runnable

public class CCheckUrlThread
extends java.lang.Thread

Generates a file-list

Date: 23.11.2004

Version:
1.0
Author:
Tobias Roessler, Ralf Schmitt

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CCheckUrlThread()
          Default-Constructor
CCheckUrlThread(java.lang.ThreadGroup tg, java.lang.String name)
          Constructor
 
Method Summary
 boolean chkURLConnection(java.net.URL url)
          Check if the link to the website is ok
 int getResponseCode()
           
 void run()
          Check the url
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCheckUrlThread

public CCheckUrlThread()
Default-Constructor


CCheckUrlThread

public CCheckUrlThread(java.lang.ThreadGroup tg,
                       java.lang.String name)
Constructor

Parameters:
tg - ThreadGroup this thread add to
name - Name of the Thread
Method Detail

run

public void run()
Check the url


chkURLConnection

public boolean chkURLConnection(java.net.URL url)
Check if the link to the website is ok

Returns:
If url is ok then it returns true, else false

getResponseCode

public int getResponseCode()
Returns:
mResponseCode Http-Response-Code