Top Description Fields Constructors Methods
org.glassfish.grizzly.http2

public Class Http2AddOn

extends Object
implements AddOn
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.server.AddOn
Imports
java.util.logging.Logger, org.glassfish.grizzly.Grizzly, .Transport, org.glassfish.grizzly.filterchain.FilterChainBuilder, org.glassfish.grizzly.http.server.AddOn, .NetworkListener, org.glassfish.grizzly.nio.transport.TCPNIOTransport, org.glassfish.grizzly.ssl.SSLBaseFilter, .SSLFilter

FilterChain after being processed by Http2AddOn:
    org.glassfish.grizzly.filterchain.TransportFilter <-> SSLFilter(optional) <-> org.glassfish.grizzly.http.HttpServerFilter <-> Http2ServerFilter <-> org.glassfish.grizzly.http.server.HttpServer
SSLFilter, if present, is configured to use ALPN for HTTP2 protocol negotiation

Field Summary

Modifier and TypeField and Description
private final Http2Configuration
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public
Http2AddOn(final Http2Configuration http2Configuration)

Method Summary

Modifier and TypeMethod and Description
private static void
configureAlpn(final Transport transport, final Http2ServerFilter http2Filter, final FilterChainBuilder builder)

public Http2Configuration
getConfiguration()

Returns: the configuration backing this AddOn and ultimately the Http2ServerFilter.

public void
setup(NetworkListener networkListener, FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by HttpServer in order to initialize the AddOn on the passed NetworkListener.

private Http2ServerFilter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

http2Configurationback to summary
private final Http2Configuration http2Configuration
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

Http2AddOnback to summary
public Http2AddOn()
Http2AddOnback to summary
public Http2AddOn(final Http2Configuration http2Configuration)

Method Detail

configureAlpnback to summary
private static void configureAlpn(final Transport transport, final Http2ServerFilter http2Filter, final FilterChainBuilder builder)
getConfigurationback to summary
public Http2Configuration getConfiguration()
Returns:Http2Configuration

the configuration backing this AddOn and ultimately the Http2ServerFilter.

setupback to summary
public void setup(NetworkListener networkListener, FilterChainBuilder builder)

Implements org.glassfish.grizzly.http.server.AddOn.setup.

Doc from org.glassfish.grizzly.http.server.AddOn.setup.

The method, which will be invoked by 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 org.glassfish.grizzly.filterchain.Filter(s), which implement AddOn's logic.

Annotations
@Override
updateFilterChainback to summary
private Http2ServerFilter updateFilterChain(final FilterChainBuilder builder)