org.milyn.useragent
Class UAContextUtil

java.lang.Object
  extended by org.milyn.useragent.UAContextUtil

public abstract class UAContextUtil
extends Object

UAContext utility methods.

Author:
tfennelly

Constructor Summary
UAContextUtil()
           
 
Method Summary
static boolean isDeviceOrProfile(String name, UAContext deviceContext)
          Does the name parameter match device named in the deviceContext, or on of the deviceContext profiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UAContextUtil

public UAContextUtil()
Method Detail

isDeviceOrProfile

public static boolean isDeviceOrProfile(String name,
                                        UAContext deviceContext)
Does the name parameter match device named in the deviceContext, or on of the deviceContext profiles.

Parameters:
name - The name.
deviceContext - The deviceContext.
Returns:
True if the name parameter is the requesting device's "Common Name" or the name name of one of it's profiles.


Copyright © 2018. All rights reserved.