Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / WWW / Doc / User / mimetype.html
diff --git a/JMCR-Stable/real-world application/jigsaw/WWW/Doc/User/mimetype.html b/JMCR-Stable/real-world application/jigsaw/WWW/Doc/User/mimetype.html
new file mode 100644 (file)
index 0000000..aef3510
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" \r
+   "http://www.w3.org/TR/REC-html40/loose.dtd"> \r
+<html>\r
+  <head>\r
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+    <link rel="stylesheet" type="text/css" href="../style/doc.css"> \r
+    <title>How to add a new Mime Type in Jigsaw</title>\r
+  </head>\r
+  <body bgcolor="#FFFFFF">\r
+    <div class="icons-w3c">\r
+      <a href="../../../">\r
+       <img src="/Icons/w3c_home" \r
+         border="0" \r
+         alt="W3C logo"\r
+         height="48" \r
+         width="72">\r
+      </a>\r
+    </div>\r
+    <div class="icons-jigsaw">\r
+      <a href="../../">\r
+       <img src="/Icons/jigsaw" \r
+         border="0"\r
+         alt="Jigsaw"\r
+         height="49"\r
+         width="212">\r
+      </a>\r
+    </div>\r
+\r
+    <div class="title">\r
+      <h1 class="title">\r
+       Jigsaw<br>\r
+       <span class="subtitle">How to add a new Mime Type</span>\r
+      </h1>\r
+      <hr NOSHADE WIDTH="70%" align="left">\r
+      <a href="../../Overview.html">Jigsaw Home</a> / \r
+      <a href="../Overview.html">Documentation Overview</a> /\r
+      <a href="Tutorials.html">Tutorials</a>\r
+    </div>\r
+    <div class="body">\r
+    <p>The association between mime types and file extensions is\r
+      managed by the <a href="indexers.html">Indexers</a> in\r
+      <b>Jigsaw</b>. For example, the html extension is associated to \r
+      a <a href="../Reference/org.w3c.tools.resources.FileResource.html">FileResource</a> with an <a href="../Reference/org.w3c.jigsaw.frames.HTTPFrame.html">HTTPFrame</a>, the content-type of this HTTPFrame is text/html.\r
+    <p>So, if you want to add a new extension/mime-type association,\r
+      you just have to add the new extension in the default indexer\r
+      under the "extensions" node.\r
+    <p><b>Example</b>: You want to add the <b>xml</b> extension. Add a\r
+      FileResource associated to an HTTPFrame to the "extensions"\r
+      node of the "default" indexer. Set the HTTPFrame content-type to \r
+      <b>text/xml</b>. Now files with xml extension (test.xml for\r
+      example) will be indexed like that.\r
+    <p>For more details on indexers management, read the <a\r
+       href="JigAdmin/indexers.html">JigAdmin 2.0 documentation</a> \r
+      or the <a href="indexers.html">JigAdmin 1.0 documentation</a>\r
+      about indexers.\r
+    </div> <!-- body -->\r
+    <div class="footer">\r
+    <p>\r
+    <hr NOSHADE WIDTH="100%">\r
+    <a href="mailto:jigsaw@w3.org">Jigsaw Team</a><br>\r
+    <span class="mini">\r
+      $Id: mimetype.html,v 1.1 2010/06/15 12:22:58 smhuang Exp $\r
+    </span>\r
+    <p class="policyfooter">\r
+      <font size=-1>\r
+       <a href="/Consortium/Legal/ipr-notice.html#Copyright">Copyright</a>\r
+       &copy; 1999 <a href="http://www.w3.org">W3C</a> \r
+       (<a href="http://www.lcs.mit.edu">MIT</a>, \r
+       <a href="http://www.inria.fr/">INRIA</a>, \r
+       <a href="http://www.keio.ac.jp/">Keio</a> ), \r
+       All Rights Reserved. W3C \r
+       <a href="/Consortium/Legal/ipr-notice.html#Legal Disclaimer">\r
+         liability,\r
+       </a>\r
+       <a href="/Consortium/Legal/ipr-notice.html#W3C Trademarks">\r
+         trademark\r
+       </a>, \r
+       <a href="/Consortium/Legal/copyright-documents.html">\r
+         document use \r
+       </a>\r
+       and\r
+       <a href="/Consortium/Legal/copyright-software.html">\r
+         software licensing\r
+       </a> rules apply. Your interactions with this site are in\r
+       accordance with our \r
+       <a href="/Consortium/Legal/privacy-statement.html#Public">\r
+         public\r
+       </a> and \r
+       <a href="/Consortium/Legal/privacy-statement.html#Members">\r
+         Member\r
+       </a>\r
+       privacy statements.</font>\r
+    </div>\r
+  </body>\r
+</html>\r