
com.groupbyinc.flux.http.netty.NettyHttpChannel.class Maven / Gradle / Ivy
???? 3? /com/groupbyinc/flux/http/netty/NettyHttpChannel $com/groupbyinc/flux/http/HttpChannel NettyHttpChannel.java 1com/groupbyinc/flux/http/netty/NettyHttpChannel$1 java/util/Map$Entry
java/util/Map
Entry Kcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpHeaders$Names
Ecom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpHeaders Names Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpHeaders$Values Values transport 9Lcom/groupbyinc/flux/http/netty/NettyHttpServerTransport; channel 8Lcom/groupbyinc/flux/common/jboss/netty/channel/Channel; nettyRequest GLcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpRequest; orderedUpstreamMessageEvent GLcom/groupbyinc/flux/http/netty/pipelining/OrderedUpstreamMessageEvent; TOO_MANY_REQUESTS NLcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponseStatus; n(Lcom/groupbyinc/flux/http/netty/NettyHttpServerTransport;Lcom/groupbyinc/flux/http/netty/NettyHttpRequest;Z)V *(Lcom/groupbyinc/flux/rest/RestRequest;Z)V !
" $ & /com/groupbyinc/flux/http/netty/NettyHttpRequest (
getChannel :()Lcom/groupbyinc/flux/common/jboss/netty/channel/Channel; * +
) , . request I()Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpRequest; 0 1
) 2 4 this 1Lcom/groupbyinc/flux/http/netty/NettyHttpChannel; 1Lcom/groupbyinc/flux/http/netty/NettyHttpRequest; detailedErrorsEnabled Z ?(Lcom/groupbyinc/flux/http/netty/NettyHttpServerTransport;Lcom/groupbyinc/flux/http/netty/NettyHttpRequest;Lcom/groupbyinc/flux/http/netty/pipelining/OrderedUpstreamMessageEvent;Z)V
< newBytesOutput :()Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; @com/groupbyinc/flux/common/io/stream/ReleasableBytesStreamOutput @ 7com/groupbyinc/flux/http/netty/NettyHttpServerTransport B bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays; D E C F .(Lcom/groupbyinc/flux/common/util/BigArrays;)V H
A I sendResponse *(Lcom/groupbyinc/flux/rest/RestResponse;)V newResponse J()Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponse; M N
O %com/groupbyinc/flux/rest/RestResponse Q status '()Lcom/groupbyinc/flux/rest/RestStatus; S T
R U getStatus u(Lcom/groupbyinc/flux/rest/RestStatus;)Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponseStatus; W X
Y Fcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponse [ setStatus Q(Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponseStatus;)V ] ^ \ _
getCorsConfig 2()Lcom/groupbyinc/flux/http/netty/cors/CorsConfig; a b
C c /com/groupbyinc/flux/http/netty/cors/CorsHandler e setCorsResponseHeaders ?(Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpRequest;Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpResponse;Lcom/groupbyinc/flux/http/netty/cors/CorsConfig;)V g h
f i Ecom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpRequest k headers I()Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpHeaders; m n l o X-Opaque-Id q get &(Ljava/lang/String;)Ljava/lang/String; s t
u \ o add m(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpHeaders; x y
z java/lang/String |
getHeaders ()Ljava/util/Map; ~
R ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getValue ? ? ? java/util/List ? ? ? getKey ? ? ? content 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
R ? /com/groupbyinc/flux/common/bytes/BytesReference ? toChannelBuffer ?()Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer; ? ? ? ?
setContent @(Lcom/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer;)V ? ? \ ? Content-Type ? contains (Ljava/lang/String;)Z ? ?
? contentType ()Ljava/lang/String; ? ?
R ? ;com/groupbyinc/flux/common/jboss/netty/buffer/ChannelBuffer ? Content-Length ?
readableBytes ()I ? ? ? ? valueOf (I)Ljava/lang/String; ? ?
} ? resetCookies ? : C ? Cookie ? Gcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/CookieDecoder ? ()V ?
? ? decode #(Ljava/lang/String;)Ljava/util/Set; ? ?
? ? isEmpty ? ? ? ? Gcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/CookieEncoder ? (Z)V ?
? ? @com/groupbyinc/flux/common/jboss/netty/handler/codec/http/Cookie ? addCookie E(Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/Cookie;)V ? ?
? ?
Set-Cookie ? encode ? ?
? ? Gcom/groupbyinc/flux/http/netty/pipelining/OrderedDownstreamChannelEvent ? ^(Lcom/groupbyinc/flux/http/netty/pipelining/OrderedUpstreamMessageEvent;IZLjava/lang/Object;)V ?
? ? getFuture @()Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelFuture; ? ?
? ? 6com/groupbyinc/flux/common/jboss/netty/channel/Channel ? getPipeline B()Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelPipeline; ? ? ? ? >com/groupbyinc/flux/common/jboss/netty/channel/ChannelPipeline ? sendDownstream @(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent;)V ? ? ? ? write R(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelFuture; ? ? ? ?