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