WebDAVSession
Object Hierarchy:
Description:
[
CCode ( lower_case_csuffix =
"webdav_session" , type_id =
"e_webdav_session_get_type ()" ) ]
[
Version ( since =
"3.26" ) ]
public class WebDAVSession :
SoupSession
Contains only private data that should be read and manipulated using the functions below.
Content:
Static methods:
Creation methods:
Methods:
- public bool acl_sync (string? uri, XmlDocument xml, Cancellable? cancellable = null) throws Error
Issues ACL request on the provided uri, or, in case it's
null, on the URI defined in associated Source.
- public bool copy_sync (string source_uri, string destination_uri, string depth, bool can_overwrite, Cancellable? cancellable = null) throws Error
Copies a resource identified by source_uri to
destination_uri on the server.
- public bool delete_sync (string uri, string? depth, string? etag, Cancellable? cancellable = null) throws Error
Deletes a resource identified by uri on the server.
- public bool delete_with_headers_sync (string uri, string? depth, string? etag, MessageHeaders? in_headers, Cancellable? cancellable = null) throws Error
Deletes a resource identified by uri on the server.
- public string ensure_full_uri (Uri? request_uri, string href)
Converts possibly path-only href into a full URI under
the request_uri.
- public bool get_acl_restrictions_sync (string? uri, out uint32 out_restrictions, out WebDAVACEPrincipalKind out_principal_kind, out SList<string> out_principal_hrefs, Cancellable? cancellable = null) throws Error
Gets Access Control List (ACL) restrictions for the uri,
or, in case it's null, for the URI defined in associated
Source.
- public bool get_acl_sync (string? uri, out SList<WebDAVAccessControlEntry> out_entries, Cancellable? cancellable = null) throws Error
Gets Access Control List (ACL) for the uri, or, in case
it's null, for the URI defined in associated Source.
- public bool get_current_user_privilege_set_full_sync (string? uri, out SList<WebDAVPrivilege> out_privileges, out HashTable<void*,void*> out_capabilities, out HashTable<void*,void*> out_allows, Cancellable? cancellable = null) throws Error
Gets current user privileges for the uri, or, in case
it's null, for the URI defined in associated Source, with
optional read of the capabilities and what the user is allowed.
- public bool get_current_user_privilege_set_sync (string? uri, out SList<WebDAVPrivilege> out_privileges, Cancellable? cancellable = null) throws Error
Gets current user privileges for the uri, or, in case
it's null, for the URI defined in associated Source.
- public bool get_data_sync (string uri, out string? out_href, out string? out_etag, out MessageHeaders out_headers, out string out_bytes, out size_t out_length, Cancellable? cancellable = null) throws Error
Reads a resource identified by uri from the server.
- public unowned string? get_last_dav_error_code ()
Returns last DAV error code as returned by the server.
- public bool get_last_dav_error_is_permission ()
- public bool get_principal_collection_set_sync (string? uri, out SList<string> out_principal_hrefs, Cancellable? cancellable = null) throws Error
Gets list of principal collection href for the uri, or,
in case it's null, for the URI defined in associated Source
.
- public bool get_supported_privilege_set_sync (string? uri, out Node out_privileges, Cancellable? cancellable = null) throws Error
Gets supported privileges for the uri, or, in case it's
null, for the URI defined in associated Source.
- public bool get_sync (string uri, out string? out_href, out string? out_etag, out MessageHeaders out_headers, out unowned OutputStream out_stream, Cancellable? cancellable = null) throws Error
Reads a resource identified by uri from the server and
writes it to the stream.
- public bool getctag_sync (string? uri, out string out_ctag, Cancellable? cancellable = null) throws Error
Issues a getctag property request for a collection identified by
uri, or, in case it's null, on the URI defined in associated
Source.
- public bool list_sync (string? uri, string depth, uint32 flags, out SList<WebDAVResource> out_resources, Cancellable? cancellable = null) throws Error
Lists content of the uri, or, in case it's
null, of the URI defined in associated Source, which
should point to a collection.
- public bool lock_resource_sync (string? uri, WebDAVLockScope lock_scope, int32 lock_timeout, string? owner, out string out_lock_token, Cancellable? cancellable = null) throws Error
Locks a resource identified by uri, or, in case it's
null, by the URI defined in associated Source.
- public bool lock_sync (string? uri, string depth, int32 lock_timeout, XmlDocument xml, out string out_lock_token, out Doc? out_xml_response, Cancellable? cancellable = null) throws Error
Locks a resource identified by uri, or, in case it's
null, on the URI defined in associated Source.
- public bool mkcalendar_sync (string uri, string? display_name, string? description, string? color, uint32 supports, Cancellable? cancellable = null) throws Error
Creates a new calendar collection identified by uri on
the server.
- public bool mkcol_addressbook_sync (string uri, string? display_name, string? description, Cancellable? cancellable = null) throws Error
Creates a new address book collection identified by uri
on the server.
- public bool mkcol_sync (string uri, Cancellable? cancellable = null) throws Error
Creates a new generic collection identified by uri on the
server.
- public bool move_sync (string source_uri, string destination_uri, bool can_overwrite, Cancellable? cancellable = null) throws Error
Moves a resource identified by source_uri to
destination_uri on the server.
- public Message new_message (string method, string? uri) throws Error
- public bool options_sync (string? uri, out HashTable<void*,void*> out_capabilities, out HashTable<void*,void*> out_allows, Cancellable? cancellable = null) throws Error
Issues OPTIONS request on the provided uri, or, in case
it's null, on the URI defined in associated Source.
- public bool post_sync (string? uri, string data, size_t data_length, string? in_content_type, MessageHeaders? in_headers, out string? out_content_type, out MessageHeaders out_headers, out ByteArray? out_content, Cancellable? cancellable = null) throws Error
Issues POST request on the provided uri, or, in case it's
null, on the URI defined in associated Source.
- public bool principal_property_search_sync (string? uri, bool apply_to_principal_collection_set, string? match_ns_uri, string match_property, string match_value, out SList<WebDAVResource> out_principals, Cancellable? cancellable = null) throws Error
Issues a DAV:principal-property-search for the uri, or,
in case it's null, for the URI defined in associated Source
.
- public bool propfind_sync (string? uri, string depth, XmlDocument? xml, WebDAVPropstatTraverseFunc func, Cancellable? cancellable = null) throws Error
Issues PROPFIND request on the provided uri, or, in case
it's null, on the URI defined in associated Source.
- public bool proppatch_sync (string? uri, XmlDocument xml, Cancellable? cancellable = null) throws Error
Issues PROPPATCH request on the provided uri, or, in case
it's null, on the URI defined in associated Source, with
the changes.
- public bool put_data_sync (string uri, string? etag, string content_type, MessageHeaders? in_headers, string bytes, size_t length, out string? out_href, out string? out_etag, out MessageHeaders out_headers, Cancellable? cancellable = null) throws Error
Writes data to a resource identified by uri to the
server.
- public bool put_sync (string uri, string? etag, string content_type, MessageHeaders? in_headers, InputStream stream, ssize_t stream_length, out string? out_href, out string? out_etag, out MessageHeaders out_headers, Cancellable? cancellable = null) throws Error
Writes data from stream to a resource identified by
uri to the server.
- public bool refresh_lock_sync (string? uri, string lock_token, int32 lock_timeout, Cancellable? cancellable = null) throws Error
Refreshes existing lock lock_token for a resource
identified by uri, or, in case it's null, on the URI defined in associated
Source.
- public bool replace_with_detailed_error (Message message, ByteArray? response_data, bool ignore_multistatus, string? prefix) throws Error
Tries to read detailed error information from response_data
, if not provided, then from message's response_body.
- public bool report_sync (string? uri, string? depth, XmlDocument xml, WebDAVPropstatTraverseFunc? func, owned string? out_content_type, owned ByteArray? out_content, Cancellable? cancellable = null) throws Error
Issues REPORT request on the provided uri, or, in case
it's null, on the URI defined in associated Source.
- public bool set_acl_sync (string? uri, SList<WebDAVAccessControlEntry> entries, Cancellable? cancellable = null) throws Error
Changes Access Control List (ACL) for the uri, or, in
case it's null, for the URI defined in associated Source.
- public bool traverse_mkcalendar_response (Message? message, ByteArray xml_data, WebDAVPropstatTraverseFunc func) throws Error
Traverses a CALDAV:mkcalendar-response response and calls func
for each returned DAV:propstat.
- public bool traverse_mkcol_response (Message? message, ByteArray xml_data, WebDAVPropstatTraverseFunc func) throws Error
Traverses a DAV:mkcol-response response and calls func
for each returned DAV:propstat.
- public bool traverse_multistatus_response (Message? message, ByteArray xml_data, WebDAVPropstatTraverseFunc func) throws Error
Traverses a DAV:multistatus response and calls func for
each returned DAV:propstat.
- public bool unlock_sync (string? uri, string lock_token, Cancellable? cancellable = null) throws Error
Releases (unlocks) existing lock lock_token for a
resource identified by uri, or, in case it's null, on the URI defined in associated
Source.
- public bool update_properties_sync (string? uri, SList<WebDAVPropertyChange> changes, Cancellable? cancellable = null) throws Error
Updates properties (set/remove) on the provided uri, or,
in case it's null, on the URI defined in associated Source
, with the changes.
Inherited Members:
All known members inherited from class E.SoupSession
All known members inherited from class Soup.Session
All known members inherited from class GLib.Object