Package com.volantis.devrep.device.api.xml.identification

Examples of com.volantis.devrep.device.api.xml.identification.UserAgentPattern


            StringBuffer buffer) {
        buffer.append("Identification Entry: " + entry.getDeviceName() + "\n");

        Iterator userAgentPatterns = entry.userAgentPatterns();
        while (userAgentPatterns.hasNext()) {
            UserAgentPattern userAgentPattern = (UserAgentPattern) userAgentPatterns.next();
            buffer.append("  UserAgentPattern:\n");
            buffer.append("    regexp=" + userAgentPattern.getRegularExpression() + "\n");
        }

        Iterator headerPatterns = entry.headerPatterns();
        while (headerPatterns.hasNext()) {
            HeaderPattern headerPattern = (HeaderPattern) headerPatterns.next();
View Full Code Here


    private void iterateGenericPatterns(IdentificationEntry entry,
                                        GenericPatternIteratee iteratee) {

        Iterator userAgentPatterns = entry.userAgentPatterns();
        while (userAgentPatterns.hasNext()) {
            UserAgentPattern userAgent = (UserAgentPattern)
                    userAgentPatterns.next();
            String pattern = userAgent.getRegularExpression();
            iteratee.next(pattern);
        }

        Iterator headerPatterns = entry.headerPatterns();
        while (headerPatterns.hasNext()) {
View Full Code Here

TOP

Related Classes of com.volantis.devrep.device.api.xml.identification.UserAgentPattern

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.