All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.core.http.EHttpClient.class Maven / Gradle / Ivy

Go to download

TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)

There is a newer version: 2.5.2
Show newest version
????=?
"de/tsl2/nano/core/http/EHttpClient(Ljava/lang/String;Z)V
	
!de/tsl2/nano/core/http/HttpClient(Ljava/lang/String;)V	
useRESTSeparatorsZ
java/util/UUID
randomUUID()Ljava/util/UUID;
toString()Ljava/lang/String;makeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;UTF-8
!"#$%java/lang/StringgetBytes(Ljava/lang/String;)[B	()*httpLjava/net/HttpURLConnection;,Content-Type
/0123java/net/HttpURLConnectionsetRequestProperty'(Ljava/lang/String;Ljava/lang/String;)V
/567setChunkedStreamingMode(I)V
/9:;getOutputStream()Ljava/io/OutputStream;
=>?data_(Ljava/io/OutputStream;Ljava/lang/String;Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient;Ajava/io/InputStream
C>Dt(Ljava/io/OutputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient;F"java/lang/IllegalArgumentExceptionH,chunks must be of type String or InputStream
E	
KLMNOjava/io/OutputStreamwrite([B)VQjava/lang/Exception
STUVW"de/tsl2/nano/core/ManagedExceptionforward,(Ljava/lang/Throwable;)Ljava/lang/Throwable;
YZ[\]java/net/URLEncoderencode8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;`]
bcdNede/tsl2/nano/core/util/FileUtil/(Ljava/io/InputStream;Ljava/io/OutputStream;Z)J
KgNh([BII)V
@jklread([B)In

pqrget9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;tjava/io/StringReader
s	
wxyz{javax/json/JsoncreateReader)(Ljava/io/Reader;)Ljavax/json/JsonReader;}~k?javax/json/JsonReader()Ljavax/json/JsonStructure;
?????de/tsl2/nano/core/util/MapUtilasArray$(Ljava/util/Map;)[Ljava/lang/Object;
???getParameterSeparators()[C
?q?;(Ljava/lang/String;[C[Ljava/lang/Object;)Ljava/lang/String;	???SEPARATORS_REST[C	???SEPARATORS_QUERY?GET
???restq(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[C[Ljava/lang/Object;)Ljava/lang/String;
/???getURL()Ljava/net/URL;
??java/net/URL`
???	parameter
???createHttpConnection7(Ljava/lang/String;)Lde/tsl2/nano/core/http/HttpClient;
!?$?()[B
???send=(Ljava/lang/String;Ljava/lang/String;[B)Ljava/io/InputStream;
?k?:(Ljava/io/InputStream;Ljava/lang/Class;)Ljava/lang/Object;
????asMap$([Ljava/lang/Object;)Ljava/util/Map;?java/util/LinkedHashMap?????
java/util/Mapsize()I
??7????keySet()Ljava/util/Set;?????
java/util/Setiterator()Ljava/util/Iterator;?????java/util/IteratorhasNext()Z????next()Ljava/lang/Object;??q?&(Ljava/lang/Object;)Ljava/lang/Object;
??java/lang/Object
Y?\????put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?{?}
?????!de/tsl2/nano/core/util/StringUtilinsertPropertiesY(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?java/lang/StringBuilder
??rpath
?	
!???valueOf(C)Ljava/lang/String;
!???endsWith(Ljava/lang/String;)Z??'(CLjava/lang/String;)Ljava/lang/String;
???indexOf(Ljava/lang/String;)I
?java/lang/Character(C)Ljava/lang/Character;
?	
&(Ljava/lang/Object;)Ljava/lang/String;
<(Ljava/io/Serializable;Ljava/lang/String;)Ljava/lang/String;
?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;$java/io/UnsupportedEncodingException
?
!contains(Ljava/lang/CharSequence;)Zjava/lang/IllegalStateException
	
 run()V
"#$%& de/tsl2/nano/core/log/LogFactorygetLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;	()*LOG Lorg/apache/commons/logging/Log;CodeLineNumberTableLocalVariableTablethis$Lde/tsl2/nano/core/http/EHttpClient;wsUrlLjava/lang/String;
multipartData8([Ljava/lang/Object;)Lde/tsl2/nano/core/http/HttpClient;iIboundary
boundaryBytes[BfinishBoundaryBytesoutLjava/io/OutputStream;eLjava/lang/Exception;chunks[Ljava/lang/Object;
StackMapTable?8onamevaluenbufferinLjava/io/InputStream;fileNamerestJSONA(Ljava/lang/String;[Ljava/lang/Object;)Ljavax/json/JsonStructure;urlargsjsonStr5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;Ljava/util/Map;rest_?
separatorso(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;methodcontenttypevLjava/lang/Object;kmapmargs:(Ljava/lang/String;Z[Ljava/lang/Object;)Ljava/lang/String;&Ljava/io/UnsupportedEncodingException;cCbufLjava/lang/StringBuilder;djava/io/Serializable
SourceFileEHttpClient.javaBootstrapMethodsj
klmn$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;p--
r----t.multipart/form-data; charset=UTF-8; boundary=v,Content-Disposition: form-data; name=""

x:Content-Disposition: form-data; name=""; filename=""

z|variables not filled: InnerClasses%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup!)*????+?*+??,
23-./01+Q*+?*??,:;
<- ./01?23+?Ӹ?M,?? N,?&? :*?'+,?-?.*?'?4*?'?8:6+??z+`2?!?*+2?!+`2?!??@W	?CA!BBK,,	OK?A!BBKKB??	AP>?+?%,?X?^:+? ?J?:?RW*?P,`a
becd#f->
C1<=%./%:;%D1%E1@[P>D+Ba,?X?X?_:+? ?J-+?aX?:6?+?f-?i6???+m? ?J?:?RW*?TWP,6
k
lmn&o-p5q>pIrTuWsYt_v-\	0F5@C1-'G8Y<=a./a:;aD1aHIaJ1@)?0!B??
K!@!P?KL+d*+,?oN?sY-?u?v?|?,
z{-*./M1N?O1qP+H
*+,???o?,?- 
./
M1
NQ?qr+I*+*??,???,?- ./M1N??Rr+I*+*??,???,?- ./M1N???+H*??	??????,?-./@
BS?q?+T*+?,-???,?-*./M1T?N???U+l*+,-*?????,?->./M1V1W1>1N????+?8***?'????+??????,-??????!???!?,?-H8./8M18V18W18>18T?8N?@U?+!!!!SA!!?!!!!SA!!B??r+?`+??M??Y,????N,????:???/??:,??:?-?ٸܹ?W???*-???,"???3?=?B?S?V?->=XY3 ZY`M1`N?[[QM\Q@? ???2???]+q*?	?????,???,?- M1?N?@K!?!A!S???+????Y*,???N,??*+4?????+466,???,?d?.,`2?-+4,`2?ٸܺ????	??F-???,2??X??W?:?RWp?	+4?+46???-?K*?1b?e??,>?
??'?1?_?b?e???????????????-H?<^*?45'?_`?M1?T??N?
?ab@<
?"?B?4M??!SA??cWB? +m.*?'???????Y*?'???????*??,??)?-?-../@)e +S3?!?'?Y/UY/UY/U???Y?UY=UY&U???,'()fgh,ioiqisiuiwiyi{}
~??




© 2015 - 2024 Weber Informatics LLC | Privacy Policy