![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.handler.codec.http.HttpUtil.class Maven / Gradle / Ivy
The newest version!
???? 2?
i ?
? ?
? ?
? ?
? ? ?
? ?
? ?
? ?
? ? ? ? ? ? ? ?
? ? ? ?
? ? ? ?
h ?
? ?
? ? ? ?
? ?
? ?
h ? ? ?
? ?
?
?
?
? ? ???
h ?
? ? ? &
? ?
? ? -
?
?
?
h
? ?
?
W ?
? ?
? ? ?
?
?
W !
?" #$
h%
h& ?'
h( D ?
)*+,
h-. ?
R ? h/
W01
W2 D2 D3 h4
h5
67
68
9:
9;
6<
= ?>?
W@A
WBCD CHARSET_EQUALS Lio/netty/util/AsciiString; SEMICOLON ()V Code LineNumberTable LocalVariableTable this &Lio/netty/handler/codec/http/HttpUtil; isOriginForm (Ljava/net/URI;)Z uri Ljava/net/URI;
StackMapTable isAsteriskForm isKeepAlive ,(Lio/netty/handler/codec/http/HttpMessage;)Z message )Lio/netty/handler/codec/http/HttpMessage; setKeepAlive -(Lio/netty/handler/codec/http/HttpMessage;Z)V keepAlive Z V(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/handler/codec/http/HttpVersion;Z)V h )Lio/netty/handler/codec/http/HttpHeaders; httpVersion )Lio/netty/handler/codec/http/HttpVersion; getContentLength ,(Lio/netty/handler/codec/http/HttpMessage;)J value Ljava/lang/String; webSocketContentLength JE -(Lio/netty/handler/codec/http/HttpMessage;J)J defaultValue -(Lio/netty/handler/codec/http/HttpMessage;I)I I getWebSocketContentLength ,(Lio/netty/handler/codec/http/HttpMessage;)I req )Lio/netty/handler/codec/http/HttpRequest; res *Lio/netty/handler/codec/http/HttpResponse;F setContentLength -(Lio/netty/handler/codec/http/HttpMessage;J)V length isContentLengthSet m is100ContinueExpected isUnsupportedExpectation expectValue isExpectHeaderValid set100ContinueExpected expected isTransferEncodingChunked setTransferEncodingChunked Ljava/lang/CharSequence; encodings Ljava/util/List; values valuesIt Ljava/util/Iterator; chunked LocalVariableTypeTable $Ljava/util/List; *Ljava/util/List; .Ljava/util/Iterator;GH
getCharset E(Lio/netty/handler/codec/http/HttpMessage;)Ljava/nio/charset/Charset; 4(Ljava/lang/CharSequence;)Ljava/nio/charset/Charset; contentTypeValue _(Lio/netty/handler/codec/http/HttpMessage;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset; defaultCharset Ljava/nio/charset/Charset; N(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset; charsetCharSequenceI+, getCharsetAsString C(Lio/netty/handler/codec/http/HttpMessage;)Ljava/lang/CharSequence;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; getCharsetAsSequence 2(Ljava/lang/CharSequence;)Ljava/lang/CharSequence; charsetCandidate indexOfSemicolon indexOfCharset indexOfEncoding getMimeType formatHostnameForHttp 0(Ljava/net/InetSocketAddress;)Ljava/lang/String; addr Ljava/net/InetSocketAddress;
hostString
SourceFile
HttpUtil.java m nJKLMLNLOL *PLEQRSLTLUVWXY kZ[ kF\]^_`abc k ~ ?defgh kijklm ? ? java/lang/NumberFormatException java/lang/StringBuilder header not found: nonpqL mr java/lang/Integer ? ?stu 'io/netty/handler/codec/http/HttpRequestvwxyz{ k|}~ k (io/netty/handler/codec/http/HttpResponse????? k? k?? ? {? k? k|]??? ???? k? k??G?b java/util/ArrayList m???H?b?? java/lang/CharSequence?}d nf??? ? ? ? ? ?? k ? ?I?? ,java/nio/charset/IllegalCharsetNameException ,java/nio/charset/UnsupportedCharsetException ? ? java/lang/NullPointerException j k?? io/netty/util/AsciiString ???? l k ? ??? ?????b????n?? k =?? ;?? $io/netty/handler/codec/http/HttpUtil java/lang/Object java/lang/String 'io/netty/handler/codec/http/HttpHeaders java/util/List java/util/Iterator java/nio/charset/Charset java/net/URI getScheme ()Ljava/lang/String; getSchemeSpecificPart getHost getAuthority getPath equals (Ljava/lang/Object;)Z getQuery getFragment 'io/netty/handler/codec/http/HttpMessage headers +()Lio/netty/handler/codec/http/HttpHeaders; +io/netty/handler/codec/http/HttpHeaderNames
CONNECTION ,io/netty/handler/codec/http/HttpHeaderValues CLOSE
containsValue 4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z protocolVersion +()Lio/netty/handler/codec/http/HttpVersion; 'io/netty/handler/codec/http/HttpVersion isKeepAliveDefault ()Z
KEEP_ALIVE remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; CONTENT_LENGTH get ,(Ljava/lang/CharSequence;)Ljava/lang/String; java/lang/Long parseLong (Ljava/lang/String;)J append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString (Ljava/lang/String;)V java/lang/Math min (JJ)J &io/netty/handler/codec/http/HttpMethod GET (Lio/netty/handler/codec/http/HttpMethod; method *()Lio/netty/handler/codec/http/HttpMethod; SEC_WEBSOCKET_KEY1 contains (Ljava/lang/CharSequence;)Z SEC_WEBSOCKET_KEY2 status 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus code ()I SEC_WEBSOCKET_ORIGIN SEC_WEBSOCKET_LOCATION valueOf (J)Ljava/lang/Long; EXPECT CONTINUE equalsIgnoreCase (Ljava/lang/String;)Z HTTP_1_1 compareTo ,(Lio/netty/handler/codec/http/HttpVersion;)I TRANSFER_ENCODING CHUNKED getAll *(Ljava/lang/CharSequence;)Ljava/util/List; isEmpty (Ljava/util/Collection;)V iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; contentEqualsIgnoreCase W(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Lio/netty/handler/codec/http/HttpHeaders; io/netty/util/CharsetUtil
ISO_8859_1 CONTENT_TYPE forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; indexOfIgnoreCaseAscii 4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)I subSequence (II)Ljava/lang/CharSequence; io/netty/util/NetUtil getHostname isValidIpV6Address java/net/InetSocketAddress isUnresolved
getAddress ()Ljava/net/InetAddress; toAddressString *(Ljava/net/InetAddress;)Ljava/lang/String; (C)Ljava/lang/StringBuilder; CHARSET of 5(Ljava/lang/CharSequence;)Lio/netty/util/AsciiString; cached /(Ljava/lang/String;)Lio/netty/util/AsciiString; 1 h i j k l k m n o / *? ? p ' q r s t u o _ "*? ? *? ? *? ? *? ? ? ? p . / ! . q " v w x @ y u o ? <*? ? ? 1*? ? **? ? #*? ? *? ? *? ? *?
? ? ? p 7
8 9 0 : ; 7 q <