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

io.netty.handler.codec.http.HttpUtil.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????2?$io/netty/handler/codec/http/HttpUtiljava/lang/Object
HttpUtil.java
EMPTY_HEADERS.Lio/netty/handler/codec/http/EmptyHttpHeaders;Ljava/lang/Deprecated;CHARSET_EQUALSLio/netty/util/AsciiString;	SEMICOLON()V
this&Lio/netty/handler/codec/http/HttpUtil;isOriginForm(Ljava/net/URI;)Zjava/net/URI	getScheme()Ljava/lang/String;
getSchemeSpecificPart
getHost
getAuthority 
!uriLjava/net/URI;isAsteriskForm*&getPath(
)java/lang/String+equals(Ljava/lang/Object;)Z-.
,/getQuery1
2getFragment4
5isKeepAlive,(Lio/netty/handler/codec/http/HttpMessage;)Z'io/netty/handler/codec/http/HttpMessage9headers+()Lio/netty/handler/codec/http/HttpHeaders;;<:=+io/netty/handler/codec/http/HttpHeaderNames?
CONNECTIONA
	@B'io/netty/handler/codec/http/HttpHeadersDget,(Ljava/lang/CharSequence;)Ljava/lang/String;FG
EH,io/netty/handler/codec/http/HttpHeaderValuesJCLOSEL
	KMio/netty/util/AsciiStringOcontentEqualsIgnoreCase(Ljava/lang/CharSequence;)ZQR
PSjava/lang/CharSequenceUprotocolVersion+()Lio/netty/handler/codec/http/HttpVersion;WX:Y'io/netty/handler/codec/http/HttpVersion[isKeepAliveDefault()Z]^
\_
KEEP_ALIVEa
	Kbmessage)Lio/netty/handler/codec/http/HttpMessage;
connectionLjava/lang/CharSequence;setKeepAlive-(Lio/netty/handler/codec/http/HttpMessage;Z)VV(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/handler/codec/http/HttpVersion;Z)Vhj
k	keepAliveZremoveC(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders;op
EqsetU(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders;st
Euh)Lio/netty/handler/codec/http/HttpHeaders;httpVersion)Lio/netty/handler/codec/http/HttpVersion;getContentLength,(Lio/netty/handler/codec/http/HttpMessage;)JCONTENT_LENGTH}
	@~java/lang/Long?	parseLong(Ljava/lang/String;)J??
