Guillaume Chervet wrote:
Do you know where I can find more informations about slide? I don't
understand the store system. I am using (org.apache.slide.content) but I
don't find how to store some java objects. I can store "String" object
using this example
http://wiki.apache.org/jakarta-slide/Sample_API_application, but nothing
more.
Do you know how it works?

If you can serialize your objects, you can use Java serialization to
byte array or ObjectOutputStream/ObjectInputStream and store the
contents by calling:

void store(SlideToken token, String strUri,
               NodeRevisionDescriptor revisionDescriptor,
               NodeRevisionContent revisionContent)

The NodeRevisionContent is the Slide API object carrying the content
itself and you need to attach content to it like so:
  NodeRevisionContent content = new NodeRevisionContent();
  content.setContent(bytes[] or char[] or Reader or InputStream);


To understand how to use the API it's a good idea to browse through
different methods in the WebDAV servlet implementation. Or you can
try WCK for an API that might be easier to "digest" than the full
Content / Storage etc in Slide.

HTH,
 Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to