@ThreadSafe public final class UserAgentDatabase extends Object
CHttpHeader.USER_AGENT).| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.collection.impl.ICommonsSet<String> |
getAllUniqueUserAgents() |
static IUserAgent |
getParsedUserAgent(String sUserAgent) |
static void |
setUserAgentCallback(Consumer<? super IUserAgent> aCallback)
Set an external callback to get notified when a new unique UserAgent was
received.
|
public static void setUserAgentCallback(@Nullable Consumer<? super IUserAgent> aCallback)
aCallback - Callback to set. May be null. The parameters to this
callback are always non-null.@Nullable public static IUserAgent getParsedUserAgent(@Nullable String sUserAgent)
Copyright © 2016–2019 Philip Helger. All rights reserved.