Package com.volantis.devrep.repository.impl.devices

Examples of com.volantis.devrep.repository.impl.devices.DevicePattern


        boolean foundMatch = false;
        String deviceName = null;

        if (devicePatternIterator != null) {
            while(devicePatternIterator.hasNext() && !foundMatch) {
                DevicePattern currentDevicePattern =
                        (DevicePattern)devicePatternIterator.next();

                if (currentDevicePattern.match(userAgentString)) {
                    foundMatch = true;
                    deviceName = currentDevicePattern.getDeviceName();
                }
            }
        }
        return deviceName;
    }
View Full Code Here


        Integer key = getPatternMapKey(pattern, true, 0);
        TreeSet set = (TreeSet) cache.get(key);
        if (set == null) {
            set = new TreeSet();
        }
        set.add(new DevicePattern(pattern, deviceName));
        cache.put(key, set);
    }
View Full Code Here

            }

            TreeSet set = (TreeSet) cache.get(key);
            Iterator it = set.iterator();
            while (it.hasNext()) {
                DevicePattern value = (DevicePattern) it.next();
                if (logger.isDebugEnabled()) {
                    logger.debug(" , " + keyValue +
                                 " , " + subKey +
                                 " , " + set.size() +
                                 " , " + value.getDeviceName() +
                                 " , " + value.getPattern()
                    );
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.impl.devices.DevicePattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.