<snip>
> Now, when helping to implement this scheme, I have found a couple of
> places where I have problems with this, related with the need of writing
> back to these resources:
>
> jetspeed-content. It need a file to write, or else it need to be able to
> "PUT", or "POST" back content.
>
> The problem will appear again in what is related to customising, as the
> user will need to save back th modified psml resource.
Hmmm.. maybe we need WebDAV support?
> The problem I have currently is:
>
> How do I give the developer a chance to save back a resource?
>
> The obvious API change would be to add some new API to the disk cache:
>
> isWritable()
> getOutputStream()
> setData()
>
> Also, how do we implement this scheme? I would resist to go back to redo
> the mapping between resources and files, as we have already discarded
> this mapping by the problems in maintenance and configuration it has.
> The ideal would be to implement writable resources via a servlet, that
> would take them using HTTP PUT. The servlet would be a pluggable
> resource, having the responsibility of storing and delivering "local"
> writable resources, be it via database, memory, file, whatever. We could
> implement a reference file writer.
Maybe an RMI lookup mechanism would be more appropriate. IE the ability
to serve up a java.io.File. This would be a *very* tight mapping :).
The only problem here is again... how do we resolve URLs to files?.. in
a reliable manner.
> I don't know how would the system
> know that a resource is writable, apart from having a
> "writable.url.prefixes" array property.
>
> Any ideas?
<snip>
I would say WebDAV or RMI. RMI would probably be easier to implement
and more reliable but has the drawback that we need to use the Servlet
API to resolve URIs.
Kevin
--
** Should SUN Open Source Java? Please Vote:
http://relativity.yi.org/java **
Kevin A Burton (e-mail: [EMAIL PROTECTED], UIN: 73488596, ZKey:
burtonator)
http://relativity.yi.org | http://www.openprivacy.org
Message to SUN Microsystems: "Please Open Source Java!"
To fight and conquer in all your battles is not supreme excellence;
supreme
excellence consists in breaking the enemy's resistance without fighting.
- Sun Tzu, 300 B.C.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]