source: nutchez-0.1/tomcat/webapps/docs/config/printer/resources.html @ 95

Last change on this file since 95 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

File size: 5.7 KB
Line 
1<html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Apache Tomcat Configuration Reference - The Resources Component</title><meta value="Remy Maucherat" name="author"><meta value="remm@apache.org" name="email"></head><body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff"><table cellspacing="0" width="100%" border="0"><!--PAGE HEADER--><tr><td><!--PROJECT LOGO--><a href="http://tomcat.apache.org/"><img border="0" alt="
2    The Apache Tomcat Servlet/JSP Container
3  " align="right" src="../../images/tomcat.gif"></a></td><td><font face="arial,helvetica,sanserif"><h1>Apache Tomcat 6.0</h1></font></td><td><!--APACHE LOGO--><a href="http://www.apache.org/"><img border="0" alt="Apache Logo" align="right" src="../../images/asf-logo.gif"></a></td></tr></table><table cellspacing="4" width="100%" border="0"><!--HEADER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade></td></tr><tr><!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%"><table cellspacing="4" width="100%" border="0"><tr><td valign="top" align="left"><h1>Apache Tomcat Configuration Reference</h1><h2>The Resources Component</h2></td><td nowrap="true" valign="top" align="right"><img border="0" hspace="0" vspace="0" height="1" width="1" src="../../images/void.gif"></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Introduction"><strong>Introduction</strong></a></font></td></tr><tr><td><blockquote>
4
5  <p>The <strong>Resources</strong> element represents the <em>web
6  application static resources</em>, from which classes will be loaded,
7  HTML, JSP and the other static files will be served. This allows the webapp
8  to reside on various mediums other than the filesystem, like compressed
9  in a WAR file, in a JDBC database, or in a more advanced versioning
10  repository.</p>
11
12  <p>A unified caching engine is provided for all accesses to the webapp
13  resources made by the servlet container and web applications which use the
14  container provided mechanisms to access such resources, such as class laoder
15  access, access through the <code>ServletContext</code> interface, or native
16  access through the <code>DirectoryContext</code> interface.</p>
17
18  <p><strong>Note: Running a webapp with non-filesystem based
19  Resources implementations is only possible when the webapp does not
20  rely on direct filesystem access to its own resources, and uses the methods
21  in the ServletContext interface to access them.</strong></p>
22
23  <p>A Resources element MAY be nested inside a
24  <a href="context.html">Context</a> component.  If it is not included,
25  a default filesystem based Resources will be created automatically,
26  which is sufficient for most requirements.</p>
27
28</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Attributes"><strong>Attributes</strong></a></font></td></tr><tr><td><blockquote>
29
30  <table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Common Attributes"><strong>Common Attributes</strong></a></font></td></tr><tr><td><blockquote>
31
32    <p>All implementations of <strong>Resources</strong>
33    support the following attributes:</p>
34
35    <table cellpadding="5" border="1"><tr><th bgcolor="#023264" width="15%"><font color="#ffffff">Attribute</font></th><th bgcolor="#023264" width="85%"><font color="#ffffff">Description</font></th></tr><tr><td valign="center" align="left"><code>className</code></td><td valign="center" align="left">
36        <p>Java class name of the implementation to use.  This class must
37        implement the <code>javax.naming.directory.DirContext</code> interface.
38        It is recommended for optimal functionality and performance,
39        but not mandatory, that the class extend
40        <code>org.apache.naming.resources.BaseDirContext</code>, as well as
41        use the special object types provided in the
42        <code>org.apache.naming.resources</code> for returned objects.
43        If not specified, the standard value (defined below) will be used.</p>
44      </td></tr></table>
45
46  </blockquote></td></tr></table>
47
48
49  <table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Standard Implementation"><strong>Standard Implementation</strong></a></font></td></tr><tr><td><blockquote>
50
51    <p>The standard implementation of <strong>Resources</strong> is
52    <strong>org.apache.naming.resources.FileDirContext</strong>, and
53    is configured by its parent Context element.</p>
54
55  </blockquote></td></tr></table>
56
57
58</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Nested Components"><strong>Nested Components</strong></a></font></td></tr><tr><td><blockquote>
59
60  <p>No components may be nested inside a <strong>Resources</strong> element.</p>
61
62</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Special Features"><strong>Special Features</strong></a></font></td></tr><tr><td><blockquote>
63
64  <p>No special features are associated with a <strong>Resources</strong>
65  element.</p>
66
67</blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font size="-1" color="#525D76"><em>
68        Copyright &copy; 1999-2008, Apache Software Foundation
69        </em></font></div></td></tr></table></body></html>
Note: See TracBrowser for help on using the repository browser.