de.tsl2.nano.core.http.EHttpClient.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.terminal Show documentation
Show all versions of tsl2.nano.terminal Show documentation
TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)
???? 4v
X ?
? X ?
? ?
? ? ?
? ?
? ?
? ? ?
? X ? ? ?
? ?
? ?
? ? ?
X ? ?
X ? ? ?
?
? ? ?
? ? ?
? ? ? ?
? ?
? ?
?
X ? ?
' ?
? ? ? ?
? ?
X ?
X ? X ? X ? ?
X ?
? ?
? ?
X ?
X ?
?
?
X ?
? ? ? ? ?
: ? ? ? ? ? ? ? ?
?
? ?
X
?
T ?
X LOG Lorg/apache/commons/logging/Log; SEPARATORS_REST [C SEPARATORS_QUERY useRESTSeparators Z (Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this $Lde/tsl2/nano/core/http/EHttpClient; wsUrl Ljava/lang/String; (Ljava/lang/String;Z)V
multipartData 8([Ljava/lang/Object;)Lde/tsl2/nano/core/http/HttpClient; i I boundary
boundaryBytes [B finishBoundaryBytes out Ljava/io/OutputStream; e Ljava/lang/Exception; chunks [Ljava/lang/Object;
StackMapTable y ? r ? data _(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient; o name value t(Ljava/io/OutputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient; n buffer in Ljava/io/InputStream; fileName ? restJSON A(Ljava/lang/String;[Ljava/lang/Object;)Ljavax/json/JsonStructure; url args jsonStr get 5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; Ljava/util/Map; 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; rest_ getParameterSeparators ()[C ^ ;(Ljava/lang/String;[C[Ljava/lang/Object;)Ljava/lang/String;
separators rest o(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; method contenttype q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[C[Ljava/lang/Object;)Ljava/lang/String; ? path v Ljava/lang/Object; k map margs parameter :(Ljava/lang/String;Z[Ljava/lang/Object;)Ljava/lang/String; &Ljava/io/UnsupportedEncodingException; c C buf Ljava/lang/StringBuilder; ? run ()V
SourceFile EHttpClient.java b k b c ` a!"#$% java/lang/StringBuilder b ? --&'
!de/tsl2/nano/core/http/HttpClient UTF-8()*+ Content-Type -multipart/form-data; charset=UTF-8; boundary=,-./012 java/lang/String ? ? java/io/InputStream ? ? "java/lang/IllegalArgumentException ,chunks must be of type String or InputStream34 java/lang/Exception567 &Content-Disposition: form-data; name="89: "
"; filename=";3<3=>? ? ? java/io/StringReader@ABC>DEFG ? ? ? ? ] ^ _ ^ GET ? ?HIJ ? ?KL(MNO>PQR java/util/LinkedHashMapST b0UVWXYZ[\] ?^_9`ab { }cde ? ?fghi&jklmfn &o$p $java/io/UnsupportedEncodingExceptionqr java/lang/IllegalStateException variables not filled: ? ? "de/tsl2/nano/core/http/EHttpClientstu [ \ java/io/OutputStream
java/util/Map java/util/Iterator java/io/Serializable java/util/UUID
randomUUID ()Ljava/util/UUID; toString ()Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getBytes (Ljava/lang/String;)[B http Ljava/net/HttpURLConnection; java/net/HttpURLConnection setRequestProperty '(Ljava/lang/String;Ljava/lang/String;)V setChunkedStreamingMode (I)V getOutputStream ()Ljava/io/OutputStream; write ([B)V "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; java/net/URLEncoder encode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; de/tsl2/nano/core/util/FileUtil /(Ljava/io/InputStream;Ljava/io/OutputStream;Z)J ([BII)V read ([B)I javax/json/Json createReader )(Ljava/io/Reader;)Ljavax/json/JsonReader; javax/json/JsonReader ()Ljavax/json/JsonStructure; de/tsl2/nano/core/util/MapUtil asArray $(Ljava/util/Map;)[Ljava/lang/Object; getURL ()Ljava/net/URL; java/net/URL createHttpConnection 7(Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient; ()[B send =(Ljava/lang/String;Ljava/lang/String;[B)Ljava/io/InputStream; :(Ljava/io/InputStream;Ljava/lang/Class;)Ljava/lang/Object; asMap $([Ljava/lang/Object;)Ljava/util/Map; size ()I keySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/Object &(Ljava/lang/String;)Ljava/lang/String; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; !de/tsl2/nano/core/util/StringUtil insertProperties Y(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; valueOf (C)Ljava/lang/String; endsWith (Ljava/lang/String;)Z (C)Ljava/lang/StringBuilder; indexOf (Ljava/lang/String;)I java/lang/Character (C)Ljava/lang/Character; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; &(Ljava/lang/Object;)Ljava/lang/String; contains (Ljava/lang/CharSequence;)Z de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! X [ \ ] ^ _ ^ ` a b c d ? *+? ? e
2 3 f g h i j b k d Q *+? *? ? e : ;
<