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

com.groupbyinc.flux.common.http.client.HttpDownloadHelper$GetThread.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3MCcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$GetThreadjava/lang/ThreadHttpDownloadHelper.javaJcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress9com/groupbyinc/flux/common/http/client/HttpDownloadHelperDownloadProgress	GetThreadsourceLjava/net/URL;destLjava/nio/file/Path;hasTimestampZ	timestampJprogressLLcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;successioexceptionLjava/io/IOException;isLjava/io/InputStream;osLjava/io/OutputStream;
connectionLjava/net/URLConnection;redirectionsIthis$0;Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;?(Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;Ljava/net/URL;Ljava/nio/file/Path;ZJLcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$DownloadProgress;)V!"	%()V#'
(	*	,	.	0 	2
	4	6	8	:	<thisELcom/groupbyinc/flux/common/http/client/HttpDownloadHelper$GetThread;htprunjava/io/IOExceptionDget()ZFG
HioexopenConnection((Ljava/net/URL;)Ljava/net/URLConnection;KL
M	OdownloadFileQG
R
access$000>(Lcom/groupbyinc/flux/common/http/client/HttpDownloadHelper;)ZTU
	VupdateTimeStampX'
YdownloadSucceededredirectionAllowed(Ljava/net/URL;Ljava/net/URL;)Z'More than 5 times redirected, giving up^(Ljava/lang/String;)V#`
EamessageLjava/lang/String;aSourceaDestjava/net/URLg()Ljava/net/URLConnection;Ki
hjjava/net/URLConnectionlsetIfModifiedSince(J)Vno
mphttpsrgetProtocol()Ljava/lang/String;tu
hvjava/lang/StringxequalsIgnoreCase(Ljava/lang/String;)Zz{
y|getUserInfo~u
h"com/groupbyinc/flux/common/Strings?
isNullOrEmpty?{
??'Basic auth is only supported for HTTPS!?!java/nio/charset/StandardCharsets?UTF_8Ljava/nio/charset/Charset;??	??getBytes(Ljava/nio/charset/Charset;)[B??
y?!com/groupbyinc/flux/common/Base64?encodeBytes([B)Ljava/lang/String;??
??
Authorization?java/lang/StringBuilder?
?(Basic ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??toString?u
??setRequestProperty'(Ljava/lang/String;Ljava/lang/String;)V??
m?java/net/HttpURLConnection?setInstanceFollowRedirects(Z)V??
??setUseCaches??
m?setConnectTimeout(I)V??
m?
ES-Version?com/groupbyinc/flux/Version?CURRENTLcom/groupbyinc/flux/Version;??	??
??
ES-Build-Hash?com/groupbyinc/flux/Build?Lcom/groupbyinc/flux/Build;??	??	hashShort?u
??
User-Agent?elasticsearch-plugin-manager?connect?'
m?getResponseCode()I??
??Location?getHeaderField&(Ljava/lang/String;)Ljava/lang/String;??
??
ha\]
?getLastModified()J??
??HTTP Authorization failure?	basicAuthnewLocationnewURLhttpConnectionLjava/net/HttpURLConnection;responseCodelastModifiedisSecureProcotol
isAuthInfoSetjava/io/FileNotFoundException?getInputStream()Ljava/io/InputStream;??
m?java/nio/file/OpenOption?java/nio/file/Files?newOutputStreamG(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;??
??
beginDownload?'??[B?
isInterruptedG
java/io/InputStreamread([B)I
java/io/OutputStream
write([BII)V
onTick'java/io/Closeable5com/groupbyinc/flux/common/apache/lucene/util/IOUtilscloseWhileHandlingException([Ljava/io/Closeable;)V
java/nio/file/PathdeleteFilesIgnoringExceptions([Ljava/nio/file/Path;)V
close!
"java/lang/Throwable$endDownload&''exilengthbufferlastExfinished
m? java/nio/file/attribute/FileTime0
fromMillis%(J)Ljava/nio/file/attribute/FileTime;23
14setLastModifiedTimeL(Ljava/nio/file/Path;Ljava/nio/file/attribute/FileTime;)Ljava/nio/file/Path;67
?8remoteTimestamp
wasSuccessfulcloseStreams	interrupt='
>java/nio/file/LinkOption@exists2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)ZBC
?DCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
SourceFileInnerClasses 
 !"	#$F??*+?&*?)*?+*?-*?/*?1*?3*,?5*-?7*?9*?;*?=?G>?>??
??@?A?BH2	"',28>C'Fk**?I?+?	L*+?-?EGJ>?H"%#$&IKEFGF?.***?5?N?P*?P??*?S<?*?&?W?*?Z?G.>?[H*,-05(6,9I?JE\]F? *Y?3`?3*?3?_N?EY-?b??G*	cd >? e
 f
HH
IJKOIJEKLF?>+?kM*?9?,*?;?qs+?w?}>+??????6?:?
?EY??b?+????????:,???Y???????????,???,????,??,???,???????,??ƶɶ?,?Ͷ?,??,????,??:??6-?.?/?*ֶ?:?hY??:*+?ݚ?*?N???7	0?		??*?9?*?;	??????:?EY?b?,?GzQ?d??d??
2
cd?????~? 8?	>>?>e
9 ?/?H?"UXY]^/_4`8aBcQdkgrhzij?l?m?n?q?t?u?v?w?z?{?|?}????$?&?.?2?<?I@?m?@?(?O??yh??&?hmJEQGF1L=?**?P??/?N-L????*?/?+?**?7?????1*?=??=??N*??(*?/-?	Y6?*?1-?*?=????*???=?)?Y*?1SY*?/S??Y*?7S? ?_?Y*?1SY*?/S?#?G:?)?Y*?1SY*?/S??Y*?7S? ??Y*?1SY*?/S?#?*?=?(?	EC?????GH)* Z+ H9,?>?-C?.Hr??	????? ?'?)?8?A?C?H?]?h?t?????????????????????I/
?ERE??+
@?*W%?+%?J?EX'Fg*?P?/@	??*?7?5?9W?G>?:H????I?JE;GFL*?-?*?-?*?+?G>?H???IJE<'F?\*??*?+??Y*?/SY*?1S?#?;?Y*?/SY*?1S?*?7?*?7?A?E??Y*?7S? ?G\>?H???#?8?M?[?I#7JEKL	
		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy