de.fhkl.zw.mkup.rattrap.localizer
Class WhoIsTransformer

java.lang.Object
  extended by de.fhkl.zw.mkup.rattrap.localizer.WhoIsTransformer
All Implemented Interfaces:
IpTranslator

public class WhoIsTransformer
extends java.lang.Object
implements IpTranslator

Author:
rob initially this class was meant for retrieving the location by analyzing the answer of a whois server sadly the format of the answers is changing regularly. thus writing an effective algorithm was too complex feel free to complete this class.. ;-)

Constructor Summary
WhoIsTransformer()
           
 
Method Summary
 void getGeoLocation(GeoLocatedHost host)
          gets the geological location for the submitted host
 IpRange getIpRange(IpNumber ipNumber)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhoIsTransformer

public WhoIsTransformer()
Method Detail

getGeoLocation

public void getGeoLocation(GeoLocatedHost host)
Description copied from interface: IpTranslator
gets the geological location for the submitted host

Specified by:
getGeoLocation in interface IpTranslator

getIpRange

public IpRange getIpRange(IpNumber ipNumber)