@UnstableApi public final class InboundHttp2ToHttpAdapterBuilder extends AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
InboundHttp2ToHttpAdapter
.构造器和说明 |
---|
InboundHttp2ToHttpAdapterBuilder(Http2Connection connection)
Creates a new
InboundHttp2ToHttpAdapter builder for the specified Http2Connection . |
限定符和类型 | 方法和说明 |
---|---|
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)
maxContentLength
在类中 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)
validateHttpHeaders
在类中 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)
propagateSettings
在类中 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()
InboundHttp2ToHttpAdapter
instance using this builder's current settings.protected InboundHttp2ToHttpAdapter build(Http2Connection connection, int maxContentLength, boolean validateHttpHeaders, boolean propagateSettings) throws java.lang.Exception
InboundHttp2ToHttpAdapter
with the specified properties.build
在类中 AbstractInboundHttp2ToHttpAdapterBuilder<InboundHttp2ToHttpAdapter,InboundHttp2ToHttpAdapterBuilder>
java.lang.Exception