Sie sind auf Seite 1von 11

Servlet container and connectors

Attribute

Description

Provides a default value for


the jvmRoute attribute. It does

jvmRoute

not override the automaticaly


generated value used when
using ha read with using
configuration like standaloneha.xml

It supports :reload.

org.apache.tomcat.util.buf.StringCache.byte
.enabled

org.apache.tomcat.util.buf.StringCache.char
.enabled

If true, the String cache is


enabled for ByteChunk. If not
specified, the default value
of false will be used.

If true, the String cache is


enabled for CharChunk. If not
specified, the default value
of false will be used.

The number of
times toString() must be
org.apache.tomcat.util.buf.StringCache.trai
nThreshold

called before the cache is


activated. If not specified, the
default value of 20000 will be
used.

org.apache.tomcat.util.buf.StringCache.cach
eSize

org.apache.tomcat.util.buf.StringCache.maxS
tringSize

org.apache.tomcat.util.http.FastHttpDateFor
mat.CACHE_SIZE

The size of the String cache.


If not specified, the default
value of 200will be used.

The maximum length of


String that will be cached. If
not specified, the default
value of 128 will be used.

The size of the cache to use


parsed and formatted date
value. If not specified, the
default value of 1000 will be
used.

If true, the connector startup


org.apache.catalina.core.StandardService.DE
LAY_CONNECTOR_STARTUP

will not be done


automatically. Useful in
embedded mode.

If true, the Servet container


org.apache.catalina.connector.Request.SESSI
ON_ID_CHECK

org.apache.coyote.Constants.USE_CUSTOM_STAT
US_MSG_IN_HEADER

will verify that a session


exists in a context with the
specified session id before
creating a session with that
id.

If this is true custom HTTP


status messages will be used
within HTTP headers. Users
must ensure that any such

message is ISO-8859-1
encoded, particularly if user
provided input is included in
the message, to prevent a
possible XSS vulnerability. If
not specified the default value
of false will be used.

org.apache.tomcat.util.http.Parameters.MAX_
COUNT

org.apache.tomcat.util.http.MimeHeaders.MAX
_COUNT

org.apache.tomcat.util.net.MAX_THREADS

The maximum amount of


parameters that can be
parsed in a post body. If
exceeded, parsing will fail
using an
IllegalStateException. The
default value
is 512 parameters.

The maximum amount of


headers that can be sent in
the HTTP request. If
exceeded, parsing will fail
using an
IllegalStateException. The
default value is 128 headers.

The maximum number of


threads a connector is going
to use to process requests.
The default value is 32 x
Runtime.getRuntime().available
Processors(). (512 x
Runtime.getRuntime().available

Processors()

for the JIO

connector)

org.apache.coyote.http11.Http11Protocol.MAX
_HEADER_SIZE

org.apache.coyote.http11.Http11Protocol.COM
PRESSION

The maximum size of the


HTTP headers, in bytes. If
exceeded, parsing will fail
using an
ArrayOutOfBoundsExceptions.
The default value
is 8192 bytes.

Allows using simple


compression with the HTTP
connector. The default value
is off, and compression can
be enabled using the
valueon to enable it
conditionally, or force to
always enable it.

org.apache.coyote.http11.Http11Protocol.COM
PRESSION_RESTRICTED_UA

org.apache.coyote.http11.Http11Protocol.COM
PRESSION_MIME_TYPES

User agents regexps that will


not receive compressed
content. The default value is
empty.

Content type prefixes of


compressible content. The
default value
istext/html,text/xml,text/plain
.

org.apache.coyote.http11.Http11Protocol.COM
PRESSION_MIN_SIZE

org.apache.coyote.http11.DEFAULT_CONNECTION
_TIMEOUT

org.apache.coyote.http11.DEFAULT_KEEP_ALIVE
_TIMEOUT

Minimum size of content that


will be compressed. The
default value is2048 bytes.

Default socket timeout. The


default value is 60000 ms.

Default socket timeout for


keep alive. The default value
is -1 ms, which means it will
use the default socket
timeout.

EL
Attribute

Description

org.apache.el.parser.COERCE_TO_ZER

If true, when coercing expressions to


numbers "" and null will be coerced to

zero as required by the specification. If


not specified, the default value
of true will be used.

JSP
Attribute

org.apache.jasper.compiler.Generato
r.VAR_EXPRESSIONFACTORY

Description

The name of the variable to use for


the expression language expression
factory. If not specified, the default

value of _el_expressionfactory will be


used.

org.apache.jasper.compiler.Generato
r.VAR_INSTANCEMANAGER

The name of the variable to use for


the instance manager factory. If not
specified, the default value
of _jsp_instancemanager will be used.

If false the requirements for escpaing


org.apache.jasper.compiler.Parser.S
TRICT_QUOTE_ESCAPING

