com.groupbyinc.flux.client.Request.class Maven / Gradle / Ivy
???? 3 ? "com/groupbyinc/flux/client/Request java/lang/Object Request.java 1com/groupbyinc/flux/client/RequestOptions$Builder )com/groupbyinc/flux/client/RequestOptions Builder method Ljava/lang/String; endpoint
parameters Ljava/util/Map; 5Ljava/util/Map; entity ,Lcom/groupbyinc/flux/common/http/HttpEntity; options +Lcom/groupbyinc/flux/client/RequestOptions; '(Ljava/lang/String;Ljava/lang/String;)V ()V
java/util/HashMap
DEFAULT " method cannot be null $ java/util/Objects & requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ( )
' * java/lang/String , . endpoint cannot be null 0
2 this $Lcom/groupbyinc/flux/client/Request; getMethod ()Ljava/lang/String; getEndpoint addParameter !url parameter name cannot be null :
java/util/Map < containsKey (Ljava/lang/Object;)Z > ? = @ "java/lang/IllegalArgumentException B java/lang/StringBuilder D
E url parameter [ G append -(Ljava/lang/String;)Ljava/lang/StringBuilder; I J
E K ] has already been set to [ M get &(Ljava/lang/Object;)Ljava/lang/Object; O P = Q ] S toString U 7
E V (Ljava/lang/String;)V X
C Y put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [ \ = ] name value
getParameters ()Ljava/util/Map; java/util/Collections c unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; e f
d g setEntity /(Lcom/groupbyinc/flux/common/http/HttpEntity;)V k
setJsonEntity 8com/groupbyinc/flux/common/http/nio/entity/NStringEntity n 2com/groupbyinc/flux/common/http/entity/ContentType p APPLICATION_JSON 4Lcom/groupbyinc/flux/common/http/entity/ContentType; r s q t I(Ljava/lang/String;Lcom/groupbyinc/flux/common/http/entity/ContentType;)V v
o w i j
y getEntity .()Lcom/groupbyinc/flux/common/http/HttpEntity;
setOptions .(Lcom/groupbyinc/flux/client/RequestOptions;)V options cannot be null 6(Lcom/groupbyinc/flux/client/RequestOptions$Builder;)V build -()Lcom/groupbyinc/flux/client/RequestOptions; ? ?
? 3Lcom/groupbyinc/flux/client/RequestOptions$Builder;
getOptions Request{ ? method=' ? (C)Ljava/lang/StringBuilder; I ?
E ? , endpoint=' ? isEmpty ()Z ? ? = ? , params= ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; I ?
E ? , entity= ?
, options= ? b Ljava/lang/StringBuilder; equals getClass ()Ljava/lang/Class; ? ?
? ? ?
- ? = ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
' ?
? obj Ljava/lang/Object; other hashCode ()I hash ([Ljava/lang/Object;)I ? ?
' ? Signature Code LocalVariableTable LineNumberTable
StackMapTable 7()Ljava/util/Map;
SourceFile InnerClasses 1
? ? ? 1*? *? Y? ? *? !? #*+%? +? -? /*,1? +? -? 3? ? 1 4 5 1 1
? 0 &