com.groupbyinc.flux.http.netty4.Netty4HttpChannel.class Maven / Gradle / Ivy
???? 4? 1com/groupbyinc/flux/http/netty4/Netty4HttpChannel ,com/groupbyinc/flux/rest/AbstractRestChannel Netty4HttpChannel.java java/util/Map$Entry
java/util/Map Entry %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup transport ;Lcom/groupbyinc/flux/http/netty4/Netty4HttpServerTransport; channel 2Lcom/groupbyinc/flux/common/netty/channel/Channel; nettyRequest ELcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpRequest; pipelinedRequest ALcom/groupbyinc/flux/http/netty4/pipelining/HttpPipelinedRequest;
threadContext :Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; TOO_MANY_REQUESTS HLcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponseStatus; MAP Ljava/util/Map; ~Ljava/util/Map; ?(Lcom/groupbyinc/flux/http/netty4/Netty4HttpServerTransport;Lcom/groupbyinc/flux/http/netty4/Netty4HttpRequest;Lcom/groupbyinc/flux/http/netty4/pipelining/HttpPipelinedRequest;ZLcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V *(Lcom/groupbyinc/flux/rest/RestRequest;Z)V !
" $ 1com/groupbyinc/flux/http/netty4/Netty4HttpRequest &
getChannel 4()Lcom/groupbyinc/flux/common/netty/channel/Channel; ( )
' * , request G()Lcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpRequest; . /
' 0 2 4 6 this 3Lcom/groupbyinc/flux/http/netty4/Netty4HttpChannel; 3Lcom/groupbyinc/flux/http/netty4/Netty4HttpRequest; detailedErrorsEnabled Z newBytesOutput :()Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; @com/groupbyinc/flux/common/io/stream/ReleasableBytesStreamOutput ? 9com/groupbyinc/flux/http/netty4/Netty4HttpServerTransport A bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays; C D B E .(Lcom/groupbyinc/flux/common/util/BigArrays;)V G
@ H sendResponse *(Lcom/groupbyinc/flux/rest/RestResponse;)V %com/groupbyinc/flux/rest/RestResponse L content 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; N O
M P 0com/groupbyinc/flux/transport/netty4/Netty4Utils R toByteBuf d(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; T U
S V >com/groupbyinc/flux/common/netty/handler/codec/http/HttpMethod X HEAD @Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpMethod; Z [ Y \ Ccom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpRequest ^ method B()Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpMethod; ` a _ b equals (Ljava/lang/Object;)Z d e
Y f 0com/groupbyinc/flux/common/netty/buffer/Unpooled h EMPTY_BUFFER 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; j k i l newResponse y(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpResponse; n o
p /com/groupbyinc/flux/common/netty/buffer/ByteBuf r Dcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpResponse t status '()Lcom/groupbyinc/flux/rest/RestStatus; v w
M x getStatus o(Lcom/groupbyinc/flux/rest/RestStatus;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponseStatus; z {
| setStatus ?(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponseStatus;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpResponse; ~ u ?
getCorsConfig 9()Lcom/groupbyinc/flux/http/netty4/cors/Netty4CorsConfig; ? ?
B ? 6com/groupbyinc/flux/http/netty4/cors/Netty4CorsHandler ? setCorsResponseHeaders ?(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpRequest;Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;Lcom/groupbyinc/flux/http/netty4/cors/Netty4CorsConfig;)V ? ?
? ? headers C()Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaders; ? ? _ ? X-Opaque-Id ? ?com/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaders ? get &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? setHeaderField i(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;Ljava/lang/String;Ljava/lang/String;)V ? ?
? java/lang/String ?
getHeaders ()Ljava/util/Map; ? ?
M ? addCustomHeaders T(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;Ljava/util/Map;)V ? ?
? 8com/groupbyinc/flux/common/util/concurrent/ThreadContext ? getResponseHeaders ? ?
? ? +com/groupbyinc/flux/common/lease/Releasable ? bytesOutputOrNull ? >
? Ccom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaderNames ? CONTENT_TYPE 3Lcom/groupbyinc/flux/common/netty/util/AsciiString; ? ? ? ? 1com/groupbyinc/flux/common/netty/util/AsciiString ? toString ()Ljava/lang/String; ? ?
? ? contentType ? ?
M ? j(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;Ljava/lang/String;Ljava/lang/String;Z)V ? ?
? CONTENT_LENGTH ? ? ? ?
readableBytes ()I ? ?
s ? valueOf (I)Ljava/lang/String; ? ?
? ?
addCookies E(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;)V ? ?
? 0com/groupbyinc/flux/common/netty/channel/Channel ?
newPromise ;()Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; ? ? ? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? <(Lcom/groupbyinc/flux/common/netty/util/concurrent/Future;)V ? lambda$sendResponse$0 m(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/netty/util/concurrent/Future;)V ? ?
? ? operationComplete {(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener; ? ? ? 7com/groupbyinc/flux/common/netty/channel/ChannelPromise ? addListener ?(Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener;)Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; ? ? ? ? /com/groupbyinc/flux/common/bytes/BytesReference ? lambda$sendResponse$1 ? ?
? ? }(Lcom/groupbyinc/flux/http/netty4/Netty4HttpChannel;)Lcom/groupbyinc/flux/common/netty/util/concurrent/GenericFutureListener; ? ? ? isCloseConnection ()Z ? ?
? >com/groupbyinc/flux/common/netty/channel/ChannelFutureListener ? CLOSE @Lcom/groupbyinc/flux/common/netty/channel/ChannelFutureListener; ? ? ? ?com/groupbyinc/flux/http/netty4/pipelining/HttpPipelinedRequest createHttpResponse ?(Lcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpResponse;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/http/netty4/pipelining/HttpPipelinedResponse;
java/lang/Object
writeAndFlush ?(Ljava/lang/Object;Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise;)Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture;
? close ()V ? 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput
release ?
java/lang/Throwable resp FLcom/groupbyinc/flux/common/netty/handler/codec/http/FullHttpResponse; msg Ljava/lang/Object; promise 9Lcom/groupbyinc/flux/common/netty/channel/ChannelPromise; response 'Lcom/groupbyinc/flux/rest/RestResponse; buffer opaque Ljava/lang/String; 1Lcom/groupbyinc/flux/common/bytes/BytesReference; releaseContent releaseBytesStreamOutput BLcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse; headerField value @com/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse+, ? contains (Ljava/lang/String;)Z./
?0 add g(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaders;23
?4 override resetCookies7 < B8 COOKIE: ? ?; ,(Ljava/lang/CharSequence;)Ljava/lang/String; ?=
?> Ncom/groupbyinc/flux/common/netty/handler/codec/http/cookie/ServerCookieDecoder@ STRICT PLcom/groupbyinc/flux/common/netty/handler/codec/http/cookie/ServerCookieDecoder;BC AD decode #(Ljava/lang/String;)Ljava/util/Set;FG
AH
java/util/SetJ isEmptyL ?KM
SET_COOKIEO ? ?P Ncom/groupbyinc/flux/common/netty/handler/codec/http/cookie/ServerCookieEncoderR PLcom/groupbyinc/flux/common/netty/handler/codec/http/cookie/ServerCookieEncoder;BT SU encode ((Ljava/util/Collection;)Ljava/util/List;WX
SY set o(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaders;[\
?] cookies TLjava/util/Set; Ljava/util/Set; cookieString entrySet ()Ljava/util/Set;cd e iterator ()Ljava/util/Iterator;ghKi java/util/Iteratork hasNextm ?ln next ()Ljava/lang/Object;pqlr getValuetq u java/util/Listwxi getKeyzq { headerValue headerEntry MLjava/util/Map$Entry;>; Ljava/util/Map$Entry;
customHeaders GLjava/util/Map;>; isHttp10 protocolVersion C()Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion;?? _? ?com/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion? HTTP_1_0 ALcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion;?? ??
? f? ?
? Dcom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaderValues? ? ? ??
CONNECTION? ? ?? contentEqualsIgnoreCase (Ljava/lang/CharSequence;)Z??
??
KEEP_ALIVE? ? ?? http10 Fcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponseStatus? OK? ?? Kcom/groupbyinc/flux/common/netty/handler/codec/http/DefaultFullHttpResponse? ?(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpVersion;Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponseStatus;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)V ?
?? u ?
Keep-Alive? m(Ljava/lang/CharSequence;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpHeaders;2?
?? HTTP_1_1?? ?? ? INTERNAL_SERVER_ERROR? ?? getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?? ? %Lcom/groupbyinc/flux/rest/RestStatus; java/lang/Exception? f 9Lcom/groupbyinc/flux/common/netty/util/concurrent/Future; Too Many Requests? (ILjava/lang/String;)V ?
?? ? java/util/EnumMap? #com/groupbyinc/flux/rest/RestStatus? (Ljava/lang/Class;)V ?
?? CONTINUE?? ??? ?? put 6(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;??
?? SWITCHING_PROTOCOLS?? ??? ???? ?? CREATED?? ??? ?? ACCEPTED?? ??? ?? NON_AUTHORITATIVE_INFORMATION?? ??? ??
NO_CONTENT?? ??? ??
RESET_CONTENT?? ??? ?? PARTIAL_CONTENT?? ??? ?? MULTI_STATUS?? ?? MULTIPLE_CHOICES? ? ? MOVED_PERMANENTLY? ? ? FOUND? ? ? SEE_OTHER? ? ? NOT_MODIFIED? ? ? USE_PROXY? ? ? TEMPORARY_REDIRECT? ? ?" BAD_REQUEST$? ?%$ ?' UNAUTHORIZED)? ?*) ?, PAYMENT_REQUIRED.? ?/. ?1 FORBIDDEN3? ?43 ?6 NOT_FOUND8? ?98 ?; METHOD_NOT_ALLOWED=? ?>= ?@ NOT_ACCEPTABLEB? ?CB ?E PROXY_AUTHENTICATIONG? ?H PROXY_AUTHENTICATION_REQUIREDJ ?K REQUEST_TIMEOUTM? ?NM ?P CONFLICTR? ?SR ?U GONEW? ?XW ?Z LENGTH_REQUIRED\? ?]\ ?_ PRECONDITION_FAILEDa? ?ba ?d REQUEST_ENTITY_TOO_LARGEf? ?gf ?i REQUEST_URI_TOO_LONGk? ?lk ?n UNSUPPORTED_MEDIA_TYPEp? ?qp ?s REQUESTED_RANGE_NOT_SATISFIEDu? ?v REQUESTED_RANGE_NOT_SATISFIABLEx ?y EXPECTATION_FAILED{? ?|{ ?~ UNPROCESSABLE_ENTITY?? ?? LOCKED?? ?? FAILED_DEPENDENCY?? ?? ? ???? ?? NOT_IMPLEMENTED?? ??? ?? BAD_GATEWAY?? ??? ?? SERVICE_UNAVAILABLE?? ??? ?? GATEWAY_TIMEOUT?? ??? ?? HTTP_VERSION_NOT_SUPPORTED?? ??? ?? java/util/Collections? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;??
?? map ?Ljava/util/EnumMap; Ljava/util/EnumMap; Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Lcom/groupbyinc/flux/common/netty/handler/codec/http/HttpResponse;Ljava/util/Map;>;)V
Exceptions BootstrapMethods
SourceFile InnerClasses 0
? ? ? (*,? #*+? %*,? +? -*,? 1? 3*-? 5*? 7? ? > ( 8 9 ( ( . : ( ( ; <