org.apache.jasper.Constants.DEFAULT
_TAG_BUFFER_SIZE

org.apache.jasper.runtime.JspFactor

quotes in JSP attributes will be


relaxed so that a missing required
quote will not cause an error. If not
specified, the specification compliant
default of true will be used.

Any tag buffer that expands


beyondorg.apache.jasper.Constants.DEF
AULT_TAG_BUFFER_SIZE will be destroyed
and a new buffer created of the
default size. If not specified, the
default value of 512 will be used.

If true, a ThreadLocal PageContext pool

yImpl.USE_POOL

will be used. If not specified, the


default value of true will be used.

org.apache.jasper.runtime.JspFactor

The size of the


ThreadLocal PageContext. If not
specified, the default value of8 will be

yImpl.POOL_SIZE

used.

org.apache.jasper.Constants.JSP_SER
VLET_BASE

org.apache.jasper.Constants.SERVICE
_METHOD_NAME

org.apache.jasper.Constants.SERVLET
_CLASSPATH

The base class of the Servlets


generated from the JSPs. If not
specified, the default value
of org.apache.jasper.runtime.HttpJspBa
se will be used.

The name of the service method


called by the base class. If not
specified, the default value
of _jspService will be used.

The name of the ServletContext


attribute that provides the classpath
for the JSP. If not specified, the
default value
of org.apache.catalina.jsp_classpathwil
l be used.

The name of the request attribute


for <jsp-file> element of a servlet

org.apache.jasper.Constants.JSP_FIL
E

definition. If present on a request,


this overrides the value returned
byrequest.getServletPath() to select
the JSP page to be executed. If not
specified, the default value
of org.apache.catalina.jsp_file will be
used.

org.apache.jasper.Constants.PRECOMP
ILE

The name of the query parameter


that causes the JSP engine to just
pregenerate the servlet but not
invoke it. If not specified, the default

value
oforg.apache.catalina.jsp_precompile w
ill be used.

org.apache.jasper.Constants.JSP_PAC
KAGE_NAME

The default package name for


compiled jsp pages. If not specified,
the default value of org.apache.jsp will
be used.

org.apache.jasper.Constants.TAG_FIL
E_PACKAGE_NAME

org.apache.jasper.Constants.TEMP_VA
RIABLE_NAME_PREFIX

The default package name for tag


handlers generated from tag files. If
not specified, the default value
of org.apache.jsp.tag will be used.

Prefix to use for generated temporary


variable names. If not specified, the
default value of _jspx_temp will be
used.

org.apache.jasper.Constants.USE_INS
TANCE_MANAGER_FOR_TAGS

If true, the instance manager is used


to obtain tag handler instances. If not
specified, false will be used.

If true, annotations specified in tags


org.apache.jasper.Constants.INJECT_
TAGS

will be processed and injected. This


can have a performance impact when
using simple tags, or if tag pooling is
disabled. If not specified, true will be
used.

Security
Attribute

Description

If this is true or

org.apache.catalina.connector.RECYCLE_FACADES

if a security
manager is in
use a new
facade object
will be created
for each
request. If not
specified, the
default value
of false will be
used.

If this
is true the '\'
character will
be permitted as
org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLAS a path
H
delimiter. If not
specified, the
default value
of false will be
used.
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH

If this
is true '%2F'
and '%5C' will
be permitted as
path delimiters.

If not specified,
the default
value
of false will be
used.

Specification
Attribute

org.apache.catalina.STRICT_SERVLET_C
OMPLIANCE

Description

If this is true the following actions


will occur:

any wrapped request or


response object passed to an
application dispatcher will be
checked to ensure that it has
wrapped the original request or
response. (SRV.8.2 /
SRV.14.2.5.1)

a call to Response.getWriter() if
no character encoding has
been specified will result in
subsequent calls
toResponse.getCharacterEncoding
() returning ISO-8859-1 and
theContent-Type response
header will include
a charset=ISO-8859-1component.
(SRV.15.2.22.1)

every request that is


associated with a session will

cause the session's last


accessed time to be updated
regardless of whether or not
the request explicity accesses
the session. (SRV.7.6)

org.apache.catalina.core.StandardWra
pperValve.SERVLET_STATS

If true or
if org.apache.catalina.STRICT_SERVLET_
COMPLIANCE is true, the wrapper will
collect the JSR-77 statistics for
individual servlets. If not specified,
the default value of false will be
used.

If this is true or
if org.apache.catalina.STRICT_SERVLET_
COMPLIANCE is trueTomcat will track the
org.apache.catalina.session.Standard
Session.ACTIVITY_CHECK

number of active requests for each


session. When determining if a
session is valid, any session with at
least one active request will always
be considered valid. If not specified,
the default value of falsewill be used.

Das könnte Ihnen auch gefallen