KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lamatek > tags > google > beans > IPCoder


1 package com.lamatek.tags.google.beans;
2
3 /**
4  * IPCoder
5  * @author Tom Cole
6  * @version 0.40
7  *
8  * This is the parent interface of all IP based geocoders used in the
9  * GoogleMaps JSP Taglibrary.
10  */

11 public interface IPCoder {
12     /**
13      * Sets the ip address to geocode.
14      *
15      * @param ip The IPv4 or IPv6 address to geocode.
16      */

17     public abstract void setIp(String JavaDoc ip);
18     /**
19      * Attempts to geocode the current IP address.
20      *
21      * @return True if the IP was geocoded or false if it was not.
22      */

23     public abstract boolean geocode();
24     /**
25      * Returns the longitude (in decimal form) of the IP as a double.
26      *
27      * @return Longitude as a double.
28      */

29     public abstract double getLongitude();
30     /**
31      * Returns the latitude (in decimal form) of the IP as a double.
32      *
33      * @return Latitude as a double.
34      */

35     public abstract double getLatitude();
36
37 }
38
Popular Tags