public static class GeoIP.GeoIPData extends Object implements Serializable
Objects of this type can integrate heavily with the parser and parser state in order to make use of previously initialized GeoIP classes. In cases where deferred lookups are being used, this class will initialize a new GeoIP object using the configuration parameters stored in the parser configuration for the lookup operation. Because most members of the GeoIP are static and synchronized, the performance impact associated with this should be minimal.
Modifier and Type | Class and Description |
---|---|
static class |
GeoIP.GeoIPData.GeoResolutionMode
The resolution mode for GeoIP attributes.
|
Constructor and Description |
---|
GeoIPData() |
Modifier and Type | Method and Description |
---|---|
String |
getSourceAddress()
Get source address set in this GeoIPData object
|
Integer |
getSourceAddressAsn()
Get source address ASN
|
String |
getSourceAddressAsOrg()
Get source address AS organization
|
String |
getSourceAddressCity()
Get source address city
|
String |
getSourceAddressCountry()
Get source address country
|
String |
getSourceAddressIsp()
Get source address ISP
|
Double |
getSourceAddressLatitude()
Get source address latitude
|
Double |
getSourceAddressLongitude()
Get source address longitude
|
String |
getSourceAddressTimeZone()
Get source address time zone
|
void |
setSourceAddress(String sourceAddress,
GeoIP.GeoIPData.GeoResolutionMode resolutionMode,
com.mozilla.secops.parser.ParserState state)
Set source address field
|
public void setSourceAddress(String sourceAddress, GeoIP.GeoIPData.GeoResolutionMode resolutionMode, com.mozilla.secops.parser.ParserState state)
sourceAddress
- Source addressresolutionMode
- The GeoIP resolution mode to usestate
- Parser statepublic String getSourceAddress()
public String getSourceAddressCity()
public String getSourceAddressCountry()
public Double getSourceAddressLatitude()
public Double getSourceAddressLongitude()
public String getSourceAddressTimeZone()
public String getSourceAddressIsp()
public Integer getSourceAddressAsn()
public String getSourceAddressAsOrg()
Copyright © 2022. All rights reserved.