public static class InboundHttp2ToHttpAdapter.Builder extends Object
Constructor and Description |
---|
InboundHttp2ToHttpAdapter.Builder(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 builders current settings. |
InboundHttp2ToHttpAdapter.Builder |
maxContentLength(int maxContentLength)
Specifies the maximum length of the message content.
|
InboundHttp2ToHttpAdapter.Builder |
propagateSettings(boolean propagate)
Specifies whether a read settings frame should be propagated alone the channel pipeline.
|
InboundHttp2ToHttpAdapter.Builder |
validateHttpHeaders(boolean validate)
Specifies whether validation of HTTP headers should be performed.
|
public InboundHttp2ToHttpAdapter.Builder(Http2Connection connection)
InboundHttp2ToHttpAdapter
builder for the specified Http2Connection
.connection
- The object which will provide connection notification events for the current connectionpublic InboundHttp2ToHttpAdapter.Builder maxContentLength(int maxContentLength)
maxContentLength
- the maximum length of the message content. If the length of the message content
exceeds this value, a TooLongFrameException
will be raisedInboundHttp2ToHttpAdapter.Builder
the builder for the InboundHttp2ToHttpAdapter
public InboundHttp2ToHttpAdapter.Builder validateHttpHeaders(boolean validate)
validate
- true
to validate HTTP headers in the http-codecfalse
not to validate HTTP headers in the http-codecInboundHttp2ToHttpAdapter.Builder
the builder for the InboundHttp2ToHttpAdapter
public InboundHttp2ToHttpAdapter.Builder propagateSettings(boolean propagate)
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.InboundHttp2ToHttpAdapter.Builder
the builder for the InboundHttp2ToHttpAdapter
public InboundHttp2ToHttpAdapter build()
InboundHttp2ToHttpAdapter
instance using this builders current settings.Copyright © 2008–2015 The Netty Project. All rights reserved.