com.groupbyinc.flux.rest.RestRequest.class Maven / Gradle / Ivy
???? 4 $com/groupbyinc/flux/rest/RestRequest java/lang/Object 5com/groupbyinc/flux/common/xcontent/ToXContent$Params RestRequest.java +com/groupbyinc/flux/rest/RestRequest$Method Method .com/groupbyinc/flux/common/xcontent/ToXContent Params %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
TCHAR_PATTERN Ljava/util/regex/Pattern; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; params Ljava/util/Map; 5Ljava/util/Map; headers GLjava/util/Map;>; rawPath Ljava/lang/String; consumedParams Ljava/util/Set; #Ljava/util/Set; xContentType 7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; kLcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; _(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/lang/String;Ljava/util/Map;)V ()V $ &
' java/util/HashSet )
* ' , 5com/groupbyinc/flux/common/apache/lucene/util/SetOnce .
/ ' ! " 1 3 java/util/HashMap 5
6 ' java/lang/String 8 indexOf (I)I : ;
9 < > 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry @
java/util/Map B substring (II)Ljava/lang/String; D E
9 F "com/groupbyinc/flux/rest/RestUtils H decodeQueryString %(Ljava/lang/String;ILjava/util/Map;)V J K
I L N java/util/Collections P unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; R S
Q T V Content-Type X getAllHeaderValues $(Ljava/lang/String;)Ljava/util/List; Z [
\ parseContentType D(Ljava/util/List;)Lcom/groupbyinc/flux/common/xcontent/XContentType; ^ _
` set (Ljava/lang/Object;)V b c
/ d java/util/List f 0com/groupbyinc/flux/common/xcontent/XContentType h this &Lcom/groupbyinc/flux/rest/RestRequest; uri
pathEndPos I contentType $Ljava/util/List; Ljava/util/List; 2Lcom/groupbyinc/flux/common/xcontent/XContentType; n(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)V path method /()Lcom/groupbyinc/flux/rest/RestRequest$Method; ()Ljava/lang/String; w
x decodeComponent &(Ljava/lang/String;)Ljava/lang/String; z {
I |
hasContent ()Z content 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; requiredContent ~
? /com/groupbyinc/flux/ElasticsearchParseException ? request body is required ? ((Ljava/lang/String;[Ljava/lang/Object;)V $ ?
? ? get ()Ljava/lang/Object; ? ?
/ ? java/lang/IllegalStateException ? unknown content type ? (Ljava/lang/String;)V $ ?
? ? ? ?
? header &(Ljava/lang/Object;)Ljava/lang/Object; ? ? C ? isEmpty ? g ? (I)Ljava/lang/Object; ? ? g ? name values unmodifiableList "(Ljava/util/List;)Ljava/util/List; ? ?
Q ?
getHeaders ()Ljava/util/Map; getXContentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; %Lcom/groupbyinc/flux/common/Nullable; setXContentType 5(Lcom/groupbyinc/flux/common/xcontent/XContentType;)V getRemoteAddress ()Ljava/net/SocketAddress; getLocalAddress hasParam (Ljava/lang/String;)Z containsKey (Ljava/lang/Object;)Z ? ? C ? key param
java/util/Set ? add ? ? ? ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; defaultValue value ()Ljava/util/List; stream ()Ljava/util/stream/Stream; ? ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? java/util/stream/Stream ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? unconsumedParams keySet ()Ljava/util/Set; ? ? C ? "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; ? ?
? ? ? ? lambda$unconsumedParams$0 ? ?
? ? ? test F(Lcom/groupbyinc/flux/rest/RestRequest;)Ljava/util/function/Predicate; ? ? ? filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; ? ? ? ? paramAsFloat (Ljava/lang/String;F)F java/lang/NumberFormatException ? ? {
? java/lang/Float ?
parseFloat (Ljava/lang/String;)F ? ?
? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? ' !Failed to parse float parameter [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ] with value [ ] toString w
?
*(Ljava/lang/String;Ljava/lang/Throwable;)V $
?
e !Ljava/lang/NumberFormatException; F sValue
paramAsInt (Ljava/lang/String;I)I java/lang/Integer parseInt (Ljava/lang/String;)I
Failed to parse int parameter [ paramAsLong (Ljava/lang/String;J)J java/lang/Long parseLong (Ljava/lang/String;)J!"
# Failed to parse long parameter [% J paramAsBoolean (Ljava/lang/String;Z)Z length ()I*+
9, #com/groupbyinc/flux/common/Booleans. parseBoolean0)
/1 Z rawParam :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;05
/6 Ljava/lang/Boolean; paramAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; )com/groupbyinc/flux/common/unit/TimeValue; parseTimeValue |(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue;=>
<? +Lcom/groupbyinc/flux/common/unit/TimeValue; paramAsSize r(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; -com/groupbyinc/flux/common/unit/ByteSizeValueD parseBytesSizeValue ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue;FG
EH /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; paramAsStringArray :(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String; "com/groupbyinc/flux/common/StringsM splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String;OP
NQ [Ljava/lang/String; paramAsStringArrayOrEmptyIfAll EMPTY_ARRAYUS NVKL
X isAllOrWildcard ([Ljava/lang/String;)ZZ[
N\S getXContentRegistry =()Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;
contentParser 6()Lcom/groupbyinc/flux/common/xcontent/XContentParser; java/io/IOExceptionc ? ?
e xContent 0()Lcom/groupbyinc/flux/common/xcontent/XContent;gh
ii ,com/groupbyinc/flux/common/xcontent/XContentk createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;mnlo 1Lcom/groupbyinc/flux/common/bytes/BytesReference; applyContentParser /(Lcom/groupbyinc/flux/common/CheckedConsumer;)V java/lang/Throwabletab
v *com/groupbyinc/flux/common/CheckedConsumerx acceptz cy{ 2com/groupbyinc/flux/common/xcontent/XContentParser} close &~?
addSuppressed (Ljava/lang/Throwable;)V??
u? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; applyParser wLcom/groupbyinc/flux/common/CheckedConsumer; ,Lcom/groupbyinc/flux/common/CheckedConsumer; hasContentOrSourceParam source? ? ?
? contentOrSourceParamParser contentOrSourceParam ,()Lcom/groupbyinc/flux/common/collect/Tuple;??
? (com/groupbyinc/flux/common/collect/Tuple? v1? ?
?? v2? ?
?? /com/groupbyinc/flux/common/bytes/BytesReference? tuple ?Lcom/groupbyinc/flux/common/collect/Tuple; *Lcom/groupbyinc/flux/common/collect/Tuple; $withContentOrSourceParamParserOrNull?
?
withParser ,request body or source parameter is required? '(Ljava/lang/Object;Ljava/lang/Object;)V $?
?? source_content_type? 6source and source_content_type parameters are required? +com/groupbyinc/flux/common/bytes/BytesArray?
? ?
singletonList $(Ljava/lang/Object;)Ljava/util/List;??
Q? 'Unknown value for source_content_type [? typeParam bytes -Lcom/groupbyinc/flux/common/bytes/BytesArray; size?+ g? /only one Content-Type header should be provided?
? ? [ ]*;? split?P
9? /? ? java/util/regex/Pattern? matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;??
?? java/util/regex/Matcher? matches?
?? trim? w
9?
fromMediaType F(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentType;??
i? invalid Content-Type header [? empty Content-Type header? splitMediaType rawContentType elements contains? ? ?? p [a-zA-z0-9!#$%&'*+\-.\^_`|~]+? compile -(Ljava/lang/String;)Ljava/util/regex/Pattern;??
?? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/lang/String;Ljava/util/Map;>;)V ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;>;)V 8(Ljava/lang/String;)Ljava/util/List; I()Ljava/util/Map;>; RuntimeVisibleAnnotations 7()Ljava/util/Map; &()Ljava/util/List;
Exceptions z(Lcom/groupbyinc/flux/common/CheckedConsumer;)V ?()Lcom/groupbyinc/flux/common/collect/Tuple; X(Ljava/util/List;)Lcom/groupbyinc/flux/common/xcontent/XContentType; BootstrapMethods
SourceFile InnerClasses! ? ? ? ! " ? # ) $ % ? } ~*? (*? *Y? +? -*? /Y? 0? 2*+? 4? 6Y? 7:,?? =6? *,? ?? *,? G? ?,`? M*? O*-? U? W*Y? ]:? a:? *? 2? e? ? R ~ j k ~ ~ l ~ ( V 0 N m n h o q o ! r ? ~ ( V h o p ? F G = > H I ( J 0 K 5 L = N H O R Q X R ` S h T o U t V } X? # ? = A 9 C C ? * g i? ? $ s ? , P*? (*? *Y? +? -*? /Y? 0? 2*+? 4*,? O*-? ?*? U? W*Y? ]:? a:? *? 2? e? ? H P j k P P P t P : o q A ! r ? P P : o p ? 2 b = > c d $ e ) f 2 g : h A i F j O l? ? O A C 9 C g i ? ? u v l w w ? / *? ?? ? j k ? } t w ? 2 *? y? }? ? j k ? ? ~ ? ? ? ? ? r .*? ?? ? ?Y?? ? ??*? 2? ??
? ?Y?? ??*? ?? ? . j k ? ? ? ? ? ) ?? ? { ? ? (*? W+? ? ? gM,? ,? ? ? ,? ? ? 9?? ? ( j k ( ? ? q ? ? p ? ? ? ? &