io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandshakeHandler.class Maven / Gradle / Ivy
???? 2 Nio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler -io/netty/channel/ChannelInboundHandlerAdapter ,WebSocketServerProtocolHandshakeHandler.java Pio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler$1
websocketPath Ljava/lang/String; subprotocols allowExtensions Z maxFramePayloadSize I allowMaskMismatch checkStartsWith *(Ljava/lang/String;Ljava/lang/String;ZIZ)V +(Ljava/lang/String;Ljava/lang/String;ZIZZ)V
this PLio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler; maxFrameSize ()V
" $ & channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V java/lang/Exception * +io/netty/handler/codec/http/FullHttpRequest , isNotWebSocketPath 0(Lio/netty/handler/codec/http/FullHttpRequest;)Z . /
0 &io/netty/channel/ChannelHandlerContext 2 fireChannelRead <(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext; 4 5 3 6 method *()Lio/netty/handler/codec/http/HttpMethod; 8 9 - : &io/netty/handler/codec/http/HttpMethod < GET (Lio/netty/handler/codec/http/HttpMethod; > ? = @ 3io/netty/handler/codec/http/DefaultFullHttpResponse B 'io/netty/handler/codec/http/HttpVersion D HTTP_1_1 )Lio/netty/handler/codec/http/HttpVersion; F G E H .io/netty/handler/codec/http/HttpResponseStatus J FORBIDDEN 0Lio/netty/handler/codec/http/HttpResponseStatus; L M K N \(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V P
C Q sendHttpResponse ~(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;Lio/netty/handler/codec/http/HttpResponse;)V S T
U release ()Z W X - Y Gio/netty/handler/codec/http/websocketx/WebSocketServerHandshakerFactory [ pipeline $()Lio/netty/channel/ChannelPipeline; ] ^ 3 _ getWebSocketLocation q(Lio/netty/channel/ChannelPipeline;Lio/netty/handler/codec/http/HttpRequest;Ljava/lang/String;)Ljava/lang/String; a b
c
\ e
newHandshaker m(Lio/netty/handler/codec/http/HttpRequest;)Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker; g h
\ i channel ()Lio/netty/channel/Channel; k l 3 m sendUnsupportedVersionResponse <(Lio/netty/channel/Channel;)Lio/netty/channel/ChannelFuture; o p
\ q @io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker s handshake i(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/FullHttpRequest;)Lio/netty/channel/ChannelFuture; u v
t w ?(Lio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/FullHttpRequest;Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;)V y
z io/netty/channel/ChannelFuture | addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; ~ } ? Eio/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler ?
setHandshaker _(Lio/netty/channel/Channel;Lio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker;)V ? ?
? ? WS403Responder ? forbiddenHttpRequestResponder #()Lio/netty/channel/ChannelHandler; ? ?
? ? io/netty/channel/ChannelPipeline ? replace x(Lio/netty/channel/ChannelHandler;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline; ? ? ? ? java/lang/Throwable ? handshakeFuture Lio/netty/channel/ChannelFuture; wsFactory ILio/netty/handler/codec/http/websocketx/WebSocketServerHandshakerFactory;
handshaker BLio/netty/handler/codec/http/websocketx/WebSocketServerHandshaker; ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object; req -Lio/netty/handler/codec/http/FullHttpRequest; uri ()Ljava/lang/String; ? ? - ? java/lang/String ?
startsWith (Ljava/lang/String;)Z ? ?
? ? equals (Ljava/lang/Object;)Z ? ?
? ? io/netty/channel/Channel ?
writeAndFlush 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; ? ? ? ? $io/netty/handler/codec/http/HttpUtil ? isKeepAlive ,(Lio/netty/handler/codec/http/HttpMessage;)Z ? ?
? ? (io/netty/handler/codec/http/HttpResponse ? status 2()Lio/netty/handler/codec/http/HttpResponseStatus; ? ? ? ? code ()I ? ?
K ? &io/netty/channel/ChannelFutureListener ? CLOSE (Lio/netty/channel/ChannelFutureListener; ? ? ? ? )Lio/netty/handler/codec/http/HttpRequest; res *Lio/netty/handler/codec/http/HttpResponse; f ws ? io/netty/handler/ssl/SslHandler ? get 4(Ljava/lang/Class;)Lio/netty/channel/ChannelHandler; ? ? ? ? wss ? 'io/netty/handler/codec/http/HttpRequest ? headers +()Lio/netty/handler/codec/http/HttpHeaders; ? ? ? ? +io/netty/handler/codec/http/HttpHeaderNames ? HOST Lio/netty/util/AsciiString; ? ? ? ? 'io/netty/handler/codec/http/HttpHeaders ? ,(Ljava/lang/CharSequence;)Ljava/lang/String; ? ?
? ? java/lang/StringBuilder ?
? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? :// ? toString ? ?
? ? cp "Lio/netty/channel/ChannelPipeline; path protocol host Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses
? m
*+,? ? ? >
?
1 2 ? ? &*? *+? *,? *? !*? #*? %*? '? ? H &