Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 879384566 for ; Fri, 27 May 2011 08:37:15 +0000 (UTC) Received: (qmail 14243 invoked by uid 500); 27 May 2011 08:37:15 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 14202 invoked by uid 500); 27 May 2011 08:37:14 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 14194 invoked by uid 99); 27 May 2011 08:37:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 08:37:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jukka.zitting@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vx0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2011 08:37:09 +0000 Received: by vxb40 with SMTP id 40so2794632vxb.1 for ; Fri, 27 May 2011 01:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=bD5m598f22z2NKcrpCf5vMcaZTo8OAaZ6BqS8q7Rh/g=; b=IPK8Hhmut6rNyBfHF3ONaEFou74Xs/sGyTuAEaZ+rF+FvYieTRvgovNazw4xxeHcZ5 VFTqB7ScqBoxbGkOKKKrrInNz1NaC+IZLlzT4x012rizNnHKFO1Pq7jIZDFEHLCU+2jj u5w8OYIKdXx/l3IxyQ5dK/yahqwQVuOalvrlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=jmbz4eKRxDGCGUuli3V7501lmarMBhJ/999j/JBgJgUISRxgE+b90MW7EpF8mrVXWg Ygk1nHlahRLHA7kAqypjRKxtEWk0MNOSYF48NXPASLz5dLIkSSjFztDLspWzCEKRRIbh pFagpx4NCz8wtWMlX/efaFHZTy4/FL9rPI0O0= Received: by 10.52.65.106 with SMTP id w10mr2205351vds.137.1306485407135; Fri, 27 May 2011 01:36:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.163.69 with HTTP; Fri, 27 May 2011 01:33:43 -0700 (PDT) In-Reply-To: References: From: Jukka Zitting Date: Fri, 27 May 2011 10:33:43 +0200 Message-ID: Subject: Re: Help with downloading files via WEBDAV To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Fri, May 27, 2011 at 5:09 AM, Johnny Wan wrote: > Well, I saw the example for uploading files using the PutMethod, but I didn't find any > equivalent sample for downloading a file. I was expecting a GetMethod to be part of > the Jackrabbit API. There's nothing Jackrabbit-specific about a GET request. There are plenty of generic HTTP tools and libraries out there that you can use to access resources over the web. If you're using Java, you can start with the standard java.net.URL class and its openStream() method [1]. If you need more control, a good solution is the HttpClient library from Apache HttpComponents [2]. [1] http://download.oracle.com/javase/1.5.0/docs/api/java/net/URL.html#openStream() [2] http://hc.apache.org/httpcomponents-client-ga/index.html BR, Jukka Zitting