devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1648790 - /devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
Date Thu, 01 Jan 2015 00:23:02 GMT
Author: wkeil
Date: Thu Jan  1 00:23:01 2015
New Revision: 1648790

URL: http://svn.apache.org/r1648790
Log:
DMAP-111: Improve Web Examples 

Task-Url: https://issues.apache.org/jira/browse/DMAP-111

Modified:
    devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java

Modified: devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java?rev=1648790&r1=1648789&r2=1648790&view=diff
==============================================================================
--- devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
(original)
+++ devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
Thu Jan  1 00:23:01 2015
@@ -89,13 +89,13 @@ public class IdentificationFilter implem
         PropertyRef modelRef;
         PropertyRef displayWidthRef;
         PropertyRef displayHeightRef;
-
+        PropertyRef osVersionRef;
         try {
             vendorRef = identificationService.newPropertyRef("vendor");
             modelRef = identificationService.newPropertyRef("model");
             displayWidthRef = identificationService.newPropertyRef("displayWidth");
             displayHeightRef = identificationService.newPropertyRef("displayHeight");
-
+//            osVersionRef = identificationService.newPropertyRef("device_os_version");
         } catch (NameException ex) {
         	log.error(ex);
             throw new RuntimeException(ex);
@@ -119,9 +119,10 @@ public class IdentificationFilter implem
             PropertyValue model = propertyValues.getValue(modelRef);
             PropertyValue displayWidth = propertyValues.getValue(displayWidthRef);
             PropertyValue displayHeight = propertyValues.getValue(displayHeightRef);
-
+//            PropertyValue osVersion = propertyValues.getValue(osVersionRef);
             log.debug("Vendor: " + vendor + "(" + vendor.exists() + ")");
             log.debug("Model: " + model + "(" + model.exists() + ")");
+//            log.info("OS: " + osVersion + "(" + osVersion.exists() + ")");
 
             if (vendor.exists())
                 ((HttpServletRequest)request).setAttribute("vendor", vendor.getString());



Mime
View raw message