|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.niocchi.core.Resource
org.niocchi.core.DiskResource
org.niocchi.gc.GenericResource
public class GenericResource
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 |
---|
public GenericResource()
Method Detail |
---|
public boolean isValid()
isValid
in class Resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |