org.apache.droids.impl
Class SimpleTaskValidator<T extends Task>

java.lang.Object
  extended by org.apache.droids.impl.SimpleTaskValidator<T>
All Implemented Interfaces:
TaskValidator<T>

public class SimpleTaskValidator<T extends Task>
extends java.lang.Object
implements TaskValidator<T>

A simple


Constructor Summary
SimpleTaskValidator()
           
SimpleTaskValidator(int maxDepth)
           
 
Method Summary
 int getMaxDepth()
           
 void setMaxDepth(int maxDepth)
           
 T validateTask(T task)
          This will take a task and make sure it is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTaskValidator

public SimpleTaskValidator()

SimpleTaskValidator

public SimpleTaskValidator(int maxDepth)
Method Detail

validateTask

public T validateTask(T task)
                            throws InvalidTaskException
Description copied from interface: TaskValidator
This will take a task and make sure it is valid. It may modify the task so it is valid. For example, a URL may be normalized within the validateTask method.

Specified by:
validateTask in interface TaskValidator<T extends Task>
Throws:
InvalidTaskException

getMaxDepth

public int getMaxDepth()

setMaxDepth

public void setMaxDepth(int maxDepth)


Copyright © 2007-2009. All Rights Reserved.