Netty project - an event-driven asynchronous network application framework
Java C Shell Groovy Protocol Buffer C++
Latest commit f97866d Aug 26, 2016 Roger Kapsi committed with Scottmitch Expose SniHandler's replaceHandler() so that users can implement cust…
…om behavior.

Motivation

The SniHandler is currently hiding its replaceHandler() method and everything that comes with it. The user has no easy way of getting a hold onto the SslContext for the purpose of reference counting for example. The SniHandler does have getter methods for the SslContext and hostname but they're not very practical or useful. For one the SniHandler will remove itself from the pipeline and we'd have to track a reference of it externally and as we saw in #5745 it'll possibly leave its internal "selection" object with the "EMPTY_SELECTION" value (i.e. we've just lost track of the SslContext).

Modifications

Expose replaceHandler() and allow the user to override it and get a hold onto the hostname, SslContext and SslHandler that will replace the SniHandler.

Result

It's possible to get a hold onto the SslContext, the hostname and the SslHandler that is about to replace the SniHandler. Users can add additional behavior.
Permalink
Failed to load latest commit information.
all [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
buffer [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-dns [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-haproxy [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-http [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-http2 [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-memcache [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-mqtt [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-redis [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-smtp [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-socks [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-stomp [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec-xml [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
codec [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
common [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
example [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
handler-proxy [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
handler Expose SniHandler's replaceHandler() so that users can implement cust… Aug 29, 2016
license added support for Protobuf codec nano runtime Jan 19, 2016
microbench [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
resolver-dns [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
resolver [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
tarball [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
testsuite-osgi [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
testsuite [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
transport-native-epoll [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
transport-rxtx [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
transport-sctp [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
transport-udt [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
transport [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
.fbprefs Updated Find Bugs configuration Mar 4, 2009
.gitignore Use shaded dependency on JCTools instead of copy and paste Jun 10, 2016
.travis.yml Travis CI branch whitelisting Mar 11, 2013
CONTRIBUTING.md Move the pull request guide to the developer guide Mar 12, 2014
LICENSE.txt Relicensed to Apache License v2 Aug 28, 2009
NOTICE.txt added support for Protobuf codec nano runtime Jan 19, 2016
README.md Updating Branches to look section to match the current branching stru… Mar 10, 2016
pom.xml [maven-release-plugin] prepare release netty-4.1.5.Final Aug 26, 2016
run-example.sh Add an example client for codec-redis Apr 23, 2016

README.md

Netty Project

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.

Links

How to build

For the detailed information about building and developing Netty, please visit the developer guide. This page only gives very basic information.

You require the following to build Netty:

Note that this is build-time requirement. JDK 5 (for 3.x) or 6 (for 4.0+) is enough to run your Netty-based application.

Branches to look

Development of all versions takes place in each branch whose name is identical to <majorVersion>.<minorVersion>. For example, the development of 3.9 and 4.0 resides in the branch '3.9' and the branch '4.0' respectively.