class Tilia::Dav::Xml::Request::PropFind
WebDAV PROPFIND request parser.
This class parses the {DAV:}propfind request, as defined in:
Attributes
If this is set to true, this was an 'allprop' request.
@var bool
The property list
@var null|array
Public Class Methods
TODO: document
# File lib/tilia/dav/xml/request/prop_find.rb, line 63 def initialize @all_prop = false end
The deserialize method is called during xml parsing.
This method is called statictly, this is because in theory this method may be used as a type of constructor, or factory method.
Often you want to return an instance of the current class, but you are free to return other data as well.
You are responsible for advancing the reader to the next element. Not doing anything will result in a never-ending loop.
If you just want to skip parsing for this element altogether, you can just call reader.next
reader.parse_inner_tree will parse the entire sub-tree, and advance to the next element.
@param Reader reader @return mixed
# File lib/tilia/dav/xml/request/prop_find.rb, line 42 def self.xml_deserialize(reader) instance = new reader.push_context reader.element_map['{DAV:}prop'] = Tilia::Xml::Element::Elements Tilia::Xml::Element::KeyValue.xml_deserialize(reader).each do |k, v| case k when '{DAV:}prop' instance.properties = v when '{DAV:}allprop' instance.all_prop = true end end reader.pop_context instance end