Module io.helidon.nima.webserver
Package io.helidon.nima.webserver.http1
Class AbstractHttp1Config.Builder<B extends AbstractHttp1Config.Builder<B,T>,T extends Http1Config>
java.lang.Object
io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
io.helidon.nima.webserver.http1.AbstractHttp1Config.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
ConfigProvider,GeneratedConfigBeanBuilder,GeneratedConfigBeanCommon,GeneratedConfigBeanMappers,io.helidon.common.Builder<B,,T> Http1Config,Supplier<T>
- Direct Known Subclasses:
DefaultHttp1Config.Builder
- Enclosing class:
AbstractHttp1Config
public abstract static class AbstractHttp1Config.Builder<B extends AbstractHttp1Config.Builder<B,T>,T extends Http1Config>
extends GeneratedConfigBeanBuilderBase
implements Http1Config, io.helidon.common.Builder<B,T>
Fluent API builder for
T.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAccept the config, resolves it, optionally validates.Class<?>Accept and update from the provided value object.voidacceptConfig(io.helidon.common.config.Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator) Setter for 'receiveListeners'.Setter for 'receiveListeners'.Setter for 'sendListeners'.Setter for 'sendListeners'.A single receive listener, this value is computed.Setter for 'compositeReceiveListener'.A single send listener, this value is computed.Setter for 'compositeSendListener'.booleanWhen true WebServer answers to expect continue with 100 continue immediately, not waiting for user to actually request the data.continueImmediately(boolean val) Setter for 'continueImmediately'.intMaximal size of received headers in bytes.maxHeadersSize(int val) Setter for 'maxHeadersSize'.intMaximal size of received HTTP prologue (GET /path HTTP/1.1).maxPrologueLength(int val) Setter for 'maxPrologueLength'.Connection receive event listeners for HTTP/1.1.Setter for 'receiveListeners'.booleanLogging of received packets.receiveLog(boolean val) Setter for 'receiveLog'.Requested URI discovery settings.Setter for 'requestedUriDiscovery'.Connection send event listeners for HTTP/1.1.Setter for 'sendListeners'.booleansendLog()Logging of sent packets.sendLog(boolean val) Setter for 'sendLog'.booleanWhether to validate headers.validateHeaders(boolean val) Setter for 'validateHeaders'.booleanIf set to false, any path is accepted (even containing illegal characters).validatePath(boolean val) Setter for 'validatePath'.<T> voidvisitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) Methods inherited from class io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
__config, __config, acceptConfig, createResolutionContext, finishedResolutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
build, get, identity, updateMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanMappers
__mapper
-
Field Details
-
sendListeners
Field value forjava.util.List<io.helidon.nima.webserver.http1.Http1ConnectionListener> sendListeners(). -
receiveListeners
Field value forjava.util.List<io.helidon.nima.webserver.http1.Http1ConnectionListener> receiveListeners().
-
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
maxPrologueLength
public int maxPrologueLength()Description copied from interface:Http1ConfigMaximal size of received HTTP prologue (GET /path HTTP/1.1).- Specified by:
maxPrologueLengthin interfaceHttp1Config- Returns:
- maximal size in bytes
-
maxHeadersSize
public int maxHeadersSize()Description copied from interface:Http1ConfigMaximal size of received headers in bytes.- Specified by:
maxHeadersSizein interfaceHttp1Config- Returns:
- maximal header size
-
validateHeaders
public boolean validateHeaders()Description copied from interface:Http1ConfigWhether to validate headers. If set to false, any value is accepted, otherwise validates headers + known headers are validated by format (content length is always validated as it is part of protocol processing (other headers may be validated if features use them)).- Specified by:
validateHeadersin interfaceHttp1Config- Returns:
- whether to validate headers
-
validatePath
public boolean validatePath()Description copied from interface:Http1ConfigIf set to false, any path is accepted (even containing illegal characters).- Specified by:
validatePathin interfaceHttp1Config- Returns:
- whether to validate path
-
receiveLog
public boolean receiveLog()Description copied from interface:Http1ConfigLogging of received packets. Uses trace and debug levels on logger ofHttp1LoggingConnectionListenerwith suffix of.recv`.- Specified by:
receiveLogin interfaceHttp1Config- Returns:
trueif logging should be enabled for received packets,falseif no logging should be done
-
sendLog
public boolean sendLog()Description copied from interface:Http1ConfigLogging of sent packets. Uses trace and debug levels on logger ofHttp1LoggingConnectionListenerwith suffix of.send`.- Specified by:
sendLogin interfaceHttp1Config- Returns:
trueif logging should be enabled for sent packets,falseif no logging should be done
-
continueImmediately
public boolean continueImmediately()Description copied from interface:Http1ConfigWhen true WebServer answers to expect continue with 100 continue immediately, not waiting for user to actually request the data.- Specified by:
continueImmediatelyin interfaceHttp1Config- Returns:
- if
trueanswer with 100 continue immediately after expect continue
-
requestedUriDiscovery
Description copied from interface:Http1ConfigRequested URI discovery settings.- Specified by:
requestedUriDiscoveryin interfaceHttp1Config- Returns:
- settings for computing the requested URI
-
sendListeners
Description copied from interface:Http1ConfigConnection send event listeners for HTTP/1.1.- Specified by:
sendListenersin interfaceHttp1Config- Returns:
- send event listeners
-
receiveListeners
Description copied from interface:Http1ConfigConnection receive event listeners for HTTP/1.1.- Specified by:
receiveListenersin interfaceHttp1Config- Returns:
- receive event listeners
-
compositeSendListener
Description copied from interface:Http1ConfigA single send listener, this value is computed.- Specified by:
compositeSendListenerin interfaceHttp1Config- Returns:
- send listener
-
compositeReceiveListener
Description copied from interface:Http1ConfigA single receive listener, this value is computed.- Specified by:
compositeReceiveListenerin interfaceHttp1Config- Returns:
- receive listener
-
maxPrologueLength
Setter for 'maxPrologueLength'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
maxHeadersSize
Setter for 'maxHeadersSize'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
validateHeaders
Setter for 'validateHeaders'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
validatePath
Setter for 'validatePath'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
receiveLog
Setter for 'receiveLog'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
sendLog
Setter for 'sendLog'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
continueImmediately
Setter for 'continueImmediately'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
requestedUriDiscovery
Setter for 'requestedUriDiscovery'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
sendListeners
Setter for 'sendListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addSendListeners
Setter for 'sendListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addSendListener
Setter for 'sendListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
receiveListeners
Setter for 'receiveListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addReceiveListeners
Setter for 'receiveListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
addReceiveListener
Setter for 'receiveListeners'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
compositeSendListener
Setter for 'compositeSendListener'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
compositeReceiveListener
Setter for 'compositeReceiveListener'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
acceptConfig
public void acceptConfig(io.helidon.common.config.Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator) - Specified by:
acceptConfigin interfaceGeneratedConfigBeanBuilder
-
__acceptAndResolve
Accept the config, resolves it, optionally validates.- Parameters:
ctx- the config resolution context
-
__configBeanType
- Specified by:
__configBeanTypein interfaceGeneratedConfigBeanCommon
-
__mappers
- Specified by:
__mappersin interfaceGeneratedConfigBeanMappers
-
visitAttributes
public <T> void visitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) - Specified by:
visitAttributesin interfaceGeneratedConfigBeanCommon
-