de.fuberlin.wiwiss.marbles.loading
Class ExtendedDereferencingTask

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.semwebclient.DereferencingTask
      extended by de.fuberlin.wiwiss.marbles.loading.ExtendedDereferencingTask

public class ExtendedDereferencingTask
extends DereferencingTask

Extends DereferencingTask with redirectStep, done and forceReload properties

Author:
Christian Becker

Constructor Summary
ExtendedDereferencingTask(DereferencingListener listener, java.lang.String uri, int step, int redirectStep, boolean forceReload)
          Constructs an ExtendedDereferencingTask
 
Method Summary
 int getRedirectStep()
           
 boolean isDone()
           
 boolean isForceReload()
           
 void setDone(boolean done)
           
 void setRedirectStep(int redirectStep)
           
 
Methods inherited from class de.fuberlin.wiwiss.ng4j.semwebclient.DereferencingTask
getListener, getStep, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedDereferencingTask

public ExtendedDereferencingTask(DereferencingListener listener,
                                 java.lang.String uri,
                                 int step,
                                 int redirectStep,
                                 boolean forceReload)
Constructs an ExtendedDereferencingTask

Parameters:
listener -
uri -
step - The distance from the focal resource
redirectStep - The number of redirects performed in the course of this individual request
forceReload - Set this to true if the URL should be loaded even if a valid copy is already in the cache
Method Detail

getRedirectStep

public int getRedirectStep()

setRedirectStep

public void setRedirectStep(int redirectStep)

isDone

public boolean isDone()
Returns:
true, if the URL has been loaded

setDone

public void setDone(boolean done)
Parameters:
done - Set this to true when the URL has been loaded

isForceReload

public boolean isForceReload()
Returns:
true, if the URL should be loaded even if a valid copy is already in the cache