You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Pan, Jiantao" <ji...@labbook.com> on 2001/01/29 17:07:51 UTC

PropFind and Name space support question on slide

Morning,
  Has anybody worked on find properties in a different namespace using
propfind?
  I am using slide1.0m5. 
  I tried the testing code like the following, Seems it can not find the
"z39.50:author" property
  Any suggestions?
  Thanks

Code like:

          Vector property = new Vector();
          property.addElement("displayname");
          property.addElement("getcontentlength");
          property.addElement("resourcetype");
          property.addElement("getlastmodified");
          property.addElement("getcontenttype");
          property.addElement("z39.50:author");
          String path = "/slide/files/";
          PropFindMethod pf = new PropFindMethod(path,property.elements());
          client.executeMethod( pf );


The reply is like the following:

<response>
<href>/slide/files/API.html</href>&#10;
<propstat>
 <prop>
  <displayname>/files/API.html</displayname>&#10;
  <getcontentlength>8307</getcontentlength>&#10;
  <resourcetype></resourcetype>
  <getlastmodified>Mon Jan 22 15:14:29 EST 20</getlastmodified>&#10;
  <getcontenttype>text/html</getcontenttype>&#10;
 </prop>&#10;
<status>HTTP/1.1 200 OK</status>&#10;
</propstat>&#10;
<propstat>
 <prop>
  <author></author>
 </prop>&#10;
 <status>HTTP/1.1 404 Not Found</status>&#10;
</propstat>&#10;</response>

Re: PropFind and Name space support question on slide

Posted by Remy Maucherat <re...@apache.org>.
> Morning,
>   Has anybody worked on find properties in a different namespace using
> propfind?
>   I am using slide1.0m5.
>   I tried the testing code like the following, Seems it can not find the
> "z39.50:author" property
>   Any suggestions?
>   Thanks
>
> Code like:
>
>           Vector property = new Vector();
>           property.addElement("displayname");
>           property.addElement("getcontentlength");
>           property.addElement("resourcetype");
>           property.addElement("getlastmodified");
>           property.addElement("getcontenttype");
>           property.addElement("z39.50:author");
>           String path = "/slide/files/";
>           PropFindMethod pf = new
PropFindMethod(path,property.elements());
>           client.executeMethod( pf );

I think the full name of the property is : namespaceName + propertyName.
Don't append ':' in between. ':' is used only if you declare an
abbreviation.

Remy