eclipse-ee4j/grizzly-npn

Name: grizzly-npn

Owner: Eclipse EE4J

Description: Grizzly-npn

Created: 2018-02-08 12:07:40.0

Updated: 2018-05-17 05:49:34.0

Pushed: 2018-05-17 05:49:33.0

Homepage: null

Size: 148

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

This module interfaces with the TLS implementation of Oracle JDK8 to provide an implementation of ALPN. The module was written for use in Grizzly, but is intended as a general purpose solution to allow JDK8 based software to use ALPN.

How Grizzly Uses This Module

Grizzly has the concept of an AddOn. This facility allows Grizzly to be extended using an implementation of the Chain of Responsibility design pattern. In general, an AddOn implementation will insert one or more Filter implementations into the FilterChain which is used to process HTTP requests and cause HTTP responses to be sent.

Grizzly itself uses this AddOn concept to provide HTTP/2 support, in the form of Http2AddOn In addition to registering filters for HTTP/2 processing, this AddOn implementation registers a callback withthe ALPN extension to insert itself into the SSL Handshake process

Programmatic Configuration

AddOn has a setup method that is called to allow the implementation to do whatever one-time setup is required to make things work. The setup override in the Http2AddOn takes the following actions if the current connection is secure (that is, it is supposed to be using ALPN).

Deployment Configuration

The above programmatic configuration steps will make it so the simple act of including the module built from the bootstrap sub-module of this repository in the bootclasspath of the JVM will enable ALPN support in that JVM.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.