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

io.netty.handler.codec.http.multipart.HttpPostRequestEncoder.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????2?;java/lang/Object$io/netty/handler/stream/ChunkedInputHttpPostRequestEncoder.java>io/netty/handler/codec/http/multipart/HttpPostRequestEncoder$1	Sio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$WrappedFullHttpRequestWrappedFullHttpRequestOio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$WrappedHttpRequestWrappedHttpRequestVio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$ErrorDataEncoderExceptionErrorDataEncoderExceptionHio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$EncoderModeEncoderModejava/util/Map$Entry
java/util/MapEntry*java/util/AbstractMap$SimpleImmutableEntryjava/util/AbstractMapSimpleImmutableEntryPio/netty/handler/codec/http/multipart/HttpPostBodyUtil$TransferEncodingMechanism!6io/netty/handler/codec/http/multipart/HttpPostBodyUtil#TransferEncodingMechanismpercentEncodings[Ljava/util/Map$Entry;factory7Lio/netty/handler/codec/http/multipart/HttpDataFactory;request)Lio/netty/handler/codec/http/HttpRequest;charsetLjava/nio/charset/Charset;	isChunkedZ
bodyListDatasLjava/util/List;KLjava/util/List;multipartHttpDatasisMultipartmultipartDataBoundaryLjava/lang/String;multipartMixedBoundaryheaderFinalizedencoderModeJLio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$EncoderMode;isLastChunkisLastChunkSentcurrentFileUpload2Lio/netty/handler/codec/http/multipart/FileUpload;duringMixedModeglobalBodySizeJglobalProgressiteratorLjava/util/ListIterator;SLjava/util/ListIterator;
currentBufferLio/netty/buffer/ByteBuf;currentData9Lio/netty/handler/codec/http/multipart/InterfaceHttpData;isKey-(Lio/netty/handler/codec/http/HttpRequest;Z)VLio/netty/handler/codec/http/multipart/HttpPostRequestEncoder;	multipartd(Lio/netty/handler/codec/http/multipart/HttpDataFactory;Lio/netty/handler/codec/http/HttpRequest;Z)V()VKc
dJ/	f*!io/netty/util/internal/ObjectUtilicheckNotNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;kl
jm'io/netty/handler/codec/http/HttpRequesto*+	q,java/nio/charset/Charsett,-	v(5io/netty/handler/codec/http/multipart/HttpDataFactoryy()	{&io/netty/handler/codec/http/HttpMethod}TRACE(Lio/netty/handler/codec/http/HttpMethod;?	~?method*()Lio/netty/handler/codec/http/HttpMethod;??p?equals(Ljava/lang/Object;)Z??
~?-Cannot create a Encoder if request is a TRACE?(Ljava/lang/String;)VK?
?java/util/ArrayList?
?d01	?;/	?</	?4/	?31	?9:	?initDataMultipart?c
?
cleanFilescleanRequestHttpData,(Lio/netty/handler/codec/http/HttpRequest;)V??z?()ZgetNewMultipartDelimiter()Ljava/lang/String;??
?56	?initMixedMultipart76	?(io/netty/util/internal/PlatformDependent?threadLocalRandom()Ljava/util/Random;??
??java/util/Random?nextLong()J??
??java/lang/Long?toHexString(J)Ljava/lang/String;??
??getBodyListAttributes()Ljava/util/List;setBodyHttpDatas(Ljava/util/List;)Vjava/lang/NullPointerException?datas?
??@A	?java/util/List?clear?c??=>	??/	?()Ljava/util/Iterator;C???java/util/Iterator?hasNext????next()Ljava/lang/Object;????7io/netty/handler/codec/http/multipart/InterfaceHttpData?addBodyHttpData<(Lio/netty/handler/codec/http/multipart/InterfaceHttpData;)V??
?dataaddBodyAttribute'(Ljava/lang/String;Ljava/lang/String;)V?java/lang/String?name?createAttribute?(Lio/netty/handler/codec/http/HttpRequest;Ljava/lang/String;Ljava/lang/String;)Lio/netty/handler/codec/http/multipart/Attribute;??z?valuesvalue1Lio/netty/handler/codec/http/multipart/Attribute;addBodyFileUpload6(Ljava/lang/String;Ljava/io/File;Ljava/lang/String;Z)Vjava/io/File?getName??
??H(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;Ljava/lang/String;Z)V?
fileLjava/io/File;contentTypeisTextjava/io/IOException
text/plain
application/octet-streamBINARYRLio/netty/handler/codec/http/multipart/HttpPostBodyUtil$TransferEncodingMechanism;	"??
"length?
?createFileUpload?(Lio/netty/handler/codec/http/HttpRequest;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;J)Lio/netty/handler/codec/http/multipart/FileUpload;z0io/netty/handler/codec/http/multipart/FileUpload
setContent(Ljava/io/File;)V(Ljava/lang/Throwable;)VK!
"eLjava/io/IOException;filenamescontentTypecontentTransferEncoding
fileUploadaddBodyFileUploads9(Ljava/lang/String;[Ljava/io/File;[Ljava/lang/String;[Z)V"java/lang/IllegalArgumentException,Different array length.
-???
1iI[Ljava/io/File;[Ljava/lang/String;[Z8/	8Cannot add value once finalized:?add=??>/io/netty/handler/codec/http/multipart/Attribute@A?encodeAttribute@(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String;CD
EgetValueG?AH()IJ
?KA?getFilenameO?P7io/netty/handler/codec/http/multipart/InternalAttributeR(Ljava/nio/charset/Charset;)VKT
SUjava/lang/StringBuilderW
Xd
--Zappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;\]
X^--`toStringb?
XcaddValuee?
SfisEmptyh??i
k+io/netty/handler/codec/http/HttpHeaderNamesmCONTENT_DISPOSITIONLio/netty/util/AsciiString;op	nq-(Ljava/lang/Object;)Ljava/lang/StringBuilder;\s
Xt: v,io/netty/handler/codec/http/HttpHeaderValuesx	FORM_DATAzp	y{; }NAMEp	y?="?"
?CONTENT_LENGTH?p	n?(J)Ljava/lang/StringBuilder;\?
X?
getCharset()Ljava/nio/charset/Charset;??A?CONTENT_TYPE?p	n?CHARSET?p	y?(C)Ljava/lang/StringBuilder;\?
X???
u?size?J
S?
??HTML5?:	??c
???get(I)Ljava/lang/Object;????(I)VK?
X?3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;\?
X?MULTIPART_MIXED?p	y?BOUNDARY?p	y?

?
ATTACHMENT?p	y?
?iFILENAME?p	y?setValue(Ljava/lang/String;I)V??
S?"; ?getContentType???getContentTransferEncoding???CONTENT_TRANSFER_ENCODING?p	n??keynewattribute	attributeinternal9Lio/netty/handler/codec/http/multipart/InternalAttribute;localcharset
localMixed
pastAttributereplacementLjava/lang/StringBuilder;finalizeRequest+()Lio/netty/handler/codec/http/HttpRequest;--
?Header already encoded?headers+()Lio/netty/handler/codec/http/HttpHeaders;??p?'io/netty/handler/codec/http/HttpHeaders?getAll*(Ljava/lang/CharSequence;)Ljava/util/List;??
??TRANSFER_ENCODING?p	n?removeC(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders;??
??toLowerCase??
??MULTIPART_FORM_DATA?p	y?io/netty/util/AsciiString?
?c
startsWith(Ljava/lang/String;)Z??
??!APPLICATION_X_WWW_FORM_URLENCODED?p	y?U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;=
?listIterator()Ljava/util/ListIterator;?CD	valueOf	?
?
set
?
?./	java/lang/CharSequenceCHUNKEDp	ycontentEqualsIgnoreCase(Ljava/lang/CharSequence;)Z
?$io/netty/handler/codec/http/HttpUtilsetTransferEncodingChunked-(Lio/netty/handler/codec/http/HttpMessage;Z)V
 K?
"	nextChunk+()Lio/netty/handler/codec/http/HttpContent;$%
&+io/netty/handler/codec/http/FullHttpRequest('io/netty/handler/codec/http/HttpContent*content()Lio/netty/buffer/ByteBuf;,-+.).io/netty/buffer/ByteBuf1?-
23
writeBytes4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;56
27release9?
2:?(Lio/netty/handler/codec/http/HttpRequest;Lio/netty/handler/codec/http/HttpContent;Lio/netty/handler/codec/http/multipart/HttpPostRequestEncoder$1;)VK<
=
lowercasedvLjava/lang/CharSequence;fullRequest-Lio/netty/handler/codec/http/FullHttpRequest;chunkContentchunk)Lio/netty/handler/codec/http/HttpContent;)Lio/netty/handler/codec/http/HttpHeaders;contentTypes$Ljava/util/List;transferEncodingrealSize$java/io/UnsupportedEncodingExceptionLjava/net/URLEncoderNencode8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;PQ
ORRFC3986T:	U&'	W'G?ZgetKey\?]java/util/regex/Pattern_matcher3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;ab
`cjava/util/regex/Matchere
replaceAll&(Ljava/lang/String;)Ljava/lang/String;gh
fi*(Ljava/lang/String;Ljava/lang/Throwable;)VKk
lentryBLjava/util/Map$Entry;Ljava/util/Map$Entry;encoded&Ljava/io/UnsupportedEncodingException;sfillByteBufFG	u
readableByteswJ
2xreadRetainedSlice(I)Lio/netty/buffer/ByteBuf;z{
2|sliceencodeNextChunkMultipart,(I)Lio/netty/handler/codec/http/HttpContent;HI	?	toByteBuf?-
S?.io/netty/handler/codec/http/multipart/HttpData?getChunk?{??capacity?J
2?io/netty/buffer/Unpooled?
wrappedBuffer5([Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;??
??t-
?.io/netty/handler/codec/http/DefaultHttpContent?(Lio/netty/buffer/ByteBuf;)VK?
??buffersizeleftencodeNextChunkUrlEncoded??getBytes()[B??
??([B)Lio/netty/buffer/ByteBuf;??
??=?java/util/ListIterator???&?	delimiterclosejava/lang/Exception?	readChunkS(Lio/netty/channel/ChannelHandlerContext;)Lio/netty/handler/codec/http/HttpContent;Ljava/lang/Deprecated;&io/netty/channel/ChannelHandlerContext?alloc$()Lio/netty/buffer/ByteBufAllocator;????M(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/handler/codec/http/HttpContent;??
?ctx(Lio/netty/channel/ChannelHandlerContext;BA	?	allocator"Lio/netty/buffer/ByteBufAllocator;+io/netty/handler/codec/http/LastHttpContent?EMPTY_LAST_CONTENT-Lio/netty/handler/codec/http/LastHttpContent;??	???
???
???isEndOfInputprogress6(Lio/netty/buffer/ByteBufAllocator;)Ljava/lang/Object;<(Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;??
?\*?compile-(Ljava/lang/String;)Ljava/util/regex/Pattern;??
`?%2A?'(Ljava/lang/Object;Ljava/lang/Object;)VK?
?\+?%20?~?%7E?	SignatureCodeLocalVariableTableLineNumberTable
Exceptions
StackMapTableM()Ljava/util/List;LocalVariableTypeTableN(Ljava/util/List;)V
DeprecatedRuntimeVisibleAnnotations
SourceFileInnerClasses!&'()*+,-./01?231?24/56768/9:;/</=>?/@ABACD?EFGHIJ/KL?Y*?NYO?S+?X?[?^?? _`*+a/?
???Kb?Z*+,?X?[?^??*_`()*+a/?
?
??K\?9?*?e*?g*,h?n?p?r*s?n?u?w*+x?n?z?|??,?????
?Y????*??Y????*??*??*??*??Y????*??*???*????>?_`?()?*+?a/?,-?9:?B?b	??$?1?@?J?U?Z?_?d?o?u?|?????Jzpu5??c?<*?|*?r????_`?
?
?4??/*????_`??c?6*??????_`?
?c?6*??????_`?

???"
?????°?#???/*????_`?,??????R+?
??Yʷ˿*	??*????*??*??*????+??M,???,????N*-????? I?IR_`R?1?R?2?.89;<=!>&?/@IANBQC??'?????????+,?,??N*?|*?r+?n??-??:*???4+_`+?6+?6 ?6$???RS$T*U?A?????d*+,??,-???4_`?66/?
i
j????	
y+?nW-	?nW,??M::??:?
:???:*?|*?r+,-??	:-? ?:	?Y	?#?*??[cf?f
h
$%	y_`y?6y&6yy6y/_'6\(6[)>?V???????"?'?/?4?9?A?Q?T?[?c?f?h?r?x??2????$	???????*+??=,?-??,????-Y/?0?6,??*+,2-23?2?????>34=_`=?6=5=6=7????$?6?<??
??????$@*?9??Y;???*??+?6g,???	$%6j???])>?N?6?>?6?,??';??n!??????v?-??/-
?/}>??Yb????/??)>?????~?/??(6@_`@?I?Z????#?*?1?6?E?U?g?s??????????????????????
???'?HSX]bnz?
??
??
??KZ]doz?? ?!?"?$?'?(?+?2347#8*9-;2<:?O@`UdVlWsV}Y?Z?[?\?^?_?`?b?c?d?e?f?g?h?iklmno"p)q/r5t<uBvHxNyTzY|e}p~vz???????????????????????????????&?S?d?j????????????#?4?7?L?]?`?????????????????
???*????r???A?	?h?T?S??Au?4?*S(?S?MSX?5??Z?C?p?[???<?*??????_*?9??*?????SY*?w?VL*?֙$+?XY?Y[?_*???_a?_?d?g+?XY?Y[?_*???_ܶ_?d?g*??+??W*??*??*??*Y??+???a??*?9??Y޷??*?r??L+????M+???N,?\+????W,??:???B????:??:???????????????
+???W???*???:?XY?Y???u~?_???u=??*???_?d:+???W?+?????W*??7*???**?????
e7**????+????W??
*???a*?-?D+???W-??:???*???:	?	???
+??	?W???*?r?!?Y*?r?#?*?':*?r?)?:*?r?):	?/:
	?0
?	?0?4
?8W
?;W	??Y*?r?>???
q???)?6?06F
?6?@A	".BC	+%DG
PEF__`???G??H1??J1d?KA???HI??JI??6????!?B?c?n?s?x?}???????????????????????FPS
^
dk{???????????!?$	'()"*++7,G-M/P1???BS?H
?-?????;???	?=
??????????#?	?????C
???+)2??.??/*???_`?:CD?J	k+???+,???SN*???V?D?X:?66?02:?[??:?^?`-?d?jN????-?N?Y,??-?m?\]M?HA?65 npMq6^
$rk_`ks6k,-?5 no?.FGJKL5MANUL[Q]R^S?1??u?Y?3??uM?t-??&*?v?y<??*?v??}?*?vM*?v,?? ~G&_`4?ijkno$p????^?*????*???S?*???S??M*???,*??????M?
N?Y-?#?,???
*???*?v?*,?v?*?2Y*?vSY,S???v*?v?y??
*???*??M??Y,???&47?>?G4?G8	$%?_`??4AU?G?R?	???&?4?7?8?A?H?M?O?V?^?t??????????	P?	2
????D?*????=*?g??*????N-????:*?g*?v?,*?2YSY?????S???v?y`d=?0*?2Y*?vSYSY?????S???v?y`d=*?v?y??*??:??Y???*??????:?
N?Y-?#?N?y?"*?g*??????????N???P*??*?v?*-?v?-?*?2Y*?vSY-S???v*?v?y??*??:??Y????*?v?'-?*?2YSY-S???v?E*?v?<-?!*?2Y*?vSYSY-S???v?*?2Y*?vSYS???v*?v?y??*??*?g?*??:??Y???????\	??6%?G??G?	$%?_`??4??4??G?
?G??.??	????%?*?1?M?Z?}????????????????????????????????
? ?-?3?=???F?J?a?j?n????????????????<	?P?2,?Q?	2?'22@2!!??c?+??_`???????*+??????_`???????????z#*????*?'M*Y??,?/?y?a??,?? $F#_`#???	!?	??$%?9*???*???Ȱ?<*?v?
*?v?yd<?*??M??Y,???*???1*???*??N-?-??*??N-?-??*?v?yd<*????*??*?vM*?v??Y,????J*????>**??????*???*??N?	*??N-??*?v?yd7E8K9O:Q<T=Z>^@`ClExF}H?I?J?L?M?O?P?R?T?V?W?Z?]?^?_?a?d?e?f?
?#/?+?????/*????_`?k????J*???
*?ͧ	*??
e??_`?p?E???/*????_`?uA???0*+????_`?C??A???0*+?Ӱ?_`?C?????c?iA?Y?Yָ?ܷ?SY?Y????SY?Y????S?X??c
d e3f@h???B


	@	 	"$%@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy