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

com.vmware.vim.rest.RestClient.class Maven / Gradle / Ivy

The newest version!
????1\com/vmware/vim/rest/RestClientjava/lang/ObjectbaseUrlLjava/lang/String;()VCode
trustAllHttpsCertificates com/vmware/vim/rest/RestClient$1


 javax/net/ssl/HttpsURLConnectionsetDefaultHostnameVerifier#(Ljavax/net/ssl/HostnameVerifier;)Vjava/lang/ExceptionLineNumberTableLocalVariableTable9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
	!/
#%$java/lang/String&'endsWith(Ljava/lang/String;)Z
#)*+length()I
#-./	substring(II)Ljava/lang/String;1/mob3/mob/
567setLogin'(Ljava/lang/String;Ljava/lang/String;)Vthis Lcom/vmware/vim/rest/RestClient;	serverUrlusernamepasswordget&(Ljava/lang/String;)Ljava/lang/String;
ExceptionsAjava/io/IOException
CD>
preProcessUrl
FGH
getRawPage,(Ljava/lang/String;)Ljava/lang/StringBuffer;J
LNMjava/lang/StringBufferOPindexOf(Ljava/lang/String;)IR
LTOU(Ljava/lang/String;I)IW>
LYZ[replace.(IILjava/lang/String;)Ljava/lang/StringBuffer;]
L-urlStrsbLjava/lang/StringBuffer;startIobjPosend
#ghiequals(Ljava/lang/Object;)Zkjava/lang/StringBuilder
#mnovalueOf&(Ljava/lang/Object;)Ljava/lang/String;
jqr(Ljava/lang/String;)V
jtuvappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;
jxyztoString()Ljava/lang/String;|http
#~'
startsWith?https?/mob/?moid=?moid=?/mob/???moid=url?java/net/URL
?q
????openConnection()Ljava/net/URLConnection;?java/net/HttpURLConnection
???connect
????getInputStream()Ljava/io/InputStream;
???
readStream/(Ljava/io/InputStream;)Ljava/lang/StringBuffer;connLjava/net/HttpURLConnection;post?java/util/Hashtable
?
???5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;	Signature[(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String;?
Set-Cookie
???>getHeaderField?;
#N?POST
???rsetRequestMethod
????setDoOutput(Z)V
????
setDoInput?Cookie
???7setRequestProperty
????getOutputStream()Ljava/io/OutputStream;?java/io/OutputStreamWriter
???(Ljava/io/OutputStream;)V???
java/util/Map??keySet()Ljava/util/Set;???
java/util/Set??iterator()Ljava/util/Iterator;???java/util/Iterator??next()Ljava/lang/Object;??=?&(Ljava/lang/Object;)Ljava/lang/Object;?UTF-8
???java/net/URLEncoder??encode8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?=
???rwrite????hasNext()Z
???close?Method Invocation Result:
L?.?(I)Ljava/lang/String;
???#com/vmware/vim/rest/ResultConverter?>convert2XmlparaLjava/util/Map;getConcookiepostConosLjava/io/OutputStream;outLjava/io/OutputStreamWriter;keysLjava/util/Iterator;keyvalueisLjava/io/InputStream;
resultFlagresultLocalVariableTypeTable5Ljava/util/Map;(Ljava/util/Iterator;	getUrlStr
Ljava/io/BufferedReaderjava/io/InputStreamReader
(Ljava/io/InputStream;)V
(Ljava/io/Reader;)V
L uH
"#zreadLine
?inLjava/io/BufferedReader;lineStr)&java/security/NoSuchAlgorithmException+$java/security/KeyManagementException-javax/net/ssl/TrustManager/.com/vmware/vim/rest/RestClient$TrustAllManager
.123(Lcom/vmware/vim/rest/RestClient$TrustAllManager;)V4SSL
687javax/net/ssl/SSLContext9:getInstance.(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
6<=>initW([Ljavax/net/ssl/KeyManager;[Ljavax/net/ssl/TrustManager;Ljava/security/SecureRandom;)V
6@ABgetSocketFactory"()Ljavax/net/ssl/SSLSocketFactory;
DEFsetDefaultSSLSocketFactory#(Ljavax/net/ssl/SSLSocketFactory;)V
trustAllCerts[Ljavax/net/ssl/TrustManager;scLjavax/net/ssl/SSLContext;L com/vmware/vim/rest/RestClient$2
KNOG(Lcom/vmware/vim/rest/RestClient;Ljava/lang/String;Ljava/lang/String;)V
QSRjava/net/AuthenticatorTU
setDefault(Ljava/net/Authenticator;)Vuserpass
SourceFileRestClient.javaInnerClassesTrustAllManager!	J?
?
Y???W?
BE
CM:	?Z*?*?+ ?"?++?(d?,L?0+0?"?++?(d?,L?+2?"?++?(d?,L*+?*,-?4?.P<	RT!V*X9ZB\N_S`Ya*Z89Z:Z;Z<=>?@	?<*+?BL*+?EM,I?K>,Q?S6,`V?XW,\?S6,?^?egijk*l4n><89<_0`a)bc dc4ecD>	?+?+ ?f??jY*??l?p0?s?wL??+{?}?y+??}?p+??}??jY*??l?p+?s?wL?N+??}?!?jY*??l?p??s+?s?wL?'+??}??jY*??l?p2?s+?s?wL+?*
s
u'w9yB{[}d???????89??GH?@	b??Y+??????M,??*,???????? 89_
???>?	A
*+??Y??????
89
_?????	[*+?BL??Y+??????N-??-???:????,:??Y+??????:????????????:??Y??:,????:?L???#:	,	???#:
	??:	
??:
?jY	?l?p?s
?s?w???????????:	*	??:
?:
?K6
?(`??:

???~??
??????!?0?@?G?M?S?\?c?n?{?~?????????????????????????89_???!?@??c?n?{?	?=
	?0
?*
	?"`a
??bc
?{?z	/*???89???@	?2?LY?M?Y?Y+??N?
,?W-?!Y:???-?$,?????"?,?0?>2892
*`a%&')	'
?(*	r&?,K*?.Y?0S3?5L+*?;+???C??????"?%?!GHIJ67	r+N,:?KY*-?M?P?????489;<VWXYZ
K.[