org.placelab.mapper
Class WigleDownloader
java.lang.Object
org.placelab.mapper.WigleDownloader
- public class WigleDownloader
- extends java.lang.Object
This class is used by the WigleMapper to actually
screen-scrape for the Beacon data. Yes, screen-scraping is
the only way to do it as of this writing.
It uses the following system properties for wigle authentication:
placelab.wigle_username
placelab.wigle_password
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cookie
protected java.lang.String cookie
AUTH_URL
public static java.lang.String AUTH_URL
QUERY_URL
public static java.lang.String QUERY_URL
REALLY_BAD
public static final int REALLY_BAD
- See Also:
- Constant Field Values
NOT_SO_BAD
public static final int NOT_SO_BAD
- See Also:
- Constant Field Values
DONE
public static final int DONE
- See Also:
- Constant Field Values
WigleDownloader
public WigleDownloader()
isAuthenticated
public boolean isAuthenticated()
authenticate
public boolean authenticate()
throws java.io.IOException
- Throws:
java.io.IOException
authenticate
public boolean authenticate(java.lang.String user,
java.lang.String pass)
throws java.io.IOException
- Throws:
java.io.IOException
query
public java.util.Enumeration query(TwoDCoordinate coord1,
TwoDCoordinate coord2)
query
public java.util.Enumeration query(double lat1,
double lon1,
double lat2,
double lon2)
query
public java.util.Enumeration query(java.lang.String query)