xhrdav.Client
- Inheritance
- Client
Constructor
Instance members
Instance MethodsDefined By
_delete
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
Private
xhrdav.Client
Delete Collection or Resource(WebDAV: DELETE)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
Have xml parse function?
code »
Returns
- boolean
- true: can parse xml, false: can't parse xml.
Clear Authorization credentials
code »
convert headers keys.
code »
Parameters
- headers : Object=
- HTTP headers object.
- Object
- converted HTTP headers object.
copy
( unknown path, unknown dstPath, unknown handler, unknown opt_request, unknown onXhrComplete )
xhrdav.Client
Copy Collection(WebDAV: COPY)
code »
See
#copyOrMovePath_
Parameters
- path : unknown
- No description.
- dstPath : unknown
- No description.
- handler : unknown
- No description.
- opt_request : unknown
- No description.
- onXhrComplete : unknown
- No description.
copyOrMovePath_
( string method, string path, string dstPath, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
Private
xhrdav.Client
Private method of Copy or Move Collection(WebDAV: COPY/MOVE)
code »
Parameters
- method : string
- HTTP method of WebDAV.
- path : string
- Source Path(
/foo/
). - dstPath : string
- Destination Path(
/bar/
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
Error Handler of exception[Mix-in function]
code »
Parameters
- e : Error
- Error object.
Generate URL from path and location
code »
Parameters
- path : string
- Path(
/foo
,/foo/bar.txt
).
- goog.Uri
- Generated URL object.
get
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Get Resource(WebDAV: GET)
code »
Parameters
- path : string
- Path(
/foo/bar.xml
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
Get Authorization credentials
code »
Returns
- string
- stored auth data.
Has Authorization credentials
code »
Returns
- boolean
- stored auth data(Basic/Digest auth hash string).
head
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Check Resource(WebDAV: HEAD)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
initialize_
( {scheme:string=/domain:stirng=/port:nubmer=/auth:string=}= opt_uri )
Private
xhrdav.Client
WebDAV Client initialize
code »
Parameters
- opt_uri : {scheme:string=/domain:stirng=/port:nubmer=/auth:string=}=
- URI Parameters(opt_uri: scheme, domain, port)
lock
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Lock resource(WebDAV: LOCK)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
mkcol
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Create Collection(WebDAV: MKCOL)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar/
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
move
( unknown path, unknown dstPath, unknown handler, unknown opt_request, unknown onXhrComplete )
xhrdav.Client
Move Collection(WebDAV: MOVE)
code »
See
#copyOrMovePath_
Parameters
- path : unknown
- No description.
- dstPath : unknown
- No description.
- handler : unknown
- No description.
- opt_request : unknown
- No description.
- onXhrComplete : unknown
- No description.
options
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Find out which HTTP methods are understood by the server.(WebDAV: OPTIONS)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
Parse Response All Headers
code »
Parameters
- headerStrings : string
- Response all header strings.
- Object
- converted header object(associated array).
Callback XHTTPRequest Processing
code »
Parameters
- handler : Function
- Callback chain function.
- onXhrComplete : Function
- onXhrComplete callback function.
- event : Object
- XHR Event Object.
propfind
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Get Collection list and Resource property(WebDAV: PROPFIND)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
proppatch
( string path, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Set Collection list and Resource property(WebDAV: PROPPATCH)
code »
Parameters
- path : string
- Path(
/foo/
,/foo/bar.txt
). - handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
put
( string path, Object data, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
xhrdav.Client
Upload Resource(WebDAV: PUT)
code »
Parameters
- path : string
- Path(
/foo/bar.xml
,/foo/bar.txt
). - data : Object
- Upload filedata(text OR binary).
- handler : Function
- Callback chain after request processing.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
request_
( string method, string url, Function handler, {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}= opt_request, Function= onXhrComplete )
Private
xhrdav.Client
Send XHTTPRequest
code »
Parameters
- method : string
- HTTP method(GET, POST, etc).
- url : string
- request url.
- handler : Function
- option function of processing after XHTTPRequest.
- opt_request : {xhrMgr:goog.net.XhrManager/xhrId/headers:Object/query:Object}=
- Option params(xhrId, xhrManager, etc);
- onXhrComplete : Function=
- onXhrComplete callback function.
Set Authorization credentials
code »
Parameters
- auth : string
- set auth data.
Set Query parameters for url.
code »
Parameters
- url : goog.net.Uri
- Uri object.
- query : Object=
- Json/Hash object for query.
- goog.net.Uri
- created uri object.
Set xml parser function Object.
code »
Parameters
- funcObj : Object
- Xml Parse function Object(defined function: parseXml).