devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1640106 - /incubator/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
Date Mon, 17 Nov 2014 08:57:33 GMT
Author: wkeil
Date: Mon Nov 17 08:57:33 2014
New Revision: 1640106

URL: http://svn.apache.org/r1640106
Log:
DMAP-53: This is an epic for tasks or issues related to examples 

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

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

Modified: incubator/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java?rev=1640106&r1=1640105&r2=1640106&view=diff
==============================================================================
--- incubator/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
(original)
+++ incubator/devicemap/trunk/examples/ddr-filter/src/main/java/org/apache/devicemap/example/webfilter/IdentificationFilter.java
Mon Nov 17 08:57:33 2014
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.devicemap.example.webfilter;
 
 import java.io.IOException;
@@ -23,7 +41,7 @@ import org.apache.devicemap.simpleddr.OD
 import org.apache.devicemap.simpleddr.model.ODDRHTTPEvidence;
 
 /**
- * Servlet Filter implementation class ClassificationFilter
+ * Servlet Filter implementation class
  */
 public class IdentificationFilter implements Filter {
 	private Service identificationService = null;
@@ -50,6 +68,7 @@ public class IdentificationFilter implem
 	            throw new RuntimeException(ex);
 	        }
 	}
+	
 	/**
 	 * @see Filter#destroy()
 	 */
@@ -79,7 +98,7 @@ public class IdentificationFilter implem
         }
 
         PropertyRef[] propertyRefs = new PropertyRef[] {vendorRef, modelRef, displayWidthRef,
displayHeightRef};
-        Evidence e = new ODDRHTTPEvidence(); //FIXME
+        Evidence e = new ODDRHTTPEvidence();
         e.put("User-Agent", ((HttpServletRequest)request).getHeader("User-Agent"));
 
         try {



Mime
View raw message