Class SpdyAddOn

java.lang.Object
org.glassfish.grizzly.spdy.SpdyAddOn
All Implemented Interfaces:
org.glassfish.grizzly.http.server.AddOn

public class SpdyAddOn extends Object implements org.glassfish.grizzly.http.server.AddOn
FilterChain after being processed by SpdyAddOn:
     TransportFilter <-> SSLFilter(1) <-> SpdyFramingFilter <-> SpdyHandlerFilter(2) <-> HttpServerFilter
 
  1. SSLFilter is configured to use NPN for SPDY protocol negotiation
  2. SpdyFramingFilter and SpdyHandlerFilter replace HttpServerFilter
  • Field Details

    • mode

      protected final SpdyMode mode
    • supportedSpdyVersions

      protected final SpdyVersion[] supportedSpdyVersions
  • Constructor Details

    • SpdyAddOn

      public SpdyAddOn()
    • SpdyAddOn

      public SpdyAddOn(SpdyMode mode)
    • SpdyAddOn

      public SpdyAddOn(SpdyMode mode, SpdyVersion... supportedSpdyVersions)
  • Method Details

    • setup

      public void setup(org.glassfish.grizzly.http.server.NetworkListener networkListener, org.glassfish.grizzly.filterchain.FilterChainBuilder builder)
      Specified by:
      setup in interface org.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)