Package org.glassfish.grizzly.http2
Class Http2AddOn
java.lang.Object
org.glassfish.grizzly.http2.Http2AddOn
- All Implemented Interfaces:
AddOn
FilterChain after being processed by
Http2AddOn:
TransportFilter <-> SSLFilter(optional) <-> HttpServerFilter <-> Http2ServerFilter <-> HttpServer
SSLFilter, if present, is configured to use ALPN for HTTP2 protocol negotiation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup(NetworkListener networkListener, FilterChainBuilder builder) The method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener.
-
Constructor Details
-
Http2AddOn
public Http2AddOn() -
Http2AddOn
-
-
Method Details
-
setup
Description copied from interface:AddOnThe method, which will be invoked byHttpServerin order to initialize the AddOn on the passedNetworkListener. Most of the time the AddOn implementation will update the passedNetworkListener'sFilterChainBuilderby adding customFilter(s), which implement AddOn's logic.- Specified by:
setupin interfaceAddOn- Parameters:
networkListener- theNetworkListenerthe addon is being initialized on.builder- theFilterChainBuilder, representing theNetworkListenerlogic.
-
getConfiguration
- Returns:
- the configuration backing this
AddOnand ultimately theHttp2ServerFilter.
-