org.milyn.useragent
Class MockUAContext

java.lang.Object
  extended by org.milyn.useragent.MockUAContext
All Implemented Interfaces:
Serializable, UAContext

public class MockUAContext
extends Object
implements UAContext

Mock UAContext implemntation.

Author:
tfennelly
See Also:
Serialized Form

Field Summary
 String commonName
           
 DefaultProfileSet profileSet
           
 
Constructor Summary
MockUAContext(String commonName)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonName

public String commonName

profileSet

public DefaultProfileSet profileSet
Constructor Detail

MockUAContext

public MockUAContext(String commonName)
Method Detail

addProfile

public void addProfile(String profile)
Add profile to the ProfileSet.

Parameters:
profile - The profile to add.

addProfiles

public void addProfiles(String[] profiles)
Add a list of profiles to the ProfileSet.

Parameters:
profiles - The array of profiles to add.

getCommonName

public String getCommonName()
Description copied from interface: UAContext
Get the useragent common name.

Specified by:
getCommonName in interface UAContext
Returns:
The useragent common name.

getProfileSet

public ProfileSet getProfileSet()
Description copied from interface: UAContext
Get the ProfileSet for the device.

Specified by:
getProfileSet in interface UAContext
Returns:
The ProfileSet


Copyright © 2018. All rights reserved.