??getWebSocketContentLength,(Lio/netty/handler/codec/http/HttpMessage;)I??
?java/lang/NumberFormatException?java/lang/StringBuilder?
?header not found: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString?
??(Ljava/lang/String;)V?
??valueLjava/lang/String;webSocketContentLengthJ-(Lio/netty/handler/codec/http/HttpMessage;J)JdefaultValue-(Lio/netty/handler/codec/http/HttpMessage;I)I???{?
?java/lang/Math?min(JJ)J??
??I'io/netty/handler/codec/http/HttpRequest?&io/netty/handler/codec/http/HttpMethod?GET(Lio/netty/handler/codec/http/HttpMethod;??	??method*()Lio/netty/handler/codec/http/HttpMethod;????
?/SEC_WEBSOCKET_KEY1?
	@?contains?R
E?SEC_WEBSOCKET_KEY2?
	@?(io/netty/handler/codec/http/HttpResponse?status2()Lio/netty/handler/codec/http/HttpResponseStatus;????.io/netty/handler/codec/http/HttpResponseStatus?code()I??
??SEC_WEBSOCKET_ORIGIN?
	@?SEC_WEBSOCKET_LOCATION?
	@?req)Lio/netty/handler/codec/http/HttpRequest;res*Lio/netty/handler/codec/http/HttpResponse;setContentLength-(Lio/netty/handler/codec/http/HttpMessage;J)VvalueOf(J)Ljava/lang/Long;??
??lengthisContentLengthSetmis100ContinueExpectedisExpectHeaderValid?8
?EXPECT?
	@?CONTINUE?
	K?
P?equalsIgnoreCase(Ljava/lang/String;)Z??
,?expectValueisUnsupportedExpectationHTTP_1_1?z	\?	compareTo,(Lio/netty/handler/codec/http/HttpVersion;)I??
\?set100ContinueExpectedexpectedisTransferEncodingChunkedTRANSFER_ENCODING
	@CHUNKED
	K4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z?
EsetTransferEncodingChunkedgetAll*(Ljava/lang/CharSequence;)Ljava/util/List;

Ejava/util/ListisEmpty^java/util/ArrayList(Ljava/util/Collection;)V
iterator()Ljava/util/Iterator;java/util/IteratorhasNext^next()Ljava/lang/Object;!"#o
%W(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Lio/netty/handler/codec/http/HttpHeaders;s'
E(	encodings$Ljava/util/List;Ljava/util/List;values*Ljava/util/List;valuesIt.Ljava/util/Iterator;Ljava/util/Iterator;chunked
getCharsetE(Lio/netty/handler/codec/http/HttpMessage;)Ljava/nio/charset/Charset;io/netty/util/CharsetUtil5
ISO_8859_1Ljava/nio/charset/Charset;78	69_(Lio/netty/handler/codec/http/HttpMessage;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;3;
<4(Ljava/lang/CharSequence;)Ljava/nio/charset/Charset;N(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;3?
@contentTypeValueCONTENT_TYPEC
	@DdefaultCharset,java/nio/charset/UnsupportedCharsetExceptionGgetCharsetAsSequence2(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;IJ
KV?java/nio/charset/CharsetNforName.(Ljava/lang/String;)Ljava/nio/charset/Charset;PQ
ORignored.Ljava/nio/charset/UnsupportedCharsetException;charsetCharSequencegetCharsetAsStringC(Lio/netty/handler/codec/http/HttpMessage;)Ljava/lang/CharSequence;IX
Yjava/lang/NullPointerException[B
\?	
	_indexOfIgnoreCaseAscii4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)Iab
Pc??
PeVesubSequence(II)Ljava/lang/CharSequence;hiVjindexOfEncodingindexOfCharsetgetMimeTypenJ
o
	qindexOfSemicolon,io/netty/handler/codec/http/EmptyHttpHeadersu
v	xCHARSETz
	K{=}of5(Ljava/lang/CharSequence;)Lio/netty/util/AsciiString;?
P?;?
DeprecatedRuntimeVisibleAnnotationsCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable
SourceFile1??	


?/*????,	?_"*??*??*??*?"????"#$?34!3? @	%??<'*?*?0?1*??**??#*??*?"?*?3?*?6????<#$?<
=>0?;<?:@	78??A*?>?C?IL+??N+?T??*?Z?`??N+?T????c+?T??Ade
4fg?I
JKN)O9Q??V@	hi?I*?>*?Z?l??demn?
jk	hj???+?`? ?*?C?rW?+*?C?N?vW??*?C?c?vW?*?C?rW?? ?wx?yz?mn?"????$?(?6?>??
	{|??A*?>??IL+?+???*???A 	?? ???Y??Y?????????????? Ade
4??%????
????"?$???,?
	{???)*?>??IN-?-???*???7	?????*)de)??
??????
????$?'???,?	{??B?*????????de????
????o*?>L*???1*??M??,?????+???™+?Ŷ™??4*?Ǚ-*??M,????e?+?Զ™+?׶™???*&??H%??odehwx?:????&?0?6?9?C?H?Z?d?j?m??
?9E0	???J*?>???vW??de???
??	?8?7
*?>??¬?
?e??	?8?j!*???*?>??IL???+???!de???	?	?8?~-*???*?>??IL+????+?????-de???	?	?!,@
?8?Y*???*?Z????????de?"#"?@	?i?o%?*?>???vW?*?>??rW??%de%?n?./1$3?	?8?;*?>?????de?<		i???#*?>???vW*?>??rW?}*?>??
M,????Y,?N-?:? ?$?$?V:??T?
?&???-??*?>??rW?*?>?-?)W??>b?g1m*,DZ-,LR/1??e?2n? 1m*+DZ-.LR/0?FGHI$K1L:M;ODPLQVRbSmTtVwW?X?Z?]?$??'?
	34?2*?:?=??de?g	3>?K*?*?:?A??:??Bg?rsu?	3;?q*?>?E?IM,?	,+?A?+?? deF8
Bg??
?????V	3???*?*?LM,?,?M?S?N+?+?+?
H?*TU	VgBgF8?"??	?
???????VOVH?	WX?/*?Z??de????	IX?f*?>?E?IL+?+?L???de
Bg??
?????V	IJ??@*??\Y]?^?*?`?d<?$?`?f`=*?g?**?g?k??? &l?@Bg(m??"?????&?0?>???.	nX?f*?>?E?IL+?+?p???de
Bg??
?????V	nJ??5*??\Y]?^?*?r?d<?*?k?*?g?*???5Bgs???&??@Vt
?P0?vY?w?y??Y???|??~???????`????r??(
)&*?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy