Class AltSvcConfig.BuilderBase.AltSvcConfigImpl
java.lang.Object
io.helidon.webserver.http.AltSvcConfig.BuilderBase.AltSvcConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<AltSvc>, AltSvcConfig, Supplier<AltSvc>
- Enclosing class:
AltSvcConfig.BuilderBase<BUILDER extends AltSvcConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AltSvcConfig>
protected static class AltSvcConfig.BuilderBase.AltSvcConfigImpl
extends Object
implements AltSvcConfig, Supplier<AltSvc>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AltSvcConfig
AltSvcConfig.Builder, AltSvcConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forAltSvc.static classAltSvcConfig.BuilderBase<BUILDER extends AltSvcConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AltSvcConfig>Fluent API builder base forAltSvcConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAltSvcConfigImpl(AltSvcConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.booleanenabled()Whether the alternative service should be advertised.booleanget()inthashCode()maxAge()Advertised maximum age.booleanpersist()Whether to emit thepersist=1parameter.port()Advertised port.protocol()Advertised protocol name.toString()
-
Constructor Details
-
AltSvcConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<AltSvc>- Returns:
- new configured runtime instance
-
get
-
enabled
public boolean enabled()Description copied from interface:AltSvcConfigWhether the alternative service should be advertised.- Specified by:
enabledin interfaceAltSvcConfig- Returns:
- whether advertisement is enabled
-
protocol
Description copied from interface:AltSvcConfigAdvertised protocol name. Each Java character in the rangeU+0000throughU+00FFmaps one-to-one to an opaque protocol identifier byte. When advertisement is enabled, the identifier must contain between1and255bytes, inclusive. Whitespace-only identifiers are valid.- Specified by:
protocolin interfaceAltSvcConfig- Returns:
- advertised protocol
-
port
Description copied from interface:AltSvcConfigAdvertised port. The port must be between1and65535, inclusive, when advertisement is enabled. If not configured, the local port of a port-capable binding is used. A binding without a valid port, such as a Unix domain socket binding, does not emit the configured advertisement unless an explicit port is configured.- Specified by:
portin interfaceAltSvcConfig- Returns:
- advertised port
-
maxAge
Description copied from interface:AltSvcConfigAdvertised maximum age. The maximum age must be non-negative when advertisement is enabled.- Specified by:
maxAgein interfaceAltSvcConfig- Returns:
- maximum age
-
persist
public boolean persist()Description copied from interface:AltSvcConfigWhether to emit thepersist=1parameter.- Specified by:
persistin interfaceAltSvcConfig- Returns:
- whether to emit persist
-
toString
-
equals
-
hashCode
-