
com.groupbyinc.flux.common.http.nio.client.methods.BaseZeroCopyRequestProducer.class Maven / Gradle / Ivy
???? 2 ? Ncom/groupbyinc/flux/common/http/nio/client/methods/BaseZeroCopyRequestProducer java/lang/Object Ecom/groupbyinc/flux/common/http/nio/protocol/HttpAsyncRequestProducer BaseZeroCopyRequestProducer.java
requestURI Ljava/net/URI; file Ljava/io/File;
accessfile Ljava/io/RandomAccessFile; contentType 4Lcom/groupbyinc/flux/common/http/entity/ContentType; fileChannel Ljava/nio/channels/FileChannel; idx J S(Ljava/net/URI;Ljava/io/File;Lcom/groupbyinc/flux/common/http/entity/ContentType;)V java/io/FileNotFoundException ()V
???????? Request URI )com/groupbyinc/flux/common/http/util/Args ! notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; # $
" % Source file ' )
+ java/io/RandomAccessFile - r / #(Ljava/io/File;Ljava/lang/String;)V 1
. 2
4 6 this PLcom/groupbyinc/flux/common/http/nio/client/methods/BaseZeroCopyRequestProducer; closeChannel java/io/IOException ; = java/nio/channels/FileChannel ? close A
@ B
createRequest x(Ljava/net/URI;Lcom/groupbyinc/flux/common/http/HttpEntity;)Lcom/groupbyinc/flux/common/http/HttpEntityEnclosingRequest; generateRequest /()Lcom/groupbyinc/flux/common/http/HttpRequest; -com/groupbyinc/flux/common/http/HttpException H 6com/groupbyinc/flux/common/http/entity/BasicHttpEntity J
K
setChunked (Z)V M N
K O java/io/File Q length ()J S T
R U setContentLength (J)V W X
K Y 2com/groupbyinc/flux/common/http/entity/ContentType [ toString ()Ljava/lang/String; ] ^
\ _ setContentType (Ljava/lang/String;)V a b
K c D E
e entity 8Lcom/groupbyinc/flux/common/http/entity/BasicHttpEntity; getTarget ,()Lcom/groupbyinc/flux/common/http/HttpHost; 5com/groupbyinc/flux/common/http/client/utils/URIUtils k extractHost :(Ljava/net/URI;)Lcom/groupbyinc/flux/common/http/HttpHost; m n
l o produceContent f(Lcom/groupbyinc/flux/common/http/nio/ContentEncoder;Lcom/groupbyinc/flux/common/http/nio/IOControl;)V
getChannel !()Ljava/nio/channels/FileChannel; s t
. u 6com/groupbyinc/flux/common/http/nio/FileContentEncoder w ??? transfer $(Ljava/nio/channels/FileChannel;JJ)J { | x } 9com/groupbyinc/flux/common/http/nio/ContentEncoderChannel 7(Lcom/groupbyinc/flux/common/http/nio/ContentEncoder;)V ?
? ?
transferTo ,(JJLjava/nio/channels/WritableByteChannel;)J ? ?
@ ? size ? T
@ ? 2com/groupbyinc/flux/common/http/nio/ContentEncoder ? complete ? ? ? :
? transferred encoder 4Lcom/groupbyinc/flux/common/http/nio/ContentEncoder; ioctrl /Lcom/groupbyinc/flux/common/http/nio/IOControl; requestCompleted 9(Lcom/groupbyinc/flux/common/http/protocol/HttpContext;)V context 6Lcom/groupbyinc/flux/common/http/protocol/HttpContext; failed (Ljava/lang/Exception;)V ex Ljava/lang/Exception; isRepeatable ()Z resetRequest
. B ignore Ljava/io/IOException; Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile
? ? 7*? * ? + ? &W,(? &W*+? **,? ,*? .Y,0? 3? 5*-? 7? ? * 7 8 9 7 7
7 ? &