Top Description Constructors Methods
io.netty5.handler.codec.http2

public final Class InboundHttp2ToHttpAdapterBuilder

extends AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter, InboundHttp2ToHttpAdapterBuilder>
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty5.util.internal.UnstableApi

Builds an InboundHttp2ToHttpAdapter.

Constructor Summary

AccessConstructor and Description
public
InboundHttp2ToHttpAdapterBuilder(Http2Connection
the object which will provide connection notification events for the current connection
connection
)

Creates a new InboundHttp2ToHttpAdapter builder for the specified Http2Connection.

Method Summary

Modifier and TypeMethod and Description
public InboundHttp2ToHttpAdapter
build()

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Builds/creates a new InboundHttp2ToHttpAdapter instance using this builder's current settings.
protected InboundHttp2ToHttpAdapter
build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings)

Implements abstract io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Creates a new InboundHttp2ToHttpAdapter with the specified properties.
public InboundHttp2ToHttpAdapterBuilder
maxContentLength(int
the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised
maxContentLength
)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.maxContentLength.

Specifies the maximum length of the message content.
public InboundHttp2ToHttpAdapterBuilder
propagateSettings(boolean
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.
propagate
)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.propagateSettings.

Specifies whether a read settings frame should be propagated along the channel pipeline.
public InboundHttp2ToHttpAdapterBuilder
validateHttpHeaders(boolean
  • true to validate HTTP headers in the http-codec
  • false not to validate HTTP headers in the http-codec
validate
)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.validateHttpHeaders.

Specifies whether validation of HTTP headers should be performed.
Inherited from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder:
connectionisPropagateSettingsisValidateHttpHeadersmaxContentLengthself

Constructor Detail

InboundHttp2ToHttpAdapterBuilderback to summary
public InboundHttp2ToHttpAdapterBuilder(Http2Connection connection)

Creates a new InboundHttp2ToHttpAdapter builder for the specified Http2Connection.

Parameters
connection:Http2Connection

the object which will provide connection notification events for the current connection

Method Detail

buildback to summary
public InboundHttp2ToHttpAdapter build()

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Doc from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Builds/creates a new InboundHttp2ToHttpAdapter instance using this builder's current settings.

Annotations
@Override
buildback to summary
protected InboundHttp2ToHttpAdapter build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings) throws Exception

Implements abstract io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Doc from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.build.

Creates a new InboundHttp2ToHttpAdapter with the specified properties.

Annotations
@Override
maxContentLengthback to summary
public InboundHttp2ToHttpAdapterBuilder maxContentLength(int maxContentLength)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.maxContentLength.

Doc from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.maxContentLength.

Specifies the maximum length of the message content.

Parameters
maxContentLength:int

the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised

Returns:InboundHttp2ToHttpAdapterBuilder

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter

Annotations
@Override
propagateSettingsback to summary
public InboundHttp2ToHttpAdapterBuilder propagateSettings(boolean propagate)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.propagateSettings.

Doc from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.propagateSettings.

Specifies whether a read settings frame should be propagated along the channel pipeline.

Parameters
propagate:boolean

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:InboundHttp2ToHttpAdapterBuilder

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter

Annotations
@Override
validateHttpHeadersback to summary
public InboundHttp2ToHttpAdapterBuilder validateHttpHeaders(boolean validate)

Overrides io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.validateHttpHeaders.

Doc from io.netty5.handler.codec.http2.AbstractInboundHttp2ToHttpAdapterBuilder.validateHttpHeaders.

Specifies whether validation of HTTP headers should be performed.

Parameters
validate:boolean

  • true to validate HTTP headers in the http-codec
  • false not to validate HTTP headers in the http-codec
Returns:InboundHttp2ToHttpAdapterBuilder

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter

Annotations
@Override