Roxen.git / server / etc / modules / PropertySet.pike

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:48:   mapping(string:string) get_response_headers();      private constant all_properties_common = (<    "DAV:getcontentlength",    "DAV:getcontenttype",    "DAV:displayname",    "DAV:resourcetype",    "DAV:supportedlock",    "DAV:iscollection",    "DAV:isfolder", +  "DAV:lockdiscovery", +  "DAV:supportedlock",   >);      private constant all_properties_file = all_properties_common + (<    "http://apache.org/dav/props/executable",   >);      private constant all_properties_dir = all_properties_common;      //! Returns a multiset with the names of all supported properties.   //!
Roxen.git/server/etc/modules/PropertySet.pike:89:   //!   //! @value "DAV:getcontenttype"   //! RFC2518 13.5   //!   //! @value "DAV:getetag"   //! RFC2518 13.6   //!   //! @value "DAV:getlastmodified"   //! RFC2518 13.7   //! + //! @value "DAV:lockdiscovery" + //! RFC2518 13.8 + //!   //! @value "DAV:resourcetype"   //! RFC2518 13.9   //!   //! @value "DAV:supportedlock"   //! RFC2518 13.11   //!   //! @value "DAV:defaultdocument"   //! @tt{draft-hopmann-collection-props-00@} 1.3   //!   //! Specifies the default document for a collection.
Roxen.git/server/etc/modules/PropertySet.pike:280:       case "DAV:getcontenttype": // RFC2518 13.5    return get_response_headers()["Content-Type"];       case "DAV:getetag": // RFC2518 13.6    return get_response_headers()->ETag;       case "DAV:getlastmodified": // RFC2518 13.7    return get_response_headers()["Last-Modified"];    +  case "DAV:lockdiscovery": // RFC2518 13.8 +  return indices(id->conf->find_locks(path, 0, 0, id))->get_xml(); +     case "DAV:resourcetype": // RFC2518 13.9    if (get_stat()->isdir) {    return ({    Parser.XML.Tree.ElementNode("DAV:collection", ([])), // 12.2    });    }    return 0;       case "DAV:supportedlock": // RFC2518 13.11 -  return ""; -  +  { +  array(Parser.XML.Tree.Node) res = ({ +  Parser.XML.Tree.ElementNode("DAV:lockentry", ([])), +  Parser.XML.Tree.ElementNode("DAV:lockentry", ([])), +  }); +  res->add_child(Parser.XML.Tree.ElementNode("DAV:lockscope", ([]))); +  res[0]->get_last_child()-> +  add_child(Parser.XML.Tree.ElementNode("DAV:exclusive", ([]))); +  res[1]->get_last_child()-> +  add_child(Parser.XML.Tree.ElementNode("DAV:exclusive", ([]))); +  res->add_child(Parser.XML.Tree.ElementNode("DAV:locktype", ([])))-> +  add_child(Parser.XML.Tree.ElementNode("DAV:write", ([]))); +  return res; +  }    case "http://apache.org/dav/props/executable":    // http://www.webdav.org/mod_dav/:    //    // Name: executable    // Namespace: http://apache.org/dav/props/    // Purpose: Describes the executable status of the resource.    // Value: "T" | "F" (case is significant)    // Description: This property is defined by mod_dav's default    // repository, the "filesystem" repository. It    // corresponds to the "executable" permission flag