public abstract class SourcePayloadBase extends PayloadBase implements Serializable
PayloadBase
that unifies source address field handling
Payload types that manipulate some indication of a source address field should likely inherit from this class.
Constructor and Description |
---|
SourcePayloadBase()
Initialize SourcePayloadBase
|
Modifier and Type | Method and Description |
---|---|
String |
getSourceAddress()
Get source address
|
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)
Set source address field
|
void |
setSourceAddress(String sourceAddress,
com.mozilla.secops.parser.ParserState state,
Normalized n)
Set source address field
|
eventIntegerValue, eventStringValue, getType, matcher
public void setSourceAddress(String sourceAddress, com.mozilla.secops.parser.ParserState state, Normalized n)
If the state value is non-null, elements within the parser state such as an initialized GeoIP object will be used as part of geo-ip resolution.
If n is non-null, the source address value will also be mirrored into the normalized event field.
sourceAddress
- Source addressstate
- Parser staten
- Normalized field from base eventpublic void setSourceAddress(String sourceAddress)
sourceAddress
- Source addresspublic 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.