devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1669585 - in /devicemap/trunk/examples/ddr-filter/src/main: java/org/apache/devicemap/example/webfilter/IdentificationFilter.java resources/oddr.properties
Date Fri, 27 Mar 2015 13:43:36 GMT
Author: wkeil
Date: Fri Mar 27 13:43:36 2015
New Revision: 1669585

URL: http://svn.apache.org/r1669585
Log:
DMAP-111: Improve Web Examples 
Tweaking for codemotion demo
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
    devicemap/trunk/examples/ddr-filter/src/main/resources/oddr.properties

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=1669585&r1=1669584&r2=1669585&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
Fri Mar 27 13:43:36 2015
@@ -95,7 +95,7 @@ public class IdentificationFilter implem
             modelRef = identificationService.newPropertyRef("model");
             displayWidthRef = identificationService.newPropertyRef("displayWidth");
             displayHeightRef = identificationService.newPropertyRef("displayHeight");
-//            osVersionRef = identificationService.newPropertyRef("device_os_version");
+            osVersionRef = identificationService.newPropertyRef("device_os_version");
         } catch (NameException ex) {
         	log.error(ex);
             throw new RuntimeException(ex);
@@ -119,7 +119,7 @@ public class IdentificationFilter implem
             PropertyValue model = propertyValues.getValue(modelRef);
             PropertyValue displayWidth = propertyValues.getValue(displayWidthRef);
             PropertyValue displayHeight = propertyValues.getValue(displayHeightRef);
-//            PropertyValue osVersion = propertyValues.getValue(osVersionRef);
+            PropertyValue osVersion = propertyValues.getValue(osVersionRef);
             log.debug("Vendor: " + vendor + "(" + vendor.exists() + ")");
             log.debug("Model: " + model + "(" + model.exists() + ")");
 //            log.info("OS: " + osVersion + "(" + osVersion.exists() + ")");

Modified: devicemap/trunk/examples/ddr-filter/src/main/resources/oddr.properties
URL: http://svn.apache.org/viewvc/devicemap/trunk/examples/ddr-filter/src/main/resources/oddr.properties?rev=1669585&r1=1669584&r2=1669585&view=diff
==============================================================================
--- devicemap/trunk/examples/ddr-filter/src/main/resources/oddr.properties (original)
+++ devicemap/trunk/examples/ddr-filter/src/main/resources/oddr.properties Fri Mar 27 13:43:36
2015
@@ -8,4 +8,4 @@ ddr.vocabulary.core.path=${devicemap.dat
 oddr.vocabulary.path=${devicemap.data.path}/devicedata/oddrVocabulary.xml
 oddr.limited.vocabulary.path=${devicemap.data.path}/devicedata/oddrLimitedVocabulary.xml
 oddr.vocabulary.device=http://www.openddr.org/oddr-vocabulary
-oddr.threshold=71
+oddr.threshold=70



Mime
View raw message