Contact the core Jetty developers at
www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
What SystemProperties does Jetty use?
We're trying to move away as much as possible from the use of System Properties to configure Jetty. In general, Jetty provides setter methods to configure behaviour and only uses System Properties to provide default values. Here are the System Properties that are still in use:
| Property Name | Default Value | Description |
|---|---|---|
| jetty.home | Determined at runtime | Path of the Jetty installation. The start.jar startup method uses an algorithm to search for this location unless this property has been set on the command line |
| jetty.logs | None | Path to directory where request log files should be stored. |
| jetty.server | None | The fully qualified name of the class whose main() method to execute after the start.jar mechanism has finished configuring classpaths etc. This property is not usually used, as the preferred way of setting this classname is in the /org/mortbay/start/start.config file. The default start.config file shipped in start.jar sets the classname to be org.mortbay.xml.XmlConfiguration |
| ssl.KeyManagerFactory.algorithm | SunX509 | Used by the org.mortbay.jetty.security.SslSocketConnector to obtain a javax.net.ssl.KeyManager |
| ssl.TrustManagerFactory.algorithm | SunX509 | Used by the org.mortbay.jetty.security.SslSocketConnector to obtain a javax.net.ssl.TrustManager |
| org.mortbay.util.FileResource.checkAliases | true | Sets alias checking for the whole container. If true Jetty checks for possible aliases and symbolic links. If false no checking is done. It is a security risk to disable this. To permit Jetty to serve aliased files, set the <init-param>aliases to "true" for the org.mortbay.jetty.servlet.DefaultServlet in webdefault.xml. |
| org.mortbay.http.PathMap.separators | :, | Characters that can be used to separate multiple paths that map to some object |
| org.mortbay.jetty.webapp.parentLoaderPriority | false | Sets the classloading model for all webapps. Use WebAppContext.setParentLoaderPriority(boolean) for individual webapps. See also Classloading |
| org.mortbay.jetty.servlet.SessionCookie | SESSIONID | Name of cookie used for sessions |
| org.mortbay.jetty.servlet.SessionURL | jsessionid | Name of parameter when using URL rewriting for sessions |
| org.mortbay.jetty.servlet.MaxAge | -1 | The default max age of a Session cookie if no override is specified in the ServletContext initParameter |
| org.mortbay.util.TypeUtil.IntegerCacheSize | 600 | Size of cache for converting int and String to Integer |
| org.mortbay.util.URI.charset | UTF-8 | Character encoding of URLs |
| ROLLOVERFILE_BACKUP_FORMAT | HHmmssSSS | Format for the date string that is appended to files during rollover |
| ROLLOVERFILE_DATE_FORMAT | yyyy_MM_dd | Format for the time string appended to rollover files |
| ROLLOVERFILE_RETAIN_DAYS | 31 | Number of days for which rollover log files are retained before being deleted. |
| STOP.KEY | None | If specified with the start.jar command, a random key is printed on stdout and must be used with the stop.jar command. Security measure to guard against unauthorized stop/starts. See also Running and Stopping Jetty |
| STOP.PORT | 8079 | The local port used to signal to stop the server used with stop.jar. A value of 0 disables the mechanism. See also Running and Stopping Jetty |
| START | jar:file:/start.jar!/org/mortbay/start/start.config | Path to customized startup file. See A look at the start.jar mechanism |
Comments (1)
Feb 01, 2007
zhuguangxiang says:
How to set these properties in my codes? thanks in advance!How to set these properties in my codes?
thanks in advance!