class Tilia::Dav::Xml::Service

XML service for WebDAV

Attributes

element_map[RW]

This is a list of XML elements that we automatically map to PHP classes.

For instance, this list may contain an entry `{DAV:}propfind` that would be mapped to SabreDAVXmlRequestPropFind

namespace_map[RW]

This is a default list of namespaces.

If you are defining your own custom namespace, add it here to reduce bandwidth and improve legibility of xml bodies.

@var array

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/tilia/dav/xml/service.rb, line 20
def initialize
  super
  @element_map = {
    '{DAV:}multistatus' => Tilia::Dav::Xml::Response::MultiStatus,
    '{DAV:}response'    => Tilia::Dav::Xml::Element::Response,

    # Requests
    '{DAV:}propfind'       => Tilia::Dav::Xml::Request::PropFind,
    '{DAV:}propertyupdate' => Tilia::Dav::Xml::Request::PropPatch,
    '{DAV:}mkcol'          => Tilia::Dav::Xml::Request::MkCol,

    # Properties
    '{DAV:}resourcetype' => Tilia::Dav::Xml::Property::ResourceType
  }
  @namespace_map = {
    'DAV:'                   => 'd',
    'http://sabredav.org/ns' => 's'
  }
end