Research Article
Device Characteristics and Capabilities Discovery for Multimedia Content
Algorithm 2
Token attributes matching algorithm.
| ALGORITHM TokenAttributesMatch (UMS, TA[1..MC, 1..TT]) | | // Input: A string of HTTP user agent, HTTP Accept and Mime | | headers, a string TA[1..MC, 1..TT] of required pattern (Called | | Token Attributes) | | // Output: Boolean value of TokenAttributesMatch (True or False) | | (1) TokenAttributesMatch← false | | (2) if (UAS = TA[i,j]) | | (3) TokenAttributesMatch← true | | (4) return TokenAttributesMatch |
|