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

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:21:      //! Absolute path for which these properties apply.   string abs_path;      //! The current request.   RequestID id;      //! Create a new property set.   //!   //! Usually called via @[query_properties()]. - static void create(string path, string abs_path, RequestID id) + protected void create(string path, string abs_path, RequestID id)   {    global::path = path;    global::abs_path = abs_path;    global::id = id;       ASSERT_IF_DEBUG(has_prefix(abs_path, "/") && has_suffix(abs_path, path));   }    - //! @decl static void destroy(); + //! @decl protected void destroy();   //!   //! Destruction callback.   //!   //! Note that this function must unroll any uncommitted   //! property changes.      //! Return an @[Stdio.Stat] object for the resource. Its main use is   //! to tell collections (i.e. directories) from non-collections.   Stat get_stat();      //! Called by the default @[query_property] implementation to get the   //! response headers a GET or HEAD request on @[path] would yield.   //! It's used to fill in the properties that should reflect various   //! response headers.   mapping(string:string) get_response_headers();      // Simulate an import of useful stuff from Parser.XML.Tree. - static constant SimpleNode = Parser.XML.Tree.SimpleNode; - static constant SimpleElementNode = Parser.XML.Tree.SimpleElementNode; + protected constant SimpleNode = Parser.XML.Tree.SimpleNode; + protected constant SimpleElementNode = Parser.XML.Tree.SimpleElementNode;      private constant all_properties_common = (<    "DAV:getcontentlength",    "DAV:getcontenttype",    "DAV:displayname",    "DAV:resourcetype",    "DAV:supportedlock",    "DAV:iscollection",    "DAV:isfolder",    "DAV:lockdiscovery",