public class SpdyAddOn extends Object implements AddOn
TransportFilter
<->SSLFilter
(1) <->SpdyFramingFilter
<->SpdyHandlerFilter
(2) <->HttpServerFilter
HttpServerFilter
Modifier and Type | Class and Description |
---|---|
protected static class |
SpdyAddOn.ProtocolNegotiator |
Modifier and Type | Field and Description |
---|---|
protected static SpdyVersion[] |
ALL_SPDY_VERSIONS |
protected SpdyMode |
mode |
protected SpdyVersion[] |
supportedSpdyVersions |
Constructor and Description |
---|
SpdyAddOn() |
SpdyAddOn(SpdyMode mode) |
SpdyAddOn(SpdyMode mode,
SpdyVersion... supportedSpdyVersions) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureNpn(FilterChainBuilder builder) |
protected TransportProbe |
getConfigProbe() |
int |
getInitialWindowSize()
Returns the default initial stream window size (in bytes) for new SPDY sessions.
|
int |
getMaxConcurrentStreams()
Returns the default maximum number of concurrent streams allowed for one session.
|
int |
getMaxFrameLength()
Returns the maximum allowed SPDY frame length.
|
void |
setInitialWindowSize(int initialWindowSize)
Sets the default initial stream window size (in bytes) for new SPDY sessions.
|
void |
setMaxConcurrentStreams(int maxConcurrentStreams)
Sets the default maximum number of concurrent streams allowed for one session.
|
void |
setMaxFrameLength(int maxFrameLength)
Sets the maximum allowed SPDY frame length.
|
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 void |
updateFilterChain(SpdyMode mode,
FilterChainBuilder builder) |
protected static final SpdyVersion[] ALL_SPDY_VERSIONS
protected final SpdyMode mode
protected final SpdyVersion[] supportedSpdyVersions
public SpdyAddOn()
public SpdyAddOn(SpdyMode mode)
public SpdyAddOn(SpdyMode mode, SpdyVersion... supportedSpdyVersions)
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 getMaxFrameLength()
public void setMaxFrameLength(int maxFrameLength)
protected TransportProbe getConfigProbe()
protected void configureNpn(FilterChainBuilder builder)
protected void updateFilterChain(SpdyMode mode, FilterChainBuilder builder)
Copyright © 2015 Oracle Corporation. All rights reserved.