public final class H2ProtocolConfigBuilder
extends java.lang.Object
H2ProtocolConfig
.HttpProtocolConfigs.h2()
Modifier and Type | Method and Description |
---|---|
H2ProtocolConfig |
build()
Builds
H2ProtocolConfig . |
H2ProtocolConfigBuilder |
enableFrameLogging(java.lang.String loggerName)
Enables a logger for HTTP/2 frames.
|
H2ProtocolConfigBuilder |
headersFactory(HttpHeadersFactory headersFactory)
Sets the
HttpHeadersFactory to be used for creating HttpHeaders when decoding HTTP messages. |
H2ProtocolConfigBuilder |
headersSensitivityDetector(java.util.function.BiPredicate<java.lang.CharSequence,java.lang.CharSequence> headersSensitivityDetector)
Sets the sensitivity detector to determine if a header
name /value pair should be treated as
sensitive. |
public H2ProtocolConfigBuilder headersFactory(HttpHeadersFactory headersFactory)
HttpHeadersFactory
to be used for creating HttpHeaders
when decoding HTTP messages.headersFactory
- HttpHeadersFactory
to be used for creating HttpHeaders
when decoding HTTP
messagesthis
public H2ProtocolConfigBuilder headersSensitivityDetector(java.util.function.BiPredicate<java.lang.CharSequence,java.lang.CharSequence> headersSensitivityDetector)
name
/value
pair should be treated as
sensitive.headersSensitivityDetector
- the BiPredicate
<CharSequence
, CharSequence
> that
returns true
if a header <name
, value
> pair should be treated as
sensitive, false
otherwisethis
public H2ProtocolConfigBuilder enableFrameLogging(java.lang.String loggerName)
All frames will be logged at TRACE
level.
loggerName
- the name of the logger to log HTTP/2 framesthis
public H2ProtocolConfig build()
H2ProtocolConfig
.H2ProtocolConfig