|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.statistics.util.SpiderDetector
public class SpiderDetector
SpiderDetector is used to find IP's that are spiders... In future someone may add UserAgents and Host Domains to the detection criteria here.
| Constructor Summary | |
|---|---|
SpiderDetector()
|
|
| Method Summary | |
|---|---|
static Set<String> |
getSpiderIpAddresses()
Get an immutable Set representing all the Spider Addresses here |
static boolean |
isSpider(javax.servlet.http.HttpServletRequest request)
Static Service Method for testing spiders against existing spider files. |
static boolean |
isSpider(String ip)
Check individual IP is a spider. |
static Set<String> |
readIpAddresses(File spiderIpFile)
Utility method which Reads the ip addresses out a file & returns them in a Set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpiderDetector()
| Method Detail |
|---|
public static Set<String> readIpAddresses(File spiderIpFile)
throws IOException
spiderIpFile - the location of our spider file
IOException - could not happen since we check the file be4 we use itpublic static Set<String> getSpiderIpAddresses()
public static boolean isSpider(javax.servlet.http.HttpServletRequest request)
request -
public static boolean isSpider(String ip)
ip -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||