jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Läubrich <lae...@googlemail.com>
Subject Re: Node reference URL/file path in WebDav
Date Tue, 12 Feb 2013 16:11:34 GMT
I have had the exact same problem a few days ago. The answer was: "It 
should work" but I have not get it to work whatever client I used...

ATM I'm using WebDavServlet Project to interact directly with the Rabbit 
Repro as a workaround.

Am 12.02.2013 16:40, schrieb katsu:
> Hello,
>
> I have the following problem. I am accessing jackrabbit repository via
> Webdav. Now I would like to add a file node which the content (data) should
> point to a locally saved file path/URL. E.g.
>
> Node fileNode = parentnode.addNode(abc.jpg, "nt:file");
> Node resNode = fileNode.addNode("jcr:content", "nt:resource");		
> resNode.setProperty("jcr:mimeType", mimeType);
> resNode.setProperty("jcr:encoding", "");
> resNode.setProperty("jcr:data", reference to a URL/File Path);	
>
> And that when I access via Webdav and click on “abc.jpg” I will be
> redirected to the actual path of abc.jpg (e.g. http://image.com/abc.jpg).
>
> How could that be possible? Could be great if someone could give me a hint
> on that.
>
> Many thanks.
>
> Regards,
>
> Kate
>
>
>
>
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/Node-reference-URL-file-path-in-WebDav-tp4657734.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>    


Mime
View raw message