This is the reference for the http subelement of
container in services.xml.
The http block is used to configure http servers and filters -
when this element is present, the default http server is disabled.
Setup TLS on HTTP server using credentials provided in PEM format.
private-key-file
Path to private key file in PEM format.
certificate-file
Path to certificate file in PEM format.
ca-certificates-file
Path to CA certificates file in PEM format.
client-authentication
Client authentication. Supported values: disabled, want or need.
protocols
Comma-separated list of TLS protocol versions to enable. Example: TLSv1.2,TLSv1.3.
cipher-suites
Comma-separated list of TLS cipher suites to enable. The specified ciphers must be supported by JDK installation. Example: TLS_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384.
ssl-provider
Setup TLS on the HTTP server through a programmatic Java interface.
The specified class must implement the
SslProvider interface.
Attribute
Required
Value
Default
Description
class
required
string
The class name
bundle
required
string
The bundle name
filtering
filtering is for configuring http filter chains. Sub-elements:
When set to true, all requests must match a filter.
For any requests not matching, an HTTP 403 response is returned.
binding
Specifies that requests/responses matching the given URI pattern
should be sent through the request-chain/response-chain.
filter
The definition of a single filter, for referencing when defining chains.
If a single filter is to be used in different chains,
it is cleaner to define it directly under http
and then refer to it with id,
than defining it inline separately for each chain.
The following filter types are supported:
RequestFilter
ResponseFilter
SecurityRequestFilter
SecurityResponseFilter
Security[Request/Response]Filters are automatically wrapped in Security[Request/Response]FilterChains.
This makes them behave like regular Request/Response filters with respect to chaining.
Attribute
Required
Value
Default
Description
id
required
string
The component ID
class
optional
string
id
The class of the component, defaults to id
bundle
optional
string
id or class
The bundle to load the component from, defaults to class or id (if no class is given)
before
optional
string
Space separated list of phases and/or filters which should succeed this phase
class
optional
string
id
Space separated list of phases and/or filters which should precede this phase
A name provided by a filter for phases and other filters to use as dependencies.
Contained in filter
and filter (in chain).
before
The name of a phase or filter which should succeed this phase or filter.
before tags may be used if it is necessary to define filters or phases
which always should succeed this filter or phase in a chain.
In other words, the phase or filter defined is placed before name in the tag.
Contained in filter,
filter (in chain)
and phase.
after
The name of a phase or filter which should precede this phase or filter.
after tags may be used if it is necessary to define filters or phases
which always should precede this filter or phase in a chain.
In other words, the phase or filter defined is placed
after the name in the tag.
Contained in filter,
filter (in chain)
and phase. Example:
Only used to configure filters that are configured with
com.yahoo.jdisc.http.filter.security.FilterConfig.
This is the case for all filters provided in JDisc bundles.
request-chain/response-chain
Defines a chain of request filters or response filters, respectively.
A chain is a set ordered by dependencies.
Dependencies are expressed through phases, which may depend upon other phases, or filters.
Attribute
Required
Value
Default
Description
inherits
string
A space separated list of chains this chain should include the contents of
excludes
string
A space separated list of filters (contained in an inherited chain) this chain should not include
Wrapper element for information about which chains, if any, a chain should inherit, and how.
Contained in request-chain and
response-chain.
Sub-elements:
The ID of a chain which this chain should inherit, i.e. include all filters and phases from.
Use multiple chain tags if it is necessary to combine the filters from multiple chains.
Contained in inherits.
exclude
A filter the chain under definition should exclude from the chain or chains it inherits from.
Use multiple exclude tags to exclude multiple filters.
Contained in inherits. Example:
Defines a phase, which is a checkpoint to help order filters.
Filters and other phases may depend on a phase to be able to make assumptions about the order of filters.
Contained in chain.
Attribute
Required
Value
Default
Description
id
required
string
The ID, or name, which other phases and filters may depend upon as a
successor or predecessor
before
optional
string
Space separated list of phases and/or filters which should succeed this phase
after
optional
string
Space separated list of phases and/or filters which should precede this phase