com.groupbyinc.flux.common.apache.http.client.utils.URIBuilder.class Maven / Gradle / Ivy
???? 2O >com/groupbyinc/flux/common/apache/http/client/utils/URIBuilder java/lang/Object URIBuilder.java ALcom/groupbyinc/flux/common/apache/http/annotation/NotThreadSafe; scheme Ljava/lang/String; encodedSchemeSpecificPart encodedAuthority userInfo encodedUserInfo host port I path encodedPath encodedQuery queryParams Ljava/util/List; HLjava/util/List; query charset Ljava/nio/charset/Charset; fragment encodedFragment ()V
this @Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; (Ljava/lang/String;)V java/net/URISyntaxException $ java/net/URI & #
' ( digestURI (Ljava/net/URI;)V * +
, string uri Ljava/net/URI;
setCharset \(Ljava/nio/charset/Charset;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; 3
getCharset ()Ljava/nio/charset/Charset;
parseQuery >(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List; java/lang/String 9 isEmpty ()Z ; <
: = Ccom/groupbyinc/flux/common/apache/http/client/utils/URLEncodedUtils ? parse A 8
@ B build ()Ljava/net/URI; buildString ()Ljava/lang/String; F G
H java/lang/StringBuilder J
K M append -(Ljava/lang/String;)Ljava/lang/StringBuilder; O P
K Q (C)Ljava/lang/StringBuilder; O S
K T V
X // Z
\ ^ @ ` b encodeUserInfo &(Ljava/lang/String;)Ljava/lang/String; d e
f Acom/groupbyinc/flux/common/apache/http/conn/util/InetAddressUtils h
isIPv6Address (Ljava/lang/String;)Z j k
i l [ n ] p : r (I)Ljava/lang/StringBuilder; O t
K u w
normalizePath y e
z |
encodePath ~ e
? ? ? ?
encodeUrlForm $(Ljava/util/List;)Ljava/lang/String; ? ?
? ?
encodeUric ? e
? ? # ? ? toString ? G
K ? sb Ljava/lang/StringBuilder; getScheme ? G
' ? getRawSchemeSpecificPart ? G
' ? getRawAuthority ? G
' ? getHost ? G
' ? getPort ()I ? ?
' ? getRawUserInfo ? G
' ? getUserInfo ? G
' ?
getRawPath ? G
' ? getPath ? G
' ? getRawQuery ? G
' ? -com/groupbyinc/flux/common/apache/http/Consts ? UTF_8 ? ? ? java/nio/charset/Charset ? 7 8
? getRawFragment ? G
' ? getFragment ? G
' ? encUserInfo @(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/lang/String; ? ?
@ ? encPath ? ?
@ ? java/util/List ? format B(Ljava/lang/Iterable;Ljava/nio/charset/Charset;)Ljava/lang/String; ? ?
@ ? params encUric ? ?
@ ? setScheme T(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; setUserInfo f(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; ? ?
? username password setHost setPort C(I)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; setPath removeQuery B()Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; setQuery Ljava/lang/Deprecated;
setParameters R(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; java/util/ArrayList ?
? clear ? ? ? addAll (Ljava/util/Collection;)Z ? ? ? ? nvps
addParameters y([Lcom/groupbyinc/flux/common/apache/http/NameValuePair;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; 7[Lcom/groupbyinc/flux/common/apache/http/NameValuePair; ? add (Ljava/lang/Object;)Z ? ? ? ? nvp 6Lcom/groupbyinc/flux/common/apache/http/NameValuePair; arr$ len$ i$ addParameter Acom/groupbyinc/flux/common/apache/http/message/BasicNameValuePair '(Ljava/lang/String;Ljava/lang/String;)V
param value setParameter ? = iterator ()Ljava/util/Iterator; ? java/util/Iterator hasNext < next ()Ljava/lang/Object; 4com/groupbyinc/flux/common/apache/http/NameValuePair getName G equals ?
:! remove# $ it LLjava/util/Iterator; Ljava/util/Iterator; clearParameters setCustomQuery setFragment
isAbsolute isOpaque getQueryParams ()Ljava/util/List; (Ljava/util/Collection;)V 0
?1 length3 ?
:4 charAt (I)C67
:8 substring (I)Ljava/lang/String;:;
:< s n Signature Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable v(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List; LocalVariableTypeTable \(Ljava/util/List;)Ljava/lang/String;
Deprecated RuntimeVisibleAnnotations ?(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/http/client/utils/URIBuilder; J()Ljava/util/List;
SourceFile RuntimeInvisibleAnnotations !
@ ( A <