com.groupbyinc.flux.rest.BytesRestResponse.class Maven / Gradle / Ivy
???? 4{ *com/groupbyinc/flux/rest/BytesRestResponse %com/groupbyinc/flux/rest/RestResponse BytesRestResponse.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser
Token Bcom/groupbyinc/flux/common/xcontent/ToXContent$DelegatingMapParams DelegatingMapParams %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup TEXT_CONTENT_TYPE Ljava/lang/String; text/plain; charset=UTF-8 STATUS status %Lcom/groupbyinc/flux/rest/RestStatus; content 1Lcom/groupbyinc/flux/common/bytes/BytesReference; contentType SUPPRESSED_ERROR_LOGGER !Lorg/apache/logging/log4j/Logger; ](Lcom/groupbyinc/flux/rest/RestStatus;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)V 3com/groupbyinc/flux/common/xcontent/XContentBuilder ' 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; " )
( * 0com/groupbyinc/flux/common/xcontent/XContentType , mediaType ()Ljava/lang/String; . /
- 0 /com/groupbyinc/flux/common/bytes/BytesReference 2 bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference; 4 5
3 6 k(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;)V % 8
9 this ,Lcom/groupbyinc/flux/rest/BytesRestResponse; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; :(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;)V +com/groupbyinc/flux/common/bytes/BytesArray @ (Ljava/lang/String;)V % B
A C L(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;Ljava/lang/String;)V <(Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;[B)V ([B)V % G
A H [B ()V % K
L N ! P " R >(Lcom/groupbyinc/flux/rest/RestChannel;Ljava/lang/Exception;)V java/io/IOException U $com/groupbyinc/flux/ExceptionsHelper W <(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/rest/RestStatus; Y
X Z c(Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/Exception;)V % \
] channel &Lcom/groupbyinc/flux/rest/RestChannel; e Ljava/lang/Exception; java/lang/Throwable c build ?(Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/Exception;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e f
g close i K
( j $com/groupbyinc/flux/rest/RestChannel l #com/groupbyinc/flux/rest/RestStatus n java/lang/Exception p
addSuppressed (Ljava/lang/Throwable;)V r s
d t *com/groupbyinc/flux/ElasticsearchException v copyHeaders /(Lcom/groupbyinc/flux/ElasticsearchException;)V x y
z 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; '()Lcom/groupbyinc/flux/rest/RestStatus; request (()Lcom/groupbyinc/flux/rest/RestRequest; ~ m ? error_trace ? paramAsBoolean (Ljava/lang/String;Z)Z ? ? ? rest.exception.stacktrace.skip ? false ? java/util/Collections ? singletonMap 5(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map; ? ?
? ? I(Ljava/util/Map;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V % ?
? "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; ? lambda$build$0 :(Lcom/groupbyinc/flux/rest/RestChannel;)Ljava/lang/Object; ? ?
? ? get P(Lcom/groupbyinc/flux/rest/RestChannel;)Lorg/apache/logging/log4j/util/Supplier; ? ? ? getStatus ()I ? ?
o ? # $ ? org/apache/logging/log4j/Logger ? debug @(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? ? ? ? &org/apache/logging/log4j/util/Supplier ? warn ? ? ? ? newErrorBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ? m ? startObject ? ?
( ? detailedErrorsEnabled ()Z ? ? m ? generateFailureXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Exception;Z)V ? ?
w ? field J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
( ? endObject ? ?
( ? messageSupplier +Lorg/apache/logging/log4j/util/Supplier<*>; (Lorg/apache/logging/log4j/util/Supplier; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; createSimpleErrorResponse ?(Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/String;)Lcom/groupbyinc/flux/rest/BytesRestResponse; error ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
( ? % &
? errorMessage errorFromXContent h(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/ElasticsearchStatusException; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? ? ? S(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/function/Supplier; ? ? ? 7com/groupbyinc/flux/common/xcontent/XContentParserUtils ? ensureExpectedToken ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/util/function/Supplier;)V ? ?
? ? java/lang/String ?
END_OBJECT ? ? ?
FIELD_NAME ? currentName / equals (Ljava/lang/Object;)Z
? VALUE_NUMBER ? intValue ? fromCode ((I)Lcom/groupbyinc/flux/rest/RestStatus;
o failureFromXContent b(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/ElasticsearchException;
w java/lang/IllegalStateException FFailed to parse elasticsearch status exception: no exception was found
C 0com/groupbyinc/flux/ElasticsearchStatusException
getMessage /
w! getCause ()Ljava/lang/Throwable;#$
w% java/lang/Object' b(Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestStatus;Ljava/lang/Throwable;[Ljava/lang/Object;)V %)
*
getHeaderKeys ()Ljava/util/Set;,-
w.
java/util/Set0 iterator ()Ljava/util/Iterator;2314 java/util/Iterator6 hasNext8 ?79 next; ?7< getHeader $(Ljava/lang/String;)Ljava/util/List;>?
w@ addHeader %(Ljava/lang/String;Ljava/util/List;)VBC
D getMetadataKeysF-
wG getMetadataI?
wJ addMetadataLC
M header metadata parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token exception ,Lcom/groupbyinc/flux/ElasticsearchException; currentFieldName result 2Lcom/groupbyinc/flux/ElasticsearchStatusException; 5org/apache/logging/log4j/message/ParameterizedMessageY path: {}, params: {}[ $com/groupbyinc/flux/rest/RestRequest] rawPath_ /
^` ()Ljava/util/Map; ?b
^c 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V %e
Zf rest.suppressedi 2com/groupbyinc/flux/common/logging/ESLoggerFactoryk getLogger 5(Ljava/lang/String;)Lorg/apache/logging/log4j/Logger;mn
lo
ConstantValue Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable LocalVariableTypeTable BootstrapMethods
SourceFile InnerClasses ! q q ! " # $ % &