Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 00336200B6E for ; Sun, 21 Aug 2016 19:11:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2CDC160AAA; Sun, 21 Aug 2016 17:11:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 46CE3160A8E for ; Sun, 21 Aug 2016 19:11:07 +0200 (CEST) Received: (qmail 12140 invoked by uid 500); 21 Aug 2016 17:11:06 -0000 Mailing-List: contact commits-help@devicemap.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@devicemap.apache.org Delivered-To: mailing list commits@devicemap.apache.org Received: (qmail 12131 invoked by uid 99); 21 Aug 2016 17:11:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2016 17:11:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EF1A5C0731 for ; Sun, 21 Aug 2016 17:11:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.281 X-Spam-Level: * X-Spam-Status: No, score=1.281 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.519] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FqDSNPjj5eJm for ; Sun, 21 Aug 2016 17:11:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id A7A4D5F22F for ; Sun, 21 Aug 2016 17:11:03 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 191BBE0115 for ; Sun, 21 Aug 2016 17:11:03 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 1C0063A0184 for ; Sun, 21 Aug 2016 17:11:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1757067 - in /devicemap/trunk/clients/1.0: csharp/README java/console/README java/console/app.properties java/console/src/main/resources/ vbnet/README Date: Sun, 21 Aug 2016 17:11:03 -0000 To: commits@devicemap.apache.org From: wkeil@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160821171103.1C0063A0184@svn01-us-west.apache.org> archived-at: Sun, 21 Aug 2016 17:11:08 -0000 Author: wkeil Date: Sun Aug 21 17:11:02 2016 New Revision: 1757067 URL: http://svn.apache.org/viewvc?rev=1757067&view=rev Log: DMAP-196: Deploy Snapshots to Apache Snapshot repo Task-Url: https://issues.apache.org/jira/browse/DMAP-196 Added: devicemap/trunk/clients/1.0/java/console/README devicemap/trunk/clients/1.0/java/console/app.properties - copied unchanged from r1757066, devicemap/trunk/clients/1.0/java/console/src/main/resources/app.properties Removed: devicemap/trunk/clients/1.0/java/console/src/main/resources/ Modified: devicemap/trunk/clients/1.0/csharp/README devicemap/trunk/clients/1.0/vbnet/README Modified: devicemap/trunk/clients/1.0/csharp/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/csharp/README?rev=1757067&r1=1757066&r2=1757067&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/csharp/README (original) +++ devicemap/trunk/clients/1.0/csharp/README Sun Aug 21 17:11:02 2016 @@ -7,7 +7,6 @@ This client is used to classify browser The client requires devicemap-data. Data can be loaded via: * URL - * JAR file * Filesystem # Code Added: devicemap/trunk/clients/1.0/java/console/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/java/console/README?rev=1757067&view=auto ============================================================================== --- devicemap/trunk/clients/1.0/java/console/README (added) +++ devicemap/trunk/clients/1.0/java/console/README Sun Aug 21 17:11:02 2016 @@ -0,0 +1,51 @@ +DeviceMap Java Classifier Client + +CLS (ISO/IEC 23271:2012) compliant .NET version of Apache DeviceMap Client + +This client is used to classify browser User-Agent strings. + +The client requires devicemap-data. Data can be loaded via: + + * URL + * JAR file + * Filesystem + +# Code + +//get client using configured data source +//see "Configuration" below for further details on how to configure the data source +DeviceMapClient client = new DeviceMapClient(); + +String userAgent = "Mozilla/5.0 (Linux; U; Android 2.2; en; HTC Aria A6380 Build/ERE27) AppleWebKit/540.13+ (KHTML, like Gecko) Version/3.1 Mobile Safari/524.15.0"; + +//classify the userAgent +IDictionary devices = client.Map(userAgent); + +//iterate thru the devices (here we already got a Dictionary of Device model objects) +foreach (Device device in devices.Values) +{ + Console.WriteLine(device); +} + +## Compile +DeviceMap C# Client and Console have been tested with .NET Framework 4.0 or higher. + +To compile the sources you may use + +- Visual Studio (DeviceMap.sln file works with VS 2010 or above, Community Edition is sufficient) +- Mono Project (http://www.mono-project.com/) and MonoDevelop (http://www.monodevelop.com/) + +We currently don't provide a MonoDevelop solution, but the project layout should be compatible with it. And you're more than welcome to contribute solution files if you use MonDevelop (please create a JIRA ticket under https://issues.apache.org/jira/browse/DMAP/component/12323107 ".NET Client" and attach your files) + +# Run + +## Configuration +DeviceMapConsole comes with a config file DeviceMapConsole.exe.config, the runtime version of App.config in the Visual Studio project. +It contains the connection string for the DeviceMap data source: "http://devicemap-vm.apache.org/data/latest/" +This connection URL points to the latest available DeviceMap data version online. +If you prefer a different version or a local copy of the DeviceMap repository, you may override DeviceMapConsole by pointing to a different source. +Either a URL or the location of a folder or JAR file in the file system. + +The config file also contains the supported .NET runtime version. + +You should normally not have to change this. Doing so is at your own risk. DeviceMap C# client does not support .NET below 4.0, but in case you have multiple versions of the .NET Framework installed, you may chose a particular one, e.g. if you face problems running DeviceMapConsole. \ No newline at end of file Modified: devicemap/trunk/clients/1.0/vbnet/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/vbnet/README?rev=1757067&r1=1757066&r2=1757067&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/vbnet/README (original) +++ devicemap/trunk/clients/1.0/vbnet/README Sun Aug 21 17:11:02 2016 @@ -7,7 +7,6 @@ This client is used to classify browser The client requires devicemap-data. Data can be loaded via: * URL - * JAR file * Filesystem # Code