public class MockUAContext extends Object implements UAContext
UAContext
implemntation.Modifier and Type | Field and Description |
---|---|
String |
commonName |
DefaultProfileSet |
profileSet |
Constructor and Description |
---|
MockUAContext(String commonName) |
Modifier and Type | Method and Description |
---|---|
void |
addProfile(String profile)
Add profile to the ProfileSet.
|
void |
addProfiles(String[] profiles)
Add a list of profiles to the ProfileSet.
|
String |
getCommonName()
Get the useragent common name.
|
ProfileSet |
getProfileSet()
Get the ProfileSet for the device.
|
public String commonName
public DefaultProfileSet profileSet
public MockUAContext(String commonName)
public void addProfile(String profile)
profile
- The profile to add.public void addProfiles(String[] profiles)
profiles
- The array of profiles to add.public String getCommonName()
UAContext
getCommonName
in interface UAContext
public ProfileSet getProfileSet()
UAContext
getProfileSet
in interface UAContext
Copyright © 2020. All rights reserved.