@UnstableApi public final class Http2CodecBuilder extends Object
Http2Codec
.Constructor and Description |
---|
Http2CodecBuilder(boolean server,
ChannelHandler streamHandler)
Creates a new
Http2Codec builder. |
Http2CodecBuilder(boolean server,
Http2StreamChannelBootstrap bootstrap)
Creates a new
Http2Codec builder. |
Modifier and Type | Method and Description |
---|---|
Http2Codec |
build()
Builds/creates a new
Http2Codec instance using this builder's current settings. |
Http2FrameLogger |
frameLogger()
Returns the frame logger to log messages with.
|
Http2CodecBuilder |
frameLogger(Http2FrameLogger frameLogger)
Specifies the frame logger to log messages with.
|
Http2HeadersEncoder.SensitivityDetector |
headersSensitivityDetector()
Returns the headers sensitivity detector.
|
Http2CodecBuilder |
headersSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headersSensitivityDetector)
Specifies the headers sensitivity detector.
|
Http2Settings |
initialSettings()
Returns the initial settings to send to peer.
|
Http2CodecBuilder |
initialSettings(Http2Settings initialSettings)
Specifies the initial settings to send to peer.
|
public Http2CodecBuilder(boolean server, ChannelHandler streamHandler)
Http2Codec
builder.server
- true
this is a serverstreamHandler
- the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable
. null
if the event loop from the parent channel should be used.public Http2CodecBuilder(boolean server, Http2StreamChannelBootstrap bootstrap)
Http2Codec
builder.server
- true
this is a serverbootstrap
- bootstrap used to instantiate child channels for remotely-created streams.public Http2CodecBuilder initialSettings(Http2Settings initialSettings)
initialSettings
- non default initial settings to send to peerHttp2CodecBuilder
the builder for the Http2Codec
public Http2Settings initialSettings()
public Http2CodecBuilder frameLogger(Http2FrameLogger frameLogger)
frameLogger
- handler used to log all framesHttp2CodecBuilder
the builder for the Http2Codec
public Http2FrameLogger frameLogger()
public Http2CodecBuilder headersSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headersSensitivityDetector)
headersSensitivityDetector
- decides whether headers should be considered sensitive or notHttp2CodecBuilder
the builder for the Http2Codec
public Http2HeadersEncoder.SensitivityDetector headersSensitivityDetector()
public Http2Codec build()
Http2Codec
instance using this builder's current settings.Copyright © 2008–2017 The Netty Project. All rights reserved.