Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 68467 invoked from network); 8 Aug 2006 22:23:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 22:23:02 -0000 Received: (qmail 14140 invoked by uid 500); 8 Aug 2006 22:23:02 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 14113 invoked by uid 500); 8 Aug 2006 22:23:02 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 14104 invoked by uid 99); 8 Aug 2006 22:23:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 15:23:02 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jasnell@gmail.com designates 72.14.204.231 as permitted sender) Received: from [72.14.204.231] (HELO qb-out-0506.google.com) (72.14.204.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 15:23:01 -0700 Received: by qb-out-0506.google.com with SMTP id a33so476565qbd for ; Tue, 08 Aug 2006 15:22:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=fDXnRSnarVtS+61v5cV4yWVJLaW5tcpRM0zkwmoLyZ8xE3TBnZnJ7tm8ict1KV56nC4BJDLduvn6LemIei07wlriAYx3/Nm34MspdvCsuRskY3gJ6WC1tAI04p99G8n4B5Wre5x4pJWe470+JjOuK1VUVEeBa0eQirmsVDYitzo= Received: by 10.70.51.17 with SMTP id y17mr218022wxy; Tue, 08 Aug 2006 15:22:40 -0700 (PDT) Received: from ?192.168.1.104? ( [67.181.218.96]) by mx.gmail.com with ESMTP id g7sm89215wra.2006.08.08.15.22.39; Tue, 08 Aug 2006 15:22:40 -0700 (PDT) Message-ID: <44D90EAA.1070307@gmail.com> Date: Tue, 08 Aug 2006 15:22:34 -0700 From: James M Snell User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Client code Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, so I've got the new client code running to a point where we can use it with basic Atom Publishing servers. For instance, we can point it at Queso and things just work... Client client = new CommonsClient(); String uri = "http://abdera.watson.ibm.com:8080/atom/abdera"; Entry entry = Factory.INSTANCE.newEntry(); entry.setId(FOMHelper.generateUuid()); entry.setTitle("this is a test"); entry.setUpdated(new Date()); entry.addAuthor("James"); entry.addLink("http://example.org/foo"); entry.setContent("this is a test"); // Create the entry Response response = client.post(uri, entry); System.out.println(response.getStatus()); System.out.println(response.getLocation()); System.out.println(response.getContentLocation()); uri = response.getLocation(); // Edit the entry Document entry_doc = client.get(uri).getDocument(); entry_doc.getRoot().setTitle("this is the changed title"); response = client.put(uri, entry_doc.getRoot()); System.out.println(response.getStatus()); // Delete the entry response = client.delete(uri); System.out.println(response.getStatus()); // Verify that it's gone response = client.get(uri); System.out.println(response.getStatus()); We still need to fully exercise and debug the caching code, but things appear to be minimally functional enough to get real stuff done. - James