Add premessage-deflate extension handler for HTTP WebSocket

Add premessage-deflate extension handler for HTTP WebSocket.

Motivation:
- Need to compress HTTP WebSocket frames payload.

Modifications:
- Remove UTF8 checking of WebSocketFrames from frame decoder in order to
allow compressed frames to go to the next handler.
- Add a WebsocketPremessageDeflateHandler to initialize the frame deflater/inflater if client is compatible with deflate extension.

Result:
First version of the implementation for feedback.
private static final class...

> Am 08.07.2014 um 17:43 schrieb Frederic Boucher <notifications@github.com>:
> 
> In codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateFrameClientExtensionHandshaker.java:
> 
> > +
> > +    @Override
> > +    public WebSocketClientExtension handshakeExtension(WebSocketExtensionData extensionData) {
> > +        if (!X_WEBKIT_DEFLATE_FRAME_EXTENSION.equals(extensionData.getName()) &&
> > +            !DEFLATE_FRAME_EXTENSION.equals(extensionData.getName())) {
> > +            return null;
> > +        }
> > +
> > +        if (extensionData.getParameters().isEmpty()) {
> > +            return new DeflateFrameClientExtension(compressionLevel);
> > +        } else {
> > +            return null;
> > +        }
> > +    }
> > +
> > +    private static class DeflateFrameClientExtension implements WebSocketClientExtension {
> final instead of private ? There are not compatible.
> 
> —
> Reply to this email directly or view it on GitHub.