Class AbstractInboundHttp2ToHttpAdapterBuilder<T extends InboundHttp2ToHttpAdapter, B extends AbstractInboundHttp2ToHttpAdapterBuilder<T,B>>
java.lang.Object
io.netty.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder<T,B>
-
Constructor Summary
Constructors
Modifier
Constructor
Description
protected
-
Method Summary
Modifier and Type
Method
Description
build(Http2Connection connection,
int maxContentLength,
boolean validateHttpHeaders,
boolean propagateSettings)
protected boolean
Returns true if a read settings frame should be propagated along the channel pipeline.
protected boolean
Return true if HTTP header validation should be performed.
protected int
Returns the maximum length of the message content.
Specifies the maximum length of the message content.
Specifies whether a read settings frame should be propagated along the channel pipeline.
Specifies whether validation of HTTP headers should be performed.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractInboundHttp2ToHttpAdapterBuilder
protected AbstractInboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
- Parameters:
connection - the object which will provide connection notification events
for the current connection
-
Method Details
-
-
-
maxContentLength
protected int maxContentLength()
Returns the maximum length of the message content.
-
-
isValidateHttpHeaders
protected boolean isValidateHttpHeaders()
Return true if HTTP header validation should be performed.
-
validateHttpHeaders
protected B validateHttpHeaders(boolean validate)
Specifies whether validation of HTTP headers should be performed.
- Parameters:
validate -
true to validate HTTP headers in the http-codec
false not to validate HTTP headers in the http-codec
- Returns:
AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter
-
isPropagateSettings
protected boolean isPropagateSettings()
Returns true if a read settings frame should be propagated along the channel pipeline.
-
propagateSettings
protected B propagateSettings(boolean propagate)
Specifies whether a read settings frame should be propagated along the channel pipeline.
- Parameters:
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.
- Returns:
AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter
-
-