|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.droids.net.UrlHelper
public class UrlHelper
Helper class that offers a couple of method to work with urls
Method Summary | |
---|---|
static boolean |
existUrl(URL url)
Does the url exist? |
static URL |
findRobotsUrl(URL base,
String prefix)
Search the url of the robots.txt that is responsible for the given base url. |
static String |
getUrlPrefix(URL base)
Creating a valid protocol prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static URL findRobotsUrl(URL base, String prefix) throws MalformedURLException
base
- base url to evaluateprefix
- the protocol prefix we want to use
MalformedURLException
public static String getUrlPrefix(URL base)
base
- the base we want to evaluate
public static boolean existUrl(URL url)
url
- the url to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |