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

public abstract Class AbstractInboundHttp2ToHttpAdapterBuilder<T extends InboundHttp2ToHttpAdapter, B extends AbstractInboundHttp2ToHttpAdapterBuilder<T, B>>

extends Object
Class Inheritance
Known Direct Subclasses
io.netty5.handler.codec.http2.InboundHttp2ToHttpAdapterBuilder
Annotations
@UnstableApi
Imports
io.netty5.handler.codec.TooLongFrameException, io.netty5.util.internal.UnstableApi

A skeletal builder implementation of InboundHttp2ToHttpAdapter and its subtypes.

Field Summary

Modifier and TypeField and Description
private final Http2Connection
private int
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
protected
AbstractInboundHttp2ToHttpAdapterBuilder(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
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
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
the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised
maxContentLength
)

Specifies the maximum length of the message content.

protected B
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
)

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

protected final B
self()

protected B
validateHttpHeaders(boolean
  • true to validate HTTP headers in the http-codec
  • false not to validate HTTP headers in the http-codec
validate
)

Specifies whether validation of HTTP headers should be performed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
private final Http2Connection connection
maxContentLengthback to summary
private int maxContentLength
propagateSettingsback to summary
private boolean propagateSettings
validateHttpHeadersback to summary
private boolean validateHttpHeaders

Constructor Detail

AbstractInboundHttp2ToHttpAdapterBuilderback to summary
protected AbstractInboundHttp2ToHttpAdapterBuilder(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
protected T build()

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

buildback to summary
protected abstract T build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings) throws Exception

Creates a new InboundHttp2ToHttpAdapter with the specified properties.

connectionback to summary
protected Http2Connection connection()

Returns the Http2Connection.

isPropagateSettingsback to summary
protected boolean isPropagateSettings()

Returns true if a read settings frame should be propagated along the channel pipeline.

isValidateHttpHeadersback to summary
protected boolean isValidateHttpHeaders()

Return true if HTTP header validation should be performed.

maxContentLengthback to summary
protected int maxContentLength()

Returns the maximum length of the message content.

maxContentLengthback to summary
protected B maxContentLength(int 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:B

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter

propagateSettingsback to summary
protected B propagateSettings(boolean propagate)

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

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter

selfback to summary
protected final B self()
Annotations
@SuppressWarnings:unchecked
validateHttpHeadersback to summary
protected B validateHttpHeaders(boolean validate)

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

AbstractInboundHttp2ToHttpAdapterBuilder the builder for the InboundHttp2ToHttpAdapter