Previous Topic

Book Contents

Book Index

Next Topic

Servlet: 'vmsf'

The VMStaticFiles servlet is a servlet for providing static files from the server to the web client.

Servlet name: 'vmsf'

Parameter Name

Description

Value/Default Value/Possible Value

vmsf.gzip

RegExp pattern used to match HTTP mime-types that can be compressed by GZip encoding.

-If set to "true" (the default value), the pattern "text/.*" will be used.

-If set to "false", the compression will be disabled.

Should be set to "false" or "text/html" if IE6 is used on Windows older then Windows XP SP2.

The pattern must match entire value of mime-type - examples of valid patterns are:

"text/html", "text/.*", "text/.*|application/rtf|application/rss\+xml"

true

cache_js

JavaScripts caching : To disable, set to "false"; to enable, set to "true".

true

js_client_cache_max_age

JavaScripts caching: The max-age time for checking a new version in seconds (to disable, set 0).

604800

cache_css

CSS caching: To disable, set to "false"; to enable set to "true".

true

css_client_cache_max_age

CSS caching: The max-age time for checking a new version in seconds (to disable, set 0).

604800

vmsf.dumpconfig

When set to 'true', the servlet configuration is printed to the standard output.

true

vmsf.localfiles.servletURL

Set this parameter to URL pointing to the VMStaticFiles servlet (be aware of the servlet mapping).

Must be configured to ApiWebLink.getLocalFileURL(...) function work correctly.

It's used to generate link to 'server local file system' to provide content of some locally stored files

http://localhost:8087/vmwebjetty/vmsf

vmsf.localfiles.root

Defines a 'root folder' for files which can be provided by the static files servlet. Only files from this folder are available throught the static files servlet. ApiWebLink.getLocalFilePath(...) and ApiWebLink.getLocalFileURL(...) reffers to this 'root folder'.

C:/temp

See Also

Web.xml Deployment Descriptor

Servlet: 'vmweb'

Servlet: 'peconsole'

Servlet 'status'

Filter: 'ResponseHeaderFilter'

Filter: 'CORS'

Filter: 'SecurityFilter'

Filter: 'RequestLoggingFilter'