com.groupbyinc.flux.rest.AbstractRestChannel.class Maven / Gradle / Ivy
???? 4 ? ,com/groupbyinc/flux/rest/AbstractRestChannel java/lang/Object $com/groupbyinc/flux/rest/RestChannel AbstractRestChannel.java %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup INCLUDE_FILTER Ljava/util/function/Predicate; 2Ljava/util/function/Predicate; EXCLUDE_FILTER request &Lcom/groupbyinc/flux/rest/RestRequest; detailedErrorsEnabled Z format Ljava/lang/String;
filterPath pretty human bytesOut 8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; *(Lcom/groupbyinc/flux/rest/RestRequest;Z)V ()V
! # Accept & $com/groupbyinc/flux/rest/RestRequest ( header &(Ljava/lang/String;)Ljava/lang/String; * +
) , param 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; . /
) 0 2 filter_path 4 6 paramAsBoolean (Ljava/lang/String;Z)Z 9 :
) ; = @ this .Lcom/groupbyinc/flux/rest/AbstractRestChannel;
newBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException F getXContentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; H I
) J j(Lcom/groupbyinc/flux/common/xcontent/XContentType;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; D L
M newErrorBuilder %Lcom/groupbyinc/flux/common/Nullable; 0com/groupbyinc/flux/common/xcontent/XContentType Q fromMediaTypeOrFormat F(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentType; S T
R U JSON 2Lcom/groupbyinc/flux/common/xcontent/XContentType; W X R Y java/util/Collections [ emptySet ()Ljava/util/Set; ] ^
\ _ "com/groupbyinc/flux/common/Strings a tokenizeByCommaToSet #(Ljava/lang/String;)Ljava/util/Set; c d
b e
java/util/Set g stream ()Ljava/util/stream/Stream; i j h k
m java/util/stream/Stream o filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; q r p s java/util/stream/Collectors u toSet ()Ljava/util/stream/Collector; w x
v y collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; { | p } "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; ? ?
? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? lambda$newBuilder$1 ? +
? ? + apply ()Ljava/util/function/Function; ? ? ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? p ? bytesOutput :()Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput; ? ?
? %com/groupbyinc/flux/common/io/Streams ? flushOnCloseStream f(Lcom/groupbyinc/flux/common/io/stream/BytesStream;)Lcom/groupbyinc/flux/common/io/stream/BytesStream; ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? 3com/groupbyinc/flux/common/xcontent/XContentFactory ? xContent b(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContent; ? ?
? ? e(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/io/OutputStream;Ljava/util/Set;Ljava/util/Set;)V ?
? ? prettyPrint ? E
? ? lfAtEnd ? E
? ? java/io/OutputStream ?
humanReadable 8(Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? filters #Ljava/util/Set; Ljava/util/Set; requestContentType useFiltering responseContentType includes excludes unclosableOutputStream Ljava/io/OutputStream; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? newBytesOutput ? ?
? 6com/groupbyinc/flux/common/io/stream/BytesStreamOutput ? reset ?
? ? bytesOutputOrNull
? (()Lcom/groupbyinc/flux/rest/RestRequest; ()Z java/lang/String ? substring (I)Ljava/lang/String; ? ?
? ? f lambda$static$0 (Ljava/lang/String;)Z charAt (I)C ? ?
? ? (Ljava/lang/Object;)Z ? ? ?
? ? ? test ()Ljava/util/function/Predicate; ? ? ? java/util/function/Predicate ? negate ? ? ? ? Signature Code LocalVariableTable LineNumberTable
Exceptions LocalVariableTypeTable
StackMapTable "RuntimeVisibleParameterAnnotations BootstrapMethods
SourceFile InnerClasses!
? ? ? ? @*? *+? "*? $*+%+'? -? 1? 3*+5? 1? 7*+8?