Return-Path: X-Original-To: apmail-incubator-devicemap-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-devicemap-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95F3B10E50 for ; Mon, 17 Nov 2014 08:58:27 +0000 (UTC) Received: (qmail 13103 invoked by uid 500); 17 Nov 2014 08:58:27 -0000 Delivered-To: apmail-incubator-devicemap-commits-archive@incubator.apache.org Received: (qmail 13078 invoked by uid 500); 17 Nov 2014 08:58:27 -0000 Mailing-List: contact devicemap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: devicemap-dev@incubator.apache.org Delivered-To: mailing list devicemap-commits@incubator.apache.org Received: (qmail 13069 invoked by uid 99); 17 Nov 2014 08:58:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 08:58:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 08:58:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B319623889E9; Mon, 17 Nov 2014 08:57:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: devicemap-commits@incubator.apache.org From: wkeil@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141117085733.B319623889E9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 {