Package org.glassfish.grizzly.spdy
Class SpdyAddOn
java.lang.Object
org.glassfish.grizzly.spdy.SpdyAddOn
- All Implemented Interfaces:
org.glassfish.grizzly.http.server.AddOn
FilterChain after being processed by SpdyAddOn:
TransportFilter <-> SSLFilter(1) <-> SpdyFramingFilter <-> SpdyHandlerFilter(2) <-> HttpServerFilter
- SSLFilter is configured to use NPN for SPDY protocol negotiation
- SpdyFramingFilter and SpdyHandlerFilter replace
HttpServerFilter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureNpn(org.glassfish.grizzly.filterchain.FilterChainBuilder builder) protected org.glassfish.grizzly.TransportProbeintReturns the default initial stream window size (in bytes) for new SPDY sessions.intReturns the default maximum number of concurrent streams allowed for one session.intReturns the maximum allowed SPDY frame length.voidsetInitialWindowSize(int initialWindowSize) Sets the default initial stream window size (in bytes) for new SPDY sessions.voidsetMaxConcurrentStreams(int maxConcurrentStreams) Sets the default maximum number of concurrent streams allowed for one session.voidsetMaxFrameLength(int maxFrameLength) Sets the maximum allowed SPDY frame length.voidsetup(org.glassfish.grizzly.http.server.NetworkListener networkListener, org.glassfish.grizzly.filterchain.FilterChainBuilder builder) protected voidupdateFilterChain(SpdyMode mode, org.glassfish.grizzly.filterchain.FilterChainBuilder builder)
-
Field Details
-
mode
-
supportedSpdyVersions
-
-
Constructor Details
-
SpdyAddOn
public SpdyAddOn() -
SpdyAddOn
-
SpdyAddOn
-
-
Method Details
-
setup
public void setup(org.glassfish.grizzly.http.server.NetworkListener networkListener, org.glassfish.grizzly.filterchain.FilterChainBuilder builder) - Specified by:
setupin interfaceorg.glassfish.grizzly.http.server.AddOn
-
getMaxConcurrentStreams
public int getMaxConcurrentStreams()Returns the default maximum number of concurrent streams allowed for one session. Negative value means "unlimited". -
setMaxConcurrentStreams
public void setMaxConcurrentStreams(int maxConcurrentStreams) Sets the default maximum number of concurrent streams allowed for one session. Negative value means "unlimited". -
getInitialWindowSize
public int getInitialWindowSize()Returns the default initial stream window size (in bytes) for new SPDY sessions. -
setInitialWindowSize
public void setInitialWindowSize(int initialWindowSize) Sets the default initial stream window size (in bytes) for new SPDY sessions. -
getMaxFrameLength
public int getMaxFrameLength()Returns the maximum allowed SPDY frame length. -
setMaxFrameLength
public void setMaxFrameLength(int maxFrameLength) Sets the maximum allowed SPDY frame length. -
getConfigProbe
protected org.glassfish.grizzly.TransportProbe getConfigProbe() -
configureNpn
protected void configureNpn(org.glassfish.grizzly.filterchain.FilterChainBuilder builder) -
updateFilterChain
protected void updateFilterChain(SpdyMode mode, org.glassfish.grizzly.filterchain.FilterChainBuilder builder)
-