|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs132.webSpider.Util
public class Util
| Method Summary | |
|---|---|
static java.net.URL |
normalize(java.net.URL u)
Given a URL, normalize it by removing any references or queries. |
static boolean |
shouldCrawlURL(java.net.URL u,
java.lang.String root)
Determine if a URL should be recorded and crawled. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.net.URL normalize(java.net.URL u)
u - --
URL to normalize.
public static boolean shouldCrawlURL(java.net.URL u,
java.lang.String root)
URLConnection.getFileNameMap() method. The web page should
only be crawled if the FileNameMap can't guess an extension (i.e., the getContentTypeFor
method returns null) or if the returned mimetype starts with text/html.
u - --
URL to checkroot - --
root of URL's that will be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||