public class Http2AddOn extends Object implements AddOn
TransportFilter
<->SSLFilter
(1) <->FrameCodec
<->Http2BaseFilter
(2) <->HttpServerFilter
HttpServerFilter
Modifier and Type | Field and Description |
---|---|
protected DraftVersion[] |
supportedDrafts |
Constructor and Description |
---|
Http2AddOn() |
Http2AddOn(DraftVersion... supportedDrafts) |
Modifier and Type | Method and Description |
---|---|
int |
getInitialWindowSize()
Returns the default initial stream window size (in bytes) for new HTTP2 connections.
|
int |
getMaxConcurrentStreams()
Returns the default maximum number of concurrent streams allowed for one session.
|
int |
getMaxFramePayloadSize() |
void |
setInitialWindowSize(int initialWindowSize)
Sets the default initial stream window size (in bytes) for new HTTP2 connections.
|
void |
setMaxConcurrentStreams(int maxConcurrentStreams)
Sets the default maximum number of concurrent streams allowed for one session.
|
void |
setMaxFramePayloadSize(int maxFramePayloadSize)
Sets the maximum allowed HTTP2 frame payload size.
|
void |
setup(NetworkListener networkListener,
FilterChainBuilder builder)
The method, which will be invoked by
HttpServer in order to
initialize the AddOn on the passed NetworkListener . |
protected final DraftVersion[] supportedDrafts
public Http2AddOn()
public Http2AddOn(DraftVersion... supportedDrafts)
public void setup(NetworkListener networkListener, FilterChainBuilder builder)
AddOn
HttpServer
in order to
initialize the AddOn on the passed NetworkListener
.
Most of the time the AddOn implementation will update the passed
NetworkListener
's FilterChainBuilder
by adding custom
Filter
(s), which implement
AddOn's logic.setup
in interface AddOn
networkListener
- the NetworkListener
the addon is being
initialized on.builder
- the FilterChainBuilder
,
representing the NetworkListener
logic.public int getMaxConcurrentStreams()
public void setMaxConcurrentStreams(int maxConcurrentStreams)
public int getInitialWindowSize()
public void setInitialWindowSize(int initialWindowSize)
public int getMaxFramePayloadSize()
public void setMaxFramePayloadSize(int maxFramePayloadSize)
maxFramePayloadSize
- Copyright © 2018 Oracle Corporation. All rights reserved.