org.niocchi.gc
Class GenericResource

java.lang.Object
  extended by org.niocchi.core.Resource
      extended by org.niocchi.core.DiskResource
          extended by org.niocchi.gc.GenericResource

public class GenericResource
extends DiskResource

This class gives an example on how to implement the isValid method. The URLPools receives all the crawled resources. It can use this method to take action according to their validity.


Field Summary
 
Fields inherited from class org.niocchi.core.Resource
UNKNOWN_HTTP_STATUS
 
Constructor Summary
GenericResource()
           
 
Method Summary
 boolean isValid()
          Returns true if this resource is a valid HTML page.
 
Methods inherited from class org.niocchi.core.DiskResource
getTmpFileAbsolutePath, save
 
Methods inherited from class org.niocchi.core.Resource
getBodyLength, getContentEncoding, getContentMimeSubType, getContentMimeType, getContentType, getHeader, getHeaderNames, getHTTPStatus, getRawDataSize, headersToString, isCompressed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericResource

public GenericResource()
Method Detail

isValid

public boolean isValid()
Returns true if this resource is a valid HTML page.

Overrides:
isValid in class Resource
Returns:
true if this resource is a valid HTML page.