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 F2FAE200B64 for ; Tue, 2 Aug 2016 22:01:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F19CF160AAC; Tue, 2 Aug 2016 20:01:23 +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 44E0B160A76 for ; Tue, 2 Aug 2016 22:01:23 +0200 (CEST) Received: (qmail 28343 invoked by uid 500); 2 Aug 2016 20:01:22 -0000 Mailing-List: contact dev-help@openmeetings.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openmeetings.apache.org Delivered-To: mailing list dev@openmeetings.apache.org Received: (qmail 28239 invoked by uid 99); 2 Aug 2016 20:01:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2016 20:01:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C074FC0957 for ; Tue, 2 Aug 2016 20:01:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id F32eIUqw0ex3 for ; Tue, 2 Aug 2016 20:01:20 +0000 (UTC) Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 4BE8F5F244 for ; Tue, 2 Aug 2016 20:01:20 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id p64so69495808pfb.1 for ; Tue, 02 Aug 2016 13:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to; bh=4Ta0ToxQxBK9srvyiZfMM76RaaL+newzxN7BgEtWgrY=; b=UCJJ9eQ/xA+eog/rk+NOaWdt0OX+RQdOxxVbh01n2LjaPiW3dc29xuFr/1E/+/bMmc Y8jcwTisTct3i5SAtkfxM9uH9lYIrg7tNu12xXKcJfdLSSvZi7UkpElXjLjMvRkVtlJs F+ZPRaRFGlZVizDQaKYwePtfStVyTEeHqljsec/Ge05seDOorEs0XcY/QssYsRED9273 OeEqpKcvmuB1L7Dqifbx7nkyk/kl3KVMqNQ3NLTahg1AxaBGxORIpJ0e71IrZKF+XT1p gOp9VG1F+ow2E0yNpeihVHgTK7GRW2mdgiaPV86q+PQlO7mU6jmzpzu01PyHc79+jBCU /+uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to; bh=4Ta0ToxQxBK9srvyiZfMM76RaaL+newzxN7BgEtWgrY=; b=f/JMK4Zvrv3S/f/3660SHUJhTU3WD1JEosy5Kqv5sDKVKK2+kERjRbm1ADS7wBaheA Eqc9NdEKHGi2yxyHdNCFf6UfuxRB2BmBD4wyZ3RYJ1z26/RIFfP9PHMwjVfkp+5s5m1k iniC3s1a4OaiXDm7UdnFSIi1LujCOSxsRgtyjyJClsBXAQoRF4bGl9AMCX1KIiwtb6Id AGZB86pDhqY1jqJJfQAe7snfBI2T9Aw8lvHXsBYwjZsmeDmIxBhPLLeyw+TnsFftPThI wZh903kvsiSfJYAA17axsKOzMndEU4pU0KGskSgjNhS/DmBMB+JIQVUyxQ2MUVN9hQif 2tzA== X-Gm-Message-State: AEkoousVciZ948cQkmfqznTSce4ZCm0fSjmXWCAsnxo+cWj/4lTNnO2Sq8WoF5l4w4c1qg== X-Received: by 10.98.47.132 with SMTP id v126mr110117505pfv.152.1470168072919; Tue, 02 Aug 2016 13:01:12 -0700 (PDT) Received: from ?IPv6:2406:5600:96:f1af:31f1:6da0:e20e:18a0? ([2406:5600:96:f1af:31f1:6da0:e20e:18a0]) by smtp.gmail.com with ESMTPSA id yv9sm6852210pab.0.2016.08.02.13.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2016 13:01:12 -0700 (PDT) From: Ankush Mishra Subject: Re: AppointmentManager Client State clarification To: Maxim Solodovnik References: Cc: dev , Sebastian Wagner Message-ID: <4e2b4fe1-c8b3-4fd0-259e-a4a2d3e51aca@gmail.com> Date: Wed, 3 Aug 2016 01:31:08 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------014CC72A3DE66C6DAA56E125" archived-at: Tue, 02 Aug 2016 20:01:24 -0000 --------------014CC72A3DE66C6DAA56E125 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the reply but I am not sure if I follow with what you are saying. As HttpClient is not serializable atleast not the commons-httpclient, I am not sure what good it would help. Currently in my AppointmentManager , I have ensured the creation of only one HttpClient and reusing the old one, if one already exists. [Code] But currently the behaviour for the user and password prompts are whenever the server returns a 401 Unauthorized, but I don't keep the credentials in the memory only for the period of that sync. And then remove them. This causes the user to enter the credentials for each sync. So, I was wondering if I should keep the credentials in memory for the period of when the CalendarPanel is visible before replace. But it's just a suggestion, because implementing this, would require me to keep a Credential or StateTable, for each user in the CalendarPanel, so as to seperate the data of the each user for different hosts. Personally, I could implement it, but not sure if it's necessary. Also, as I stated earlier about caldav4j, the library I modified to use, currently most of my modifications have been included into the developer branch here: https://github.com/caldav4j/caldav4j/tree/jcr-dev But it's not in maven yet, since it's a developer branch.So, I was wondering how are we going to use the latest caldav4j in openmeetings? Ankush Mishra On 08/01/2016 07:51 PM, Maxim Solodovnik wrote: > If I were you I would create final field for the client (if it is > serializable) > > -- > WBR > Maxim aka solomax -- Ankush Mishra --------------014CC72A3DE66C6DAA56E125--