public final class InboundHttp2ToHttpAdapterBuilder extends AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
InboundHttp2ToHttpAdapter
.Constructor and Description |
---|
InboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
Creates a new
InboundHttp2ToHttpAdapter builder for the specified Http2Connection . |
Modifier and Type | Method and Description |
---|---|
InboundHttp2ToHttpAdapter |
build()
Builds/creates a new
InboundHttp2ToHttpAdapter instance using this builder's current settings. |
protected InboundHttp2ToHttpAdapter |
build(Http2Connection connection,
int maxContentLength,
boolean validateHttpHeaders,
boolean propagateSettings)
Creates a new
InboundHttp2ToHttpAdapter with the specified properties. |
InboundHttp2ToHttpAdapterBuilder |
maxContentLength(int maxContentLength)
Specifies the maximum length of the message content.
|
InboundHttp2ToHttpAdapterBuilder |
propagateSettings(boolean propagate)
Specifies whether a read settings frame should be propagated along the channel pipeline.
|
InboundHttp2ToHttpAdapterBuilder |
validateHttpHeaders(boolean validate)
Specifies whether validation of HTTP headers should be performed.
|
connection, isPropagateSettings, isValidateHttpHeaders, maxContentLength, self
public InboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
InboundHttp2ToHttpAdapter
builder for the specified Http2Connection
.connection
- the object which will provide connection notification events
for the current connectionpublic InboundHttp2ToHttpAdapterBuilder maxContentLength(int maxContentLength)
AbstractInboundHttp2ToHttpAdapterBuilder
maxContentLength
in class AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
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
public InboundHttp2ToHttpAdapterBuilder validateHttpHeaders(boolean validate)
AbstractInboundHttp2ToHttpAdapterBuilder
validateHttpHeaders
in class AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
validate
- true
to validate HTTP headers in the http-codecfalse
not to validate HTTP headers in the http-codecAbstractInboundHttp2ToHttpAdapterBuilder
the builder for the InboundHttp2ToHttpAdapter
public InboundHttp2ToHttpAdapterBuilder propagateSettings(boolean propagate)
AbstractInboundHttp2ToHttpAdapterBuilder
propagateSettings
in class AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
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
public InboundHttp2ToHttpAdapter build()
AbstractInboundHttp2ToHttpAdapterBuilder
InboundHttp2ToHttpAdapter
instance using this builder's current settings.protected InboundHttp2ToHttpAdapter build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings) throws Exception
AbstractInboundHttp2ToHttpAdapterBuilder
InboundHttp2ToHttpAdapter
with the specified properties.build
in class AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.