Package com.pubmatic.sdk.common.session
Object POBAdomainHandler
-
- All Implemented Interfaces:
public class POBAdomainHandlerHandles in-memory storage and retrieval of advertiser domain (
adomain) values keyed by POBAdFormat.
-
-
Field Summary
Fields Modifier and Type Field Description public final static POBAdomainHandlerINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitrecordLastAdomain(POBAdFormat adFormat, String aDomain)Stores an advertiser domain for the given ad format. final static StringgetLastAdomain(POBAdFormat adFormat)Returns the stored advertiser domain for the given ad format. -
-
Method Detail
-
recordLastAdomain
final static Unit recordLastAdomain(POBAdFormat adFormat, String aDomain)
Stores an advertiser domain for the given ad format.
If aDomain is null or empty, the existing value for adFormat is left unchanged.
- Parameters:
adFormat- The ad format key for adomain storage.aDomain- The advertiser domain to store, or null/empty to skip the update.
-
getLastAdomain
final static String getLastAdomain(POBAdFormat adFormat)
Returns the stored advertiser domain for the given ad format.
- Parameters:
adFormat- The ad format key for adomain lookup.- Returns:
The stored domain, or null if none has been recorded for adFormat.
-
-
-
-