io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler.class Maven / Gradle / Ivy
???? 2 ? Eio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler ?io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler #WebSocketServerProtocolHandler.java Wio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler$HandshakeComplete HandshakeComplete _io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler$ServerHandshakeStateEvent ServerHandshakeStateEvent Gio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler$1 HANDSHAKER_ATTR_KEY Lio/netty/util/AttributeKey; `Lio/netty/util/AttributeKey;
websocketPath Ljava/lang/String; subprotocols allowExtensions Z maxFramePayloadLength I allowMaskMismatch checkStartsWith (Ljava/lang/String;)V ((Ljava/lang/String;Ljava/lang/String;Z)V
this GLio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler; (Ljava/lang/String;Z)V +(Ljava/lang/String;Ljava/lang/String;ZIZZ)V #
$ '(Ljava/lang/String;Ljava/lang/String;)V )(Ljava/lang/String;Ljava/lang/String;ZI)V '
( *(Ljava/lang/String;Ljava/lang/String;ZIZ)V *
+ maxFrameSize ()V .
/ 1 3 5 7 9 ; handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V &io/netty/channel/ChannelHandlerContext ? pipeline $()Lio/netty/channel/ChannelPipeline; A B @ C Nio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler E io/netty/channel/ChannelPipeline G get 4(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler; I J H K name ()Ljava/lang/String; M N @ O java/lang/Class Q getName S N
R T
F $ addBefore i(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline; W X H Y 9io/netty/handler/codec/http/websocketx/Utf8FrameValidator [
\ / ctx (Lio/netty/channel/ChannelHandlerContext; cp "Lio/netty/channel/ChannelPipeline; decode r(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/websocketx/WebSocketFrame;Ljava/util/List;)V java/lang/Exception d :io/netty/handler/codec/http/websocketx/CloseWebSocketFrame f channel ()Lio/netty/channel/Channel; h i @ j
getHandshaker ^(Lio/netty/channel/Channel;)Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker; l m
n 5io/netty/handler/codec/http/websocketx/WebSocketFrame p retain 9()Lio/netty/handler/codec/http/websocketx/WebSocketFrame; r s
q t @io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker v close x(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/CloseWebSocketFrame;)Lio/netty/channel/ChannelFuture; x y
w z io/netty/buffer/Unpooled | EMPTY_BUFFER Lio/netty/buffer/ByteBuf; ~ } ?
writeAndFlush 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; ? ? @ ? &io/netty/channel/ChannelFutureListener ? CLOSE (Lio/netty/channel/ChannelFutureListener; ? ? ? ? io/netty/channel/ChannelFuture ? addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; ? ? ? ? b c
?
handshaker BLio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker; frame 7Lio/netty/handler/codec/http/websocketx/WebSocketFrame; out $Ljava/util/List; Ljava/util/List; exceptionCaught @(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V Bio/netty/handler/codec/http/websocketx/WebSocketHandshakeException ? 3io/netty/handler/codec/http/DefaultFullHttpResponse ? 'io/netty/handler/codec/http/HttpVersion ? HTTP_1_1 )Lio/netty/handler/codec/http/HttpVersion; ? ? ? ? .io/netty/handler/codec/http/HttpResponseStatus ? BAD_REQUEST 0Lio/netty/handler/codec/http/HttpResponseStatus; ? ? ? ? java/lang/Throwable ?
getMessage ? N
? ? java/lang/String ? getBytes ()[B ? ?
? ?
wrappedBuffer ([B)Lio/netty/buffer/ByteBuf; ? ?
} ? u(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;Lio/netty/buffer/ByteBuf;)V ?
? ? io/netty/channel/Channel ? ? ? fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; ? ? @ ? "()Lio/netty/channel/ChannelFuture; x ? @ ? response .Lio/netty/handler/codec/http/FullHttpResponse; cause Ljava/lang/Throwable; ? attr 7(Lio/netty/util/AttributeKey;)Lio/netty/util/Attribute; ? ? ? ? io/netty/util/Attribute ? ()Ljava/lang/Object; I ? ? ? Lio/netty/channel/Channel;
setHandshaker _(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;)V set (Ljava/lang/Object;)V ? ? ? ? forbiddenHttpRequestResponder #()Lio/netty/channel/ChannelHandler;
/ M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V
?
HANDSHAKER ? io/netty/util/AttributeKey ? valueOf A(Ljava/lang/Class;Ljava/lang/String;)Lio/netty/util/AttributeKey; ? ?
? ? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions ?(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/websocketx/WebSocketFrame;Ljava/util/List;)V
SourceFile InnerClasses ! ? ? @ *+? ? ? ?
l m ! ? N *+"? %? ? ?
p q &