palio.modules
Class GeoIP

java.lang.Object
  extended by palio.modules.core.Module
      extended by palio.modules.GeoIP
All Implemented Interfaces:
palio.modules.core.CurrentModuleDataKeys

public class GeoIP
extends palio.modules.core.Module


Field Summary
 
Fields inherited from interface palio.modules.core.CurrentModuleDataKeys
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT
 
Constructor Summary
GeoIP(palio.Instance instance, java.util.Properties params)
           
 
Method Summary
 palio.modules.geoip.Location getLocation(java.lang.String ipAddress)
           
 palio.modules.geoip.Location getLocationFromCurrent()
           
 java.lang.String getVersion()
          Returns the module version
 java.lang.Object[] lookup(java.lang.String IP)
          Deprecated.  
 void updateFile()
          Only if dat_file was not specified
 void updateFile(boolean sourceGzipped)
          Only if dat_file was not specified
 
Methods inherited from class palio.modules.core.Module
getConfigParam, getDescription, getModuleTranslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoIP

public GeoIP(palio.Instance instance,
             java.util.Properties params)
Method Detail

getVersion

public java.lang.String getVersion()
Description copied from class: palio.modules.core.Module
Returns the module version

Specified by:
getVersion in class palio.modules.core.Module
See Also:
Module.getVersion()

getLocation

public palio.modules.geoip.Location getLocation(java.lang.String ipAddress)
                                         throws java.io.IOException,
                                                palio.modules.geoip.GeoIPException
Parameters:
ipAddress -
Returns:
location if found
Throws:
java.io.IOException
palio.modules.geoip.GeoIPException
Since:
2.0.0

getLocationFromCurrent

public palio.modules.geoip.Location getLocationFromCurrent()
                                                    throws java.io.IOException,
                                                           palio.modules.geoip.GeoIPException
Returns:
location if found. Seeking for ip stored in Current.
Throws:
java.io.IOException
palio.modules.geoip.GeoIPException
Since:
2.0.0

updateFile

public void updateFile()
                throws java.io.IOException,
                       palio.PalioException
Only if dat_file was not specified

Throws:
java.io.IOException
palio.PalioException
Since:
2.0.0

updateFile

public void updateFile(boolean sourceGzipped)
                throws java.io.IOException,
                       palio.PalioException
Only if dat_file was not specified

Parameters:
sourceGzipped -
Throws:
java.io.IOException
palio.PalioException
Since:
2.0.0

lookup

@Deprecated
public java.lang.Object[] lookup(java.lang.String IP)
                          throws palio.PalioException
Deprecated. 

Sprawdza adres IP w bazie danych

Parameters:
IP - numer IP
Returns:
tablica opisująca państwo: [kod, nazwa]
Throws:
palio.PalioException