public abstract class AbstractInboundHttp2ToHttpAdapterBuilder<T extends InboundHttp2ToHttpAdapter,B extends AbstractInboundHttp2ToHttpAdapterBuilder<T,B>> extends Object
InboundHttp2ToHttpAdapter
and its subtypes.Modifier | Constructor and Description |
---|---|
protected |
AbstractInboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
Creates a new
InboundHttp2ToHttpAdapter builder for the specified Http2Connection . |
Modifier and Type | Method and Description |
---|---|
protected T |
build()
Builds/creates a new
InboundHttp2ToHttpAdapter instance using this builder's current settings. |
protected abstract T |
build(Http2Connection connection,
int maxContentLength,
boolean validateHttpHeaders,
boolean propagateSettings)
Creates a new
InboundHttp2ToHttpAdapter with the specified properties. |
protected Http2Connection |
connection()
Returns the
Http2Connection . |
protected boolean |
isPropagateSettings()
Returns
true if a read settings frame should be propagated along the channel pipeline. |
protected boolean |
isValidateHttpHeaders()
Return
true if HTTP header validation should be performed. |
protected int |
maxContentLength()
Returns the maximum length of the message content.
|
protected B |
maxContentLength(int maxContentLength)
Specifies the maximum length of the message content.
|
protected B |
propagateSettings(boolean propagate)
Specifies whether a read settings frame should be propagated along the channel pipeline.
|
protected B |
self() |
protected B |
validateHttpHeaders(boolean validate)
Specifies whether validation of HTTP headers should be performed.
|
protected AbstractInboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
InboundHttp2ToHttpAdapter
builder for the specified Http2Connection
.connection
- the object which will provide connection notification events
for the current connectionprotected final B self()
protected Http2Connection connection()
Http2Connection
.protected int maxContentLength()
protected B maxContentLength(int maxContentLength)
maxContentLength
- the maximum length of the message content. If the length of the message content
exceeds this value, a TooLongFrameException
will be raisedAbstractInboundHttp2ToHttpAdapterBuilder
the builder for the InboundHttp2ToHttpAdapter
protected boolean isValidateHttpHeaders()
true
if HTTP header validation should be performed.protected B validateHttpHeaders(boolean validate)
validate
- true
to validate HTTP headers in the http-codecfalse
not to validate HTTP headers in the http-codecAbstractInboundHttp2ToHttpAdapterBuilder
the builder for the InboundHttp2ToHttpAdapter
protected boolean isPropagateSettings()
true
if a read settings frame should be propagated along the channel pipeline.protected B propagateSettings(boolean propagate)
propagate
- if true
read settings will be passed along the pipeline. This can be useful
to clients that need hold off sending data until they have received the settings.AbstractInboundHttp2ToHttpAdapterBuilder
the builder for the InboundHttp2ToHttpAdapter
protected T build()
InboundHttp2ToHttpAdapter
instance using this builder's current settings.protected abstract T build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings) throws Exception
InboundHttp2ToHttpAdapter
with the specified properties.Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.