public WebSocketProtocolHandshakeHandler addExtension ( ExtensionHandshake extension ) { if ( extension != null ) { for ( Handshake handshake : handshakes ) { handshake . addExtension ( extension ) ; } } return this ; }
Add a new WebSocket Extension into the handshakes defined in this handler .