451634 DefaultServlet: useFileMappedBuffer javadoc is misleading
This commit is contained in:
parent
a39dcd6fe5
commit
a129b0bcd1
|
@ -69,6 +69,7 @@ import org.eclipse.jetty.util.resource.ResourceFactory;
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
/** The default servlet.
|
/** The default servlet.
|
||||||
|
*
|
||||||
* This servlet, normally mapped to /, provides the handling for static
|
* This servlet, normally mapped to /, provides the handling for static
|
||||||
* content, OPTION and TRACE methods for the context.
|
* content, OPTION and TRACE methods for the context.
|
||||||
* The following initParameters are supported, these can be set either
|
* The following initParameters are supported, these can be set either
|
||||||
|
@ -123,7 +124,8 @@ import org.eclipse.jetty.util.resource.ResourceFactory;
|
||||||
* If set to true, it will use mapped file buffer to serve static content
|
* If set to true, it will use mapped file buffer to serve static content
|
||||||
* when using NIO connector. Setting this value to false means that
|
* when using NIO connector. Setting this value to false means that
|
||||||
* a direct buffer will be used instead of a mapped file buffer.
|
* a direct buffer will be used instead of a mapped file buffer.
|
||||||
* By default, this is set to true.
|
* This is set to false by default by this class, but may be overridden
|
||||||
|
* by eg webdefault.xml
|
||||||
*
|
*
|
||||||
* cacheControl If set, all static content will have this value set as the cache-control
|
* cacheControl If set, all static content will have this value set as the cache-control
|
||||||
* header.
|
* header.
|
||||||
|
|
|
@ -11,17 +11,17 @@
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<!-- The intent of this descriptor is to include jetty specific or common -->
|
<!-- The intent of this descriptor is to include jetty specific or common -->
|
||||||
<!-- configuration for all webapps. If a context has a webdefault.xml -->
|
<!-- configuration for all webapps. If a context has a webdefault.xml -->
|
||||||
<!-- descriptor, it is applied before the contexts own web.xml file -->
|
<!-- descriptor, it is applied before the context's own web.xml file -->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- A context may be assigned a default descriptor by: -->
|
<!-- A context may be assigned a default descriptor by calling -->
|
||||||
<!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
|
<!-- WebAppContext.setDefaultsDescriptor(String). -->
|
||||||
<!-- + Passed an arg to addWebApplications -->
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- This file is used both as the resource within the jetty.jar (which is -->
|
<!-- This file is present in the jetty-webapp.jar, and is used as the -->
|
||||||
<!-- used as the default if no explicit defaults descriptor is set) and it -->
|
<!-- defaults descriptor if no other is explicitly set on a context. -->
|
||||||
<!-- is copied to the etc directory of the Jetty distro and explicitly -->
|
|
||||||
<!-- by the jetty.xml file. -->
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
|
<!-- A copy of this file is also placed into the $JETTY_HOME/etc dir of -->
|
||||||
|
<!-- the distribution, and is referenced by some of the other xml files, -->
|
||||||
|
<!-- eg the jetty-deploy.xml file. -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
|
@ -119,18 +119,16 @@
|
||||||
* maxCachedFiles The maximum number of files to cache
|
* maxCachedFiles The maximum number of files to cache
|
||||||
*
|
*
|
||||||
* useFileMappedBuffer
|
* useFileMappedBuffer
|
||||||
* If set to true, it will use mapped file buffer to serve static content
|
* If set to true, it will use mapped file buffers to serve static content
|
||||||
* when using NIO connector. Setting this value to false means that
|
* when using an NIO connector. Setting this value to false means that
|
||||||
* a direct buffer will be used instead of a mapped file buffer.
|
* a direct buffer will be used instead of a mapped file buffer.
|
||||||
* By default, this is set to true.
|
* This file sets the value to true.
|
||||||
*
|
*
|
||||||
* cacheControl If set, all static content will have this value set as the cache-control
|
* cacheControl If set, all static content will have this value set as the cache-control
|
||||||
* header.
|
* header.
|
||||||
*
|
*
|
||||||
-->
|
-->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
|
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>default</servlet-name>
|
<servlet-name>default</servlet-name>
|
||||||
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
|
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
|
||||||
|
@ -323,6 +321,8 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
<!-- ==================================================================== -->
|
||||||
|
<!-- Default session configuration -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<session-config>
|
<session-config>
|
||||||
<session-timeout>30</session-timeout>
|
<session-timeout>30</session-timeout>
|
||||||
</session-config>
|
</session-config>
|
||||||
|
@ -330,7 +330,7 @@
|
||||||
<!-- ==================================================================== -->
|
<!-- ==================================================================== -->
|
||||||
<!-- Default MIME mappings -->
|
<!-- Default MIME mappings -->
|
||||||
<!-- The default MIME mappings are provided by the mime.properties -->
|
<!-- The default MIME mappings are provided by the mime.properties -->
|
||||||
<!-- resource in the org.eclipse.jetty.server.jar file. Additional or modified -->
|
<!-- resource in the jetty-http.jar file. Additional or modified -->
|
||||||
<!-- mappings may be specified here -->
|
<!-- mappings may be specified here -->
|
||||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<!-- UNCOMMENT TO ACTIVATE
|
<!-- UNCOMMENT TO ACTIVATE
|
||||||
|
@ -341,6 +341,8 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
<!-- ==================================================================== -->
|
||||||
|
<!-- Default welcome files -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<welcome-file-list>
|
<welcome-file-list>
|
||||||
<welcome-file>index.html</welcome-file>
|
<welcome-file>index.html</welcome-file>
|
||||||
<welcome-file>index.htm</welcome-file>
|
<welcome-file>index.htm</welcome-file>
|
||||||
|
@ -348,6 +350,8 @@
|
||||||
</welcome-file-list>
|
</welcome-file-list>
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
<!-- ==================================================================== -->
|
||||||
|
<!-- Default locale encodings -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<locale-encoding-mapping-list>
|
<locale-encoding-mapping-list>
|
||||||
<locale-encoding-mapping>
|
<locale-encoding-mapping>
|
||||||
<locale>ar</locale>
|
<locale>ar</locale>
|
||||||
|
@ -507,6 +511,9 @@
|
||||||
</locale-encoding-mapping>
|
</locale-encoding-mapping>
|
||||||
</locale-encoding-mapping-list>
|
</locale-encoding-mapping-list>
|
||||||
|
|
||||||
|
<!-- ==================================================================== -->
|
||||||
|
<!-- Disable TRACE method with security constraint -->
|
||||||
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||||
<security-constraint>
|
<security-constraint>
|
||||||
<web-resource-collection>
|
<web-resource-collection>
|
||||||
<web-resource-name>Disable TRACE</web-resource-name>
|
<web-resource-name>Disable TRACE</web-resource-name>
|
||||||
|
|
Loading…
Reference in New Issue