You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Jingmei Li <Ji...@bentley.com> on 2002/08/14 15:14:18 UTC

how to add custom property tags?

I would like to insert a custom property tag to the response XML and tried
the following but the tag didn't show in the XML:
...
            property = new NodeProperty("BSI_isreadonly", "1",
token.getName());  //token is NamespaceAccessToken
            revisionDescriptor.setProperty(property);
...

The following is what I would expect to see: (notice <BSI_isreadonly> tag)

<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:S="<http://jakarta.apache.org/slide/>">
<response>
<href>/webfolders/pw-test/Text/textfile#205.txt</href>
<propstat>
<prop>
<creationdate>2002-08-13T11:27:12Z</creationdate>
<getlastmodified>Wed, 31 Jul 2002 18:37:30 GMT</getlastmodified>
<displayname>
<![CDATA[textfile 5.txt]]>
</displayname>
<getcontentlength>348</getcontentlength>
<owner>
<href>/users/root</href>
</owner>
<resourcetype/> 
<BSI_readonly>1</BSI_isreadonly>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<href/>
<locktoken/>
<collection/>
<activelock/>
<isreadonly/>
<ishidden/>
<iscollection/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

Any ideas?

Thanks in advance.

Jingmei Li

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>