Network Working Group                                         J. Reschke
Request for Comments: 4709                                    greenbytes
Category: Informational                                     October 2006
        

Mounting Web Distributed Authoring and Versioning (WebDAV) Servers

Web分散オーサリングとバージョン管理(WebDAV)サーバーを取り付け

Status of This Memo

このメモのステータス

This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.

このメモはインターネットコミュニティのための情報を提供します。それはどんな種類のインターネット標準を指定しません。このメモの配布は無制限です。

Copyright Notice

著作権表示

Copyright (C) The Internet Society (2006).

著作権(C)インターネット協会(2006)。

Abstract

抽象

In current Web browsers, there is no uniform way to specify that a user clicking on a link will be presented with an editable view of a Web Distinguished Authoring and Versioning (WebDAV) server. For example, it is frequently desirable to be able to click on a link and have this link open a window that can handle drag-and-drop interaction with the resources of a WebDAV server.

現在のWebブラウザでは、リンクをクリックするユーザーがWeb識別オーサリングとバージョン管理(WebDAV)サーバーの編集可能なビューを提示されることを指定する均一な方法はありません。例えば、WebDAVサーバのリソースをドラッグ・アンド・ドロップの相互作用を扱うことができるウィンドウを開き、このリンクをリンクをクリックして持つことができることがしばしば望ましいです。

This document specifies a mechanism and a document format that enables WebDAV servers to send "mounting" information to a WebDAV client. The mechanism is designed to work on any platform and with any combination of browser and WebDAV client, relying solely on the well-understood dispatch of documents through their MIME type.

この文書では、メカニズムやWebDAVクライアントに「マウント」の情報を送信するためにWebDAVサーバを可能ドキュメント形式を指定します。メカニズムは、そのMIMEタイプによって文書の十分に理解派遣のみに頼る、任意のプラットフォーム上とブラウザやWebDAVクライアントの任意の組み合わせで動作するように設計されています。

Table of Contents

目次

   1. Introduction ....................................................2
   2. Terminology .....................................................3
   3. Format ..........................................................3
      3.1. dm:mount ...................................................4
      3.2. dm:url .....................................................4
      3.3. dm:open ....................................................4
      3.4. dm:username ................................................4
   4. Example .........................................................4
   5. Internationalization Considerations .............................5
   6. IANA Considerations .............................................6
      6.1. MIME Type Registration .....................................6
   7. Security Considerations .........................................8
   8. Acknowledgements ................................................8
   9. References ......................................................9
      9.1. Normative References .......................................9
      9.2. Informative References .....................................9
   Appendix A.  Alternative Approaches ...............................10
      A.1. ...Through HTML/CSS Extensions ............................10
      A.2. ...Through Custom URI Schemes .............................10
   Appendix B.  Implementations ......................................10
      B.1. Example Implementation for Webfolder Client ...............10
      B.2. Xythos ....................................................14
        
1. Introduction
1. はじめに

By definition, a Web Distributed Authoring and Versioning (WebDAV) server ([RFC2518]) is an HTTP server as well ([RFC2616]). Most WebDAV servers can be (at least partly) operated from an HTML-based user interface in a web browser. However, it is frequently desirable to be able to switch from an HTML-based view to a presentation provided by a native WebDAV client, directly supporting the authoring features defined in WebDAV and related specifications.

定義により、Web分散オーサリングとバージョン管理(WebDAV)サーバ([RFC2518])はHTTPサーバも([RFC2616])です。ほとんどのWebDAVサーバは、(少なくとも部分的に)なり、WebブラウザでHTMLベースのユーザー・インタフェースから操作することができます。しかし、直接WebDAVと関連する仕様で定義されたオーサリング機能をサポートし、ネイティブWebDAVクライアントが提供するプレゼンテーションにHTMLベースのビューに切り替えることができることがしばしば望ましいです。

This document specifies a platform-neutral mechanism based on the dispatch of documents through their MIME type. For completeness, Appendix A lists other approaches that have been implemented in existing clients.

この文書では、彼らのMIMEタイプによって文書の発送に基づいて、プラットフォームに依存メカニズムを指定します。完全を期すため、付録Aには、既存のクライアントに実装されている他の方法を示しています。

For example, many educational institutions use WebDAV servers as a mechanism for sharing documents among students. Each student owns a separate collection structure on a WebDAV server, often called his/ her "locker". Ideally, when users click on a link in an HTML page provided by the university (perhaps by their university Web portal), an editable view of their locker will appear.

例えば、多くの教育機関は、学生の間で文書を共有するための仕組みとして、WebDAVサーバを使用しています。各学生は、WebDAVサーバー上の別のコレクション構造、多くの場合、彼/彼女の「ロッカー」と呼ばを所有しています。理想的には、ユーザーは、大学が提供するHTMLページ内のリンクをクリックしたとき(おそらく、その大学のWebポータルで)、自分のロッカーの編集可能なビューが表示されます。

2. Terminology
2.用語

The terminology used here follows that in the WebDAV Distributed Authoring Protocol specification [RFC2518].

ここで使用される用語は、WebDAVにオーサリングプロトコル仕様[RFC2518]を分散することになります。

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

この文書のキーワード "MUST"、 "MUST NOT"、 "REQUIRED"、、、、 "べきではない" "べきである" "ないもの" "ものとし"、 "推奨"、 "MAY"、および "OPTIONAL" はあります[RFC2119]に記載されているように解釈されます。

This document uses XML DTD fragments ([XML]) as a purely notational convention. In particular:

この文書では、純粋な表記規則としてXML DTDフラグメント([XML])を使用しています。特に:

o Element names use the namespace "http://purl.org/NET/webdav/mount". When an XML element type in this namespace is referenced in this document outside of the context of an XML fragment, the string "dm:" will be prefixed to the element name.

O要素名は、名前空間「http://purl.org/NET/webdav/mount」を使用します。この名前空間のXML要素の型はXMLフラグメントの文脈の外で、このドキュメントで参照されている場合は、文字列「DMは:」要素名の前に付加されます。

o Element ordering is irrelevant.

O要素の順序は関係ありません。

o Extension elements/attributes (elements/attributes not already defined as valid child elements) may be added anywhere, except when explicitly stated otherwise.

O拡張要素/属性(要素/すでに有効な子要素として定義されていない属性は)特に明記する場合を除いて、どこにでも追加することができます。

3. Format
3.フォーマット

A WebDAV mount request is encoded in a specific XML format ([XML]) with a well-defined MIME type (see Section 6.1). The MIME type allows user agents to dispatch the content to a handler specific to the system's WebDAV client.

WebDAVのマウント要求が明確に定義されたMIMEタイプを持つ特定のXMLフォーマット([XML])で符号化される(セクション6.1参照)。 MIMEタイプは、ユーザエージェントは、システムのWebDAVクライアントに固有のハンドラにコンテンツを派遣することができます。

The elements defined below use the namespace "http://purl.org/NET/webdav/mount".

以下に定義する要素は「http://purl.org/NET/webdav/mount」名前空間を使用します。

<!ELEMENT mount (url, open?, username?) >

<!ELEMENTマウント(URL、オープン?ユーザー名?)>

<!ELEMENT url (#PCDATA) > <!-- PCDATA value: scheme ":" hier-part, as defined in Section 3 of [RFC3986] -->

<!ELEMENTのURL(#PCDATA)> <! - PCDATA値:スキーム ":" HIER部分、[RFC3986]のセクション3で定義されるように - >

<!ELEMENT open (#PCDATA) > <!-- PCDATA value: path, as defined in Section 3 of [RFC3986] -->

<!ELEMENTオープン(#PCDATA)> <! - PCDATA値:パス、[RFC3986]のセクション3で定義されるように - >

<!ELEMENT username (#PCDATA) >

<!ELEMENTのユーザー名(#PCDATA)>

3.1. dm:mount
3.1. DM:マウント

The <dm:mount> element acts as a container for all the remaining elements defined by this protocol.

<DM:マウント>要素は、このプロトコルによって定義された残りのすべての要素のコンテナとして機能します。

3.2. dm:url
3.2. DM:URL

The mandatory <dm:url> element provides the HTTP URL of the WebDAV collection that should be mounted by the client.

必須の<dm:URL>要素には、クライアントによってマウントされなければならないWebDAVコレクションのHTTP URLを提供します。

3.3. dm:open
3.3. DM:オープン

The optional <dm:open> element instructs the client to display the specified child collection; its URL is computed by concatenating this element's value with the URL obtained from the <dm:url> (Section 3.2) element (see Section 7 for a discussion about why this element only supports displaying collections rather than opening arbitrary documents).

オプションの<dm:オープン>要素は、指定された子のコレクションを表示するようにクライアントに指示します。そのURLは、<DM:URL>から取得したURLを、この要素の値を連結することによって計算される(3.2節)の要素(この要素はコレクションのみを表示するのではなく、任意のドキュメントを開くサポートする理由についての議論のためのセクション7を参照)。

3.4. dm:username
3.4. DM:ユーザ名

The server can use the optional <dm:username> element to specify the name of the currently authenticated principal. A client can use this value to select a matching mount point (different users may have mounted the URL with different credentials under different local mount points) or to provide a meaningful default for authentication against the server. It is common that a browser and WebDAV client do not share HTTP connections, so including this information in the mount document increases usability.

現在、認証されたプリンシパルの名前を指定するには:<ユーザー名DM>要素サーバーは、オプションを使用することができます。クライアントは、マウントポイントのマッチングを選択するには、この値を使用することができます(別のユーザーが別のローカルマウントポイントの下に別の資格情報でURLを搭載している場合があります)またはサーバーに対する認証のための意味のあるデフォルトを提供します。ブラウザやWebDAVクライアントは、HTTP接続を共有していないことが一般的であるので、マウント文書にこの情報を含め、使い勝手を向上させます。

Implementation Note: If a <dm:username> element is present, public caching of the document should be disallowed. Thus, appropriate 'Vary' or 'Cache-Control' headers are needed in the server response.

実装上の注意:場合の<dm:ユーザー名>要素が存在する、文書の公開キャッシングが禁止されなければなりません。このように、適切な「ヴァリ」または「のCache-Control」ヘッダは、サーバ応答で必要とされます。

4. Example
4.例

In the example below, the client first retrieves a representation of a WebDAV collection using a generic Web browser (1). The returned HTML content contains a hyperlink that identifies the "davmount" document in the format defined in Section 3 (2). The user follows this link (3), which causes the server to return the "davmount" document to the user's browser (4). The browser in turn passes the content to the application that was registered to handle the "application/davmount+xml" MIME type, usually the default WebDAV client on the client's system.

以下の例では、クライアントはまず、一般的なWebブラウザ(1)を使用してWebDAVコレクションの表現を取得します。返されたHTMLコンテンツは、第3節(2)で定義されている形式の「davmount」文書を特定のハイパーリンクが含まれています。ユーザーは、サーバーがユーザーのブラウザ(4)に「davmount」ドキュメントを返すようになり、このリンク(3)を、次の。ターン中のブラウザでは、クライアントのシステム上の「アプリケーション/ davmount + xmlの」MIMEタイプ、通常はデフォルトのWebDAVクライアントを処理するために登録されたアプリケーションにコンテンツを渡します。

(1) Client retrieves representation of WebDAV collection "/user42/ inbox/".

(1)クライアントは、WebDAVコレクション "/ user42 /受信箱/" の表現を取得します。

GET /user42/inbox/ HTTP/1.1 Host: www.example.com

GET / user42 /受信トレイ/ HTTP / 1.1ホスト:www.example.com

(2) Server returns representation.

(2)サーバは、表現を返します。

HTTP/1.1 200 OK Content-Type: text/html Content-Length: xxx

HTTP / 1.1 200 OKのContent-Type:text / htmlでのコンテンツの長さ:XXX

.. <a href="?action=davmount">View this collection in your WebDAV client</a> ..

... <a href="?action=davmount">あなたのWebDAVクライアント</a>の中で、このコレクションを見ます..

(note that the example shows only that part of the HTML page that contains the relevant link)

(例では、関連リンクを含むHTMLページのその部分だけを示していることに注意してください)

(3) Client follows link to "davmount" document

(3)クライアントが「davmount」文書へのリンクをたどります

GET /user42/inbox/?action=davmount HTTP/1.1 Host: www.example.com

?GET / user42 /受信トレイ/アクション= davmount HTTP / 1.1ホスト:www.example.com

(4) Server returns "davmount" document

(4)サーバーは "davmount" ドキュメントを返します

HTTP/1.1 200 OK Content-Type: application/davmount+xml Content-Length: xxx Cache-Control: private

HTTP / 1.1 200 OKのContent-Type:アプリケーション/ davmount +のxmlのContent-Length:XXXのCache-Control:プライベート

<dm:mount xmlns:dm="http://purl.org/NET/webdav/mount"> <dm:url>http://www.example.com/user42/</dm:url> <dm:open>inbox/</dm:open> </dm:mount>

<DM:のxmlnsをマウント:DM = "http://purl.org/NET/webdav/mount"> <DM:URL> http://www.example.com/user42/ </ DM:URL>の<dm: >受信トレイ/ </ DMオープン:オープン> </ DM:マウント>

5. Internationalization Considerations
5.国際化に関する注意事項

This document does not introduce any new internationalization considerations beyond those discussed in [RFC2518], Section 16.

この文書では、[RFC2518]で説明したものを超えて、新たな国際化の考慮、セクション16を導入しません。

6. IANA Considerations
6. IANAの考慮事項
6.1. MIME Type Registration
6.1. MIMEタイプ登録

Type name:

名前を入力します。

application

応用

Subtype name:

サブタイプ名:

davmount+xml

davmount + xmlの

Required parameters:

必須パラメータ:

none

無し

Optional parameters:

オプションのパラメータ:

"charset": This parameter has identical semantics to the charset parameter of the "application/xml" media type as specified in [RFC3023].

「文字セット」:このパラメータは、[RFC3023]で指定されるように、「アプリケーション/ XML」メディアタイプのcharsetパラメータと同じ意味を有します。

Encoding considerations:

エンコードの考慮事項:

Identical to those of "application/xml" as described in [RFC3023], Section 3.2.

[RFC3023]に記載されているように、「アプリケーション/ XML」のものと同じ、セクション3.2。

Security considerations:

セキュリティの考慮事項:

As defined in this specification. In addition, as this media type uses the "+xml" convention, it shares the same security considerations as described in [RFC3023], Section 10.

この仕様で定義されているように。このメディアタイプは「+ xmlの」規則を使用して、[RFC3023]、セクション10で説明したように加えて、それは同じセキュリティ上の考慮事項を共有しています。

Interoperability considerations:

相互運用性の考慮事項:

There are no known interoperability issues.

既知の相互運用性の問題はありません。

Published specification:

公開された仕様:

This specification.

この仕様。

Applications that use this media type:

このメディアタイプを使用するアプリケーション:

SAP Netweaver Knowledge Management, Xythos Drive.

するSAP NetWeaverナレッジマネジメント、Xythosのドライブ。

Additional information:

追加情報:

Magic number(s):

マジックナンバー(S):

As specified for "application/xml" in [RFC3023], Section 3.2.

[RFC3023]で "アプリケーション/ XML" のために指定されているように、3.2節。

File extension(s):

ファイルの拡張子(S):

.davmount

.davmount

Fragment identifiers:

フラグメント識別子:

As specified for "application/xml" in [RFC3023], Section 5.

[RFC3023]に "アプリケーション/ XML" で指定されるように、第5節。

Base URI:

ばせ うり:

As specified in [RFC3023], Section 6.

[RFC3023]で指定されるように、第6節。

Macintosh file type code(s):

Macintoshのファイルタイプコード(S):

TEXT

テキスト

Person & email address to contact for further information:

詳細のために連絡する人とEメールアドレス:

Julian Reschke <julian.reschke@greenbytes.de>

ジュリアンReschke <julian.reschke@greenbytes.de>

Intended usage:

意図している用法:

COMMON

一般

Restrictions on usage:

使用に関する制限事項:

None.

無し。

Author:

著者:

Julian Reschke

ジュリアンReschke

Change controller:

コントローラを変更します。

IESG

IESG

7. Security Considerations
7.セキュリティの考慮事項

All security considerations connected to HTTP/WebDAV and XML apply for this specification as well, namely, [RFC2518] (Section 17) and [RFC3470] (Section 7).

HTTP / WebDAVとXMLに接続されたすべてのセキュリティ上の考慮事項は、同様に本明細書のために、すなわち、[RFC2518](セクション17)及び[RFC3470](セクション7)を適用します。

In addition, client implementers must be careful when implementing the <dm:open> element (see Section 3.3). It MUST NOT be used to initiate any action beyond displaying the contents of a WebDAV collection (supporting "opening" documents could be abused to trick a user into letting the operating system's shell execute arbitrary content, possibly running it as an executable program).

要素(3.3節を参照してください):<オープンDM>を実装する際に加えて、クライアントの実装者は注意しなければなりません。 (「開口部」のドキュメントをサポートするオペレーティングシステムのシェルは、おそらく実行可能なプログラムとして、それを実行し、任意のコンテンツを実行させるにユーザーをだまして悪用される可能性が)WebDAVコレクションの内容を表示超えた任意のアクションを開始するために使用してはいけません。

The OPTIONAL <dm:username> element defined in Section 3.4 allows the inclusion of user names into mount documents. However in some cases, user name information is considered to be security sensitive. Should this be the case, parties generating mount documents are advised to either not to include user names, or to use access control to restrict access to the information as desired.

オプションの<dm:ユーザー名> 3.4節で定義された要素は、マウント文書にユーザー名を含めることができます。しかし、いくつかのケースでは、ユーザ名情報は、セキュリティに敏感であると考えられています。このような場合でなければならず、文書をマウント生成当事者がユーザー名を含まないするか、または必要に応じて情報へのアクセスを制限するアクセス制御を使用することをお勧めします。

8. Acknowledgements
8.謝辞

This document has benefited from thoughtful discussion by Emile Baizel, Spencer Dawkins, Lisa Dusseault, Stefan Eissing, Joe Gregorio, Michal Gregr, Russ Housley, Jim Luther, Jaroslav Mazanec, and Jim Whitehead.

この文書では、エミールBaizel、スペンサードーキンスリサDusseault、ステファンEissing、ジョー・グレゴリオ、ミカルGregr、ラスHousley、ジム・ルーサー、ヤロスラフMazanec、そしてジム・ホワイトヘッドで思慮深い議論の恩恵を受けています。

9. References
9.参考文献
9.1. Normative References
9.1. 引用規格

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119]ブラドナーの、S.、 "要件レベルを示すためにRFCsにおける使用のためのキーワード"、BCP 14、RFC 2119、1997年3月。

[RFC2518] Goland, Y., Whitehead, E., Faizi, A., Carter, S., and D. Jensen, "HTTP Extensions for Distributed Authoring -- WEBDAV", RFC 2518, February 1999.

[RFC2518] Goland、Y.、ホワイトヘッド、E.、フェッチ、A.、カーター、S.、およびD.ジェンセン、 "分散オーサリングのHTTP拡張 - WEBDAV"、RFC 2518、1999年2月。

[RFC2616] Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, "Hypertext Transfer Protocol -- HTTP/1.1", RFC 2616, June 1999.

[RFC2616]フィールディング、R.、ゲティス、J.、モーグル、J.、Frystyk、H.、Masinter、L.、リーチ、P.、およびT.バーナーズ - リー、 "ハイパーテキスト転送プロトコル - HTTP / 1.1" 、RFC 2616、1999年6月。

[RFC3023] Murata, M., St.Laurent, S., and D. Kohn, "XML Media Types", RFC 3023, January 2001.

[RFC3023]村田、M.、St.Laurent、S.、およびD.コーン、 "XMLのメディアタイプ"、RFC 3023、2001年1月。

[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, January 2005.

[RFC3986]バーナーズ - リー、T.、フィールディング、R.、およびL. Masinter、 "ユニフォームリソース識別子(URI):汎用構文"、STD 66、RFC 3986、2005年1月。

[XML] Bray, T., Paoli, J., Sperberg-McQueen, C., Maler, E., and F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fourth Edition)", W3C REC-xml-20060816, August 2006, <http://www.w3.org/TR/2006/REC-xml-20060816>.

[XML]ブレイ、T.、パオリ、J.、Sperberg-マックィーン、C.、MALER、E.、およびF. Yergeau、 "拡張マークアップ言語(XML)1.0(第4版)"、W3C REC-XML-20060816 、2006年8月、<http://www.w3.org/TR/2006/REC-xml-20060816>。

9.2. Informative References
9.2. 参考文献

[RFC3470] Hollenbeck, S., Rose, M., and L. Masinter, "Guidelines for the Use of Extensible Markup Language (XML) within IETF Protocols", RFC 3470, BCP 70, January 2003.

[RFC3470]ホレンベック、S.、ローズ、M.、およびL. Masinter、 "IETFプロトコル内の拡張マークアップ言語(XML)の使用のためのガイドライン"、RFC 3470、BCP 70、2003年1月。

[WEBARCH] Walsh, N. and I. Jacobs, "Architecture of the World Wide Web, Volume One", W3C REC-webarch-20041215, December 2004, <http://www.w3.org/TR/2004/REC-webarch-20041215/>.

[WEBARCH]ウォルシュ、N.およびI.ジェイコブス、 "ワールド・ワイド・ウェブのアーキテクチャ1巻"、W3C REC-webarch-20041215、2004年12月、<http://www.w3.org/TR/2004/REC -webarch-20041215 />。

Appendix A. Alternative Approaches

付録A.代替アプローチ

A.1. ...Through HTML/CSS Extensions

A.1。 ... HTML / CSSの拡張機能を通じて、

Microsoft Internet Explorer implements a Cascading Style Sheet (CSS) extension that allows switching to its own WebDAV client ("Webfolder", see <http://msdn.microsoft.com/workshop/author/ behaviors/reference/behaviors/anchor.asp>). However, at the time of this writing, this extension was not implemented by any other user agent.

Microsoft Internet Explorerには、独自のWebDAVクライアント(「Webフォルダ」に切り替えることができますカスケーディングスタイルシート(CSS)の拡張、<http://msdn.microsoft.com/workshop/author/行動/参照参照/行動/ anchor.aspを実装します>)。しかし、この記事の執筆時点では、この拡張機能は、他のユーザエージェントによって実装されていませんでした。

A.2. ...Through Custom URI Schemes

A.2。 ...カスタムURIスキームを通じて、

The "kio" library of the "K Desktop Enviroment" (<http://www.kde.org/>) uses the URI scheme "webdav" to dispatch to the system's WebDAV client. This URI scheme is not registered, nor is it supported on other platforms. Furthermore, the W3C's "Architecture of the World Wide Web, Volume One" explicitly advises against defining new schemes when existing schemes can be used:

「Kデスクトップ的環境」(<http://www.kde.org/>)の「KIO」ライブラリは、システムのWebDAVクライアントに派遣するURIスキーム「WebDAVを」使用しています。このURIスキームが登録されていない、またそれは他のプラットフォームでサポートされています。さらに、W3Cの「ワールド・ワイド・ウェブのアーキテクチャは、第一巻は、」明示的に既存のスキームを使用することができたときに、新たなスキームを定義に対するアドバイス:

A specification SHOULD reuse an existing URI scheme (rather than create a new one) when it provides the desired properties of identifiers and their relation to resources.

それが識別子と資源との関係の所望の特性を提供する場合仕様は、(よりむしろ新しいものを作成する)既存のURIスキームを再利用すべきです。

(See [WEBARCH], Section 2.4.)

([WEBARCH]、2.4節を参照してください。)

Appendix B. Implementations

付録B.実装

B.1. Example Implementation for Webfolder Client

B.1。 Webフォルダのクライアントの実装例

The figure below shows a sample implementation of a dispatcher for the application/davmount+xml datatype, suited for Win32 systems and the Microsoft "Webfolder" client.

以下の図は、Win32システムとMicrosoft、「Webフォルダ」のクライアントに適したアプリケーション/ davmount + XMLデータ型のディスパッチャのサンプル実装を示しています。

// sample implementation of application/davmount+xml // dispatcher for Windows Webfolder client // // to install/uninstall: // wscript davmount.js // // to open the webfolder: // wscript davmount.js filename // (where filename refers to an XML document with MIME type // application/davmount+xml)

//のWScript davmount.js // // Webフォルダを開くために://のWScript davmount.jsファイル名// /アンインストールするには、WindowsのWebフォルダクライアント// //用アプリケーション/ davmount + XML //ディスパッチャの//サンプル実装(ファイル名がMIMEタイプ//アプリケーション/ davmount + XMLでXML文書を指します)

   var EXTENSION = ".davmount";
   var MIMETYPE = "application/davmount+xml";
   var REGKW = "WebDAV.mount";
        

var NS = "xmlns:m='http://purl.org/NET/webdav/mount";

VaRのNS = "のxmlns:M = 'のhttp://purl.org/NET/webdav/mount";

// remove keys/entries from the registry

//レジストリからキー/エントリを削除

   function regdel(shell, key) {
     try {
       var x = shell.RegRead(key);
       try {
         shell.RegDelete(key);
       }
       catch(e) {
         WScript.Echo("Error removing key " + key + ": " + e);
       }
     }
     catch(e) {
       // entry not present
     }
   }
        

// methods for registering/unregistering the handler

ハンドラの登録を解除/登録する//メソッド

function install() {

機能インストール(){

     var WshShell = new ActiveXObject("WScript.Shell");
     if (WshShell == null) {
       WScript.Echo("Couldn't instantiate WScript.Shell object");
       return 2;
     }
        

var fso = new ActiveXObject("Scripting.FileSystemObject");

VaRのFSO =新しいActiveXObjectを( "Scripting.FileSystemObjectオブジェクト");

     var RegExt = "HKCR\\" + EXTENSION + "\\";
     var RegMimeType = "HKCR\\MIME\\DataBase\\Content Type\\"
       + MIMETYPE + "\\";
     var RegKw = "HKCR\\" + REGKW + "\\";
        
     var extension = null;
     try {
       extension = WshShell.RegRead(RegMimeType + "Extension");
     }
     catch (e) {
     }
        

if (extension == null) { var but = WshShell.popup("Install the dispatcher for mime type " + MIMETYPE + "?", 0, MIMETYPE + " installation", 4);

IF(拡張== NULL){VARしかし= WshShell.popup(+ MIMETYPE + "のMIMEタイプのためのディスパッチャをインストール"、0、MIMETYPE + "インストール"、4 "?")。

       if (but == 6) {
         try {
           WshShell.RegWrite(RegExt, REGKW);
           WshShell.RegWrite(RegExt + "Content Type", MIMETYPE);
           WshShell.RegWrite(RegMimeType + "Extension", EXTENSION);
           WshShell.RegWrite(RegKw, "WebDAV Mount Request");
           WshShell.RegWrite(RegKw + "DefaultIcon\\",
             "shell32.dll,103");
           var path = fso.getAbsolutePathName("davmount.js");
           WshShell.RegWrite(RegKw + "shell\\open\\command\\",
             "%SystemRoot%\\system32\\wscript.exe /nologo \""
             + path + "\" \"%1\"", "REG_EXPAND_SZ");
         }
         catch (e) {
           WScript.Echo("Error writing to registry");
           return 1;
         }
        
         return 0;
       }
       else {
         return 1;
       }
     }
     else {
       var but = WshShell.popup("Remove the dispatcher for mime type "
         + MIMETYPE + "?", 0, MIMETYPE + " installation", 4);
        
       if (but == 6) {
         regdel(WshShell, RegExt + "Content Type");
         regdel(WshShell, RegExt);
         regdel(WshShell, RegKw + "shell\\open\\command\\");
         regdel(WshShell, RegKw + "DefaultIcon\\");
         regdel(WshShell, RegKw);
         regdel(WshShell, RegMimeType + "Extension");
         regdel(WshShell, RegMimeType);
         return 0;
       }
       else {
         return 1;
       }
     }
   }
        

if (WScript.Arguments.length == 0) { // install/uninstall WScript.Quit(install());

IF(WScript.Arguments.length == 0){//インストール/アンインストールWScript.Quit(インストール())。

} else { // try to invoke Webfolder

}他{// Webフォルダを起動してみてください

     var inp = new ActiveXObject("MSXML2.DOMDocument");
     var furi = encodeURI(WScript.Arguments(0));
     if (! inp.load(furi)) {
       WScript.Echo("Can't read from '"
         + WScript.Arguments(0) + "'!");
       WScript.Quit(2);
     }
        
     inp.setProperty("SelectionLanguage", "XPath");
     inp.setProperty("SelectionNamespaces",
       "xmlns:m='http://purl.org/NET/webdav/mount'");
        
     var n1 = inp.selectSingleNode("/m:mount/m:url");
     var n2 = inp.selectSingleNode("/m:mount/m:open");
        
     if (n1 == null) {
       WScript.Echo("<url> element missing.");
       WScript.Quit(2);
     }
        

var ie = new ActiveXObject("InternetExplorer.Application");

VAR、すなわち=新しいActiveXObjectを( "InternetExplorer.Application");

     ie.Navigate("about:blank");
     var doc = ie.Document;
        
     var folder = doc.createElement("span");
     folder.addBehavior("#default#httpFolder");
        

var result = folder.navigate(n1.text + (n2 == null ? "" : n2.text));

VaRの結果= folder.navigate(n1.text +(N2 == nullの "":n2.text));?

// close the window again when there was no <open> element if (n2 == null) ie.Quit();

何の<オープン>要素であれば(N2 ==ヌル)ie.Quitは()がなかったとき//再びウィンドウを閉じます。

     if (result != "OK") {
       if (result == "PROTOCOL_NOT_SUPPORTED") {
         WScript.Echo("This site doesn't seem to support WebDAV.");
         WScript.Quit(1);
       }
       else {
         WScript.Echo("Unexpected status: " + result);
         WScript.Quit(2);
       }
     }
        

}

B.2. Xythos

B.2。 Xythosの

The "Xythos Drive" WebDAV client for WebDAV supports this specification starting with version 4.4.

WebDAVのための「Xythosのドライブ」のWebDAVクライアントは、バージョン4.4で始まるこの仕様をサポートしています。

Author's Address

著者のアドレス

Julian F. Reschke greenbytes GmbH Hafenweg 16 Muenster, NW 48155 Germany

ジュリアン・F. Reschke greenbytes社Hafenweg 16ミュンスター、NW 48155ドイツ

Phone: +49 251 2807760 Fax: +49 251 2807761 EMail: julian.reschke@greenbytes.de URI: http://greenbytes.de/tech/webdav/

電話:+49 251 2807760ファックス:+49 251 2807761 Eメール:julian.reschke@greenbytes.de URI:http://greenbytes.de/tech/webdav/

Full Copyright Statement

完全な著作権声明

Copyright (C) The Internet Society (2006).

著作権(C)インターネット協会(2006)。

This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.

この文書では、BCP 78に含まれる権利と許可と制限の適用を受けており、その中の記載を除いて、作者は彼らのすべての権利を保有します。

This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

この文書とここに含まれている情報は、基礎とCONTRIBUTOR「そのまま」、ORGANIZATION HE / SHEが表すまたはインターネットソサエティおよびインターネット・エンジニアリング・タスク・フォース放棄すべての保証、明示または、(もしあれば)後援ISに設けられています。黙示、情報の利用は、特定の目的に対する権利または商品性または適合性の黙示の保証を侵害しない任意の保証含むがこれらに限定されません。

Intellectual Property

知的財産

The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.

IETFは、本書またはそのような権限下で、ライセンスがたりないかもしれない程度に記載された技術の実装や使用に関係すると主張される可能性があります任意の知的財産権やその他の権利の有効性または範囲に関していかなる位置を取りません利用可能です。またそれは、それがどのような権利を確認する独自の取り組みを行ったことを示すものでもありません。 RFC文書の権利に関する手続きの情報は、BCP 78およびBCP 79に記載されています。

Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.

IPRの開示のコピーが利用できるようにIETF事務局とライセンスの保証に行われた、または本仕様の実装者または利用者がそのような所有権の使用のための一般的なライセンスまたは許可を取得するために作られた試みの結果を得ることができますhttp://www.ietf.org/iprのIETFのオンラインIPRリポジトリから。

The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.

IETFは、その注意にこの標準を実装するために必要とされる技術をカバーすることができる任意の著作権、特許または特許出願、またはその他の所有権を持ってすべての利害関係者を招待します。 ietf-ipr@ietf.orgのIETFに情報を記述してください。

Acknowledgement

謝辞

Funding for the RFC Editor function is provided by the IETF Administrative Support Activity (IASA).

RFCエディタ機能のための資金は、IETF管理サポート活動(IASA)によって提供されます。