Interface PathsConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
PathsConfig.BuilderBase.PathsConfigImpl
Configuration of a single path security setup.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forPathsConfig.static classPathsConfig.BuilderBase<BUILDER extends PathsConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PathsConfig>Fluent API builder base forPathsConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathsConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static PathsConfig.Builderbuilder(PathsConfig instance) Create a new fluent API builder from an existing instance.static PathsConfigCreate a new instance from configuration.handler()Security handler configuration for this protected path.methods()HTTP methods to match exactly when applying this configured path; non-uppercase known methods also match their uppercase names and log a warning that this compatibility will be removed in a future major version.path()Path to secure.sockets()Named listeners that should be secured, defaults to the default listener.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
methods
HTTP methods to match exactly when applying this configured path; non-uppercase known methods also match their uppercase names and log a warning that this compatibility will be removed in a future major version. Configuration retains each exact method name and also matches its uppercase form when that form is a knownHTTP method. For example, configuredgetmatches bothgetandGET, but notGet. Custom methods such asFollowremain case-sensitive. Non-uppercase known methods produce a warning: automatic uppercasing will be removed in a future major version. Use uppercase names for known methods in configuration. Programmatically supplied methods are matched exactly.- Returns:
- list of methods to secure
-
path
-
sockets
-
handler
SecurityHandler handler()Security handler configuration for this protected path.- Returns:
- security handler
-