com.qcloud.Common.Request.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qcloud-java-sdk Show documentation
Show all versions of qcloud-java-sdk Show documentation
Tencent Cloud Open API SDK for Java
Copyright (C) Tencent Cloud
All Rights Reserved.
版权所有 (C)腾讯云
http://www.qcloud.com
The newest version!
???? 4?
? ? ? ? ? ? ?
? ?
? ? ? ?
? ????
?
? ?
? ? ?
? ? ? ? ?
? ? ? ?
? ?
? ? ?
. ? ?
? ? ?
? ?
? ?
?
? ?
? ?
? ?
? ? ? ? ? ? ? ? ? ? ? ?
. ?
? ? ? ?
? ? ? ?
4 ? ? ?
. ? ?
. ? ?
. ?
? ?
. ? ?
@ ?
. ? ?
. ?
@ ? ? ? ?
? ? ? ? ?
? ?
?
S
?
?
?
Y
\ ?
\
\
\ ?
.
g ?
g
? !"#$
q%
p&
p'
(
p)*+
,
)
?-./
?0
}&
|1
|2
|)3
?45 _?67
requestUrl Ljava/lang/String; rawResponse version connectTimeout I readTimeout ()V Code LineNumberTable
getRequestUrl ()Ljava/lang/String; getRawResponse generateUrl ?(Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
StackMapTable ? ? Signature ?(Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; send ?(Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ?(Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; sendRequest Y(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;8.9 ? ?:;#<= (Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
SourceFile Request.java ? ? ? ? ? ? SecretId>?@AB Nonce java/util/Random java/lang/IntegerCDEF TimestampGHIJEK
RequestClient ? ?LMN HmacSHA1 SignatureMethodOPQ ?
HmacSHA256R@ST java/lang/ExceptionU ? java/lang/StringBuilder https://VW GETXYZP ? ? 8[\]^_9`abc java/lang/StringdaVe utf-8fgh $java/io/UnsupportedEncodingException ]{"code":-2300,"location":"com.qcloud.Common.Request:129","message":"api sdk throw exception! " \"ij "}kD ---------------------------Elmnopq java/net/URL ?rs ? httpstuvw javax/net/ssl/HttpsURLConnection accept */*:xy
connection
Keep-Alive
user-agent 6Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1) ? ?z{ ? ?|{ POST java/net/HttpURLConnection}r~? Content-Type multipart/form-data; boundary= java/io/DataOutputStream?? ?? java/lang/StringBuffer
V? -- &Content-Disposition: form-data; name=" "
V???;?? java/io/File? ?????o =Content-Disposition: form-data; name="entityFile"; filename=" "
Content-Type:
java/io/DataInputStream java/io/FileInputStream ?? ??????? ?
-- --
? ?? ? java/io/BufferedReader java/io/InputStreamReader?? ??? ? ]{"code":-2800,"location":"com.qcloud.Common.Request:234","message":"api sdk throw exception! ]{"code":-2700,"location":"com.qcloud.Common.Request:225","message":"api sdk throw exception! SDK_JAVA_2.0.4 com/qcloud/Common/Request java/lang/Object
java/util/Map java/util/Iterator java/net/URLConnection java/io/OutputStream [B java/lang/Throwable java/util/TreeMap containsKey (Ljava/lang/Object;)Z put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; nextInt (I)I valueOf (I)Ljava/lang/Integer; java/lang/System currentTimeMillis ()J java/lang/Long (J)Ljava/lang/Long; com/qcloud/Common/Sign makeSignPlainText ](Ljava/util/TreeMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; get &(Ljava/lang/Object;)Ljava/lang/Object; toString equals sign J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; printStackTrace append -(Ljava/lang/String;)Ljava/lang/StringBuilder; buildParamStr1 9(Ljava/util/TreeMap;Ljava/lang/String;)Ljava/lang/String; remove keySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; isEmpty (C)Ljava/lang/StringBuilder; java/net/URLEncoder encode 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; indexOf (J)Ljava/lang/String; com/qcloud/Utilities/MD5 stringToMD5 &(Ljava/lang/String;)Ljava/lang/String; substring (II)Ljava/lang/String; (Ljava/lang/String;)V toLowerCase
startsWith (Ljava/lang/String;)Z openConnection ()Ljava/net/URLConnection; setRequestProperty '(Ljava/lang/String;Ljava/lang/String;)V setConnectTimeout (I)V setReadTimeout setRequestMethod setDoOutput (Z)V
setDoInput getOutputStream ()Ljava/io/OutputStream; (Ljava/io/OutputStream;)V ,(Ljava/lang/String;)Ljava/lang/StringBuffer; ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; getBytes ()[B write ([B)V getName getFileNameMap ()Ljava/net/FileNameMap; java/net/FileNameMap getContentTypeFor (Ljava/io/File;)V (Ljava/io/InputStream;)V read ([B)I ([BII)V close flush connect getInputStream ()Ljava/io/InputStream; (Ljava/io/Reader;)V readLine ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? *? ? ? ? ? ? ? ? ? # ? ? ? ? ? ? ' ? ? ? i ?*? ? *+? W*? ? *? Y? ? ?
? W*? ? *? m? ? W*? ? W*-? ::*? ? *? ? ? ? :*,? ? W?
:? ? Y? !"? #? #? #? $:-%? ? ? Y? !? #*-? &? #? $:? ? ? ? ? V - . 0 1 &