com.groupbyinc.flux.common.http.conn.routing.HttpRoute.class Maven / Gradle / Ivy
???? 2 6com/groupbyinc/flux/common/http/conn/routing/HttpRoute java/lang/Object 6com/groupbyinc/flux/common/http/conn/routing/RouteInfo java/lang/Cloneable HttpRoute.java 5Lcom/groupbyinc/flux/common/http/annotation/Contract; threading >Lcom/groupbyinc/flux/common/http/annotation/ThreadingBehavior; IMMUTABLE Acom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType
TunnelType @com/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType LayerType
targetHost *Lcom/groupbyinc/flux/common/http/HttpHost; localAddress Ljava/net/InetAddress;
proxyChain Ljava/util/List; ; tunnelled CLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType; layered BLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType; secure Z ?(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;Ljava/util/List;ZLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType;Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType;)V ()V ! #
$ Target host & )com/groupbyinc/flux/common/http/util/Args ( notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; * +
) , normalize V(Lcom/groupbyinc/flux/common/http/HttpHost;)Lcom/groupbyinc/flux/common/http/HttpHost; . /
0 2 4 java/util/List 6 isEmpty ()Z 8 9 7 : java/util/ArrayList < (Ljava/util/Collection;)V ! >
= ? A (com/groupbyinc/flux/common/http/HttpHost C java/net/InetAddress E TUNNELLED G H Proxy required if tunnelled J check (ZLjava/lang/String;)V L M
) N P PLAIN R S U R W Y this 8Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute; target local proxies getDefaultPort (Ljava/lang/String;)I http b java/lang/String d equalsIgnoreCase (Ljava/lang/String;)Z f g
e h https j
schemeName Ljava/lang/String; getPort ()I n o
D p
getAddress ()Ljava/net/InetAddress; r s
D t
getSchemeName ()Ljava/lang/String; v w
D x ` a
z ,(Ljava/net/InetAddress;ILjava/lang/String;)V ! |
D } getHostName w
D ? ((Ljava/lang/String;ILjava/lang/String;)V ! ?
D ? hostName address ?(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;[Lcom/groupbyinc/flux/common/http/HttpHost;ZLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType;Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType;)V java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? +[Lcom/groupbyinc/flux/common/http/HttpHost; ? ! "
? ?(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;Lcom/groupbyinc/flux/common/http/HttpHost;ZLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType;Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType;)V java/util/Collections ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; ? ?
? ? proxy D(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;Z)V emptyList ()Ljava/util/List; ? ?
? ? -(Lcom/groupbyinc/flux/common/http/HttpHost;)V n(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;Lcom/groupbyinc/flux/common/http/HttpHost;Z)V
Proxy host ? LAYERED ? ? W(Lcom/groupbyinc/flux/common/http/HttpHost;Lcom/groupbyinc/flux/common/http/HttpHost;)V ! ?
?
getTargetHost ,()Lcom/groupbyinc/flux/common/http/HttpHost; getLocalAddress getLocalSocketAddress ()Ljava/net/InetSocketAddress; java/net/InetSocketAddress ? (Ljava/net/InetAddress;I)V ! ?
? ? getHopCount size ? o 7 ? getHopTarget -(I)Lcom/groupbyinc/flux/common/http/HttpHost; Hop index ? notNegative (ILjava/lang/String;)I ? ?
) ? ? o
? &Hop index exceeds tracked route length ? get (I)Ljava/lang/Object; ? ? 7 ? hop I hopcount getProxyHost
getTunnelType E()Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType; isTunnelled getLayerType D()Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType; isLayered isSecure equals (Ljava/lang/Object;)Z .com/groupbyinc/flux/common/http/util/LangUtils ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? that obj Ljava/lang/Object; hashCode (ILjava/lang/Object;)I ? ?
? ? iterator ()Ljava/util/Iterator; ? ? 7 ? java/util/Iterator ? hasNext ? 9 ? ? next ()Ljava/lang/Object; ? ? ? ? (IZ)I ? ?
? ? element i$ Ljava/util/Iterator; hash toString java/lang/StringBuilder ? (I)V ! ?
? ? append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? -> ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ?
? (C)Ljava/lang/StringBuilder; ?
? }-> ? w
? aProxyChain cab Ljava/lang/StringBuilder; clone $java/lang/CloneNotSupportedException
?
Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable(Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/net/InetAddress;Ljava/util/List;ZLcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$TunnelType;Lcom/groupbyinc/flux/common/http/conn/routing/RouteInfo$LayerType;)V
Exceptions
SourceFile InnerClasses RuntimeInvisibleAnnotations 1 ! " ? {*? %+'? -W*+? 1? 3*,? 5-? -? ; ? *? =Y-? @? B? *? B? I? *? B? ? K? O*? Q*? ? ? T? V*? ? ? X? Z? H { [ \ { ] { ^ { _ { { { { _ 6
I J K L M % N 4 P 9 R A S R U X V i W z X i ? 4 D F 7 @P ? D F 7 M ? D F 7
` a _ c*? i? P?k*? i? ??? l m \ ] ^ _ a
. / ? 8*? q? *?*? uL*? yM+? ? DY+,? {,? ~?*? ?N? DY-,? {,? ?? * * ? m * ? % l m 8 ] " h i k l m n % p * q ? F e ! ? ? *+,-?
-? ?? ? ?? H [ \ ] ^ _ ?
? ? C ? D F ? D F? D F ? D F 7 ! ? ? *+,-?
-? ?? ? ?? H [ \ ] ^ ?
? ? C ? D F D D F? D F D D F 7 ! ? ] *+,? ?? T? X? ?? * [ \ ] ^
? ? ! ? I *+? ?? T? X? ?? [ \ ]
? ? ! ? .*+,-?? -? ?? ? I? ? T? ? ?? ? X? ?? 4 . [ \ . ] . ^ . ? .
? - ? ? ? D F D D F 7? D F D D F 7 ?
D F D D F 7 ? D F D D F 7 ! ? K *+,? ?? [ \ ] ?
? ? ? ? / *? 3? [ \ ? ? s / *? 5? [ \ ? ? ? O *? 5? ? ?Y*? 5? ?? ? [ \ ? @ ? ? o L *? B? *? B? ? `? ? [ \ ? @ ? ? ? 5?? ?W*? ?=? ? ¸ Od? *? B? ? ? D?*? 3? 5 [ \ 5 ? ? ) ? ? ? ? ? ? " ? 0 ? ? @ ? ? \ %*? B? *? B? ; ? *? B? ? ? D? ? % [ \ ? #@ D ? ? / *? V? [ \ ? ? 9 E *? V? I? ? ? [ \ @ ? ? / *? Z? [ \ ? 9 E *? Z? ?? ? ? [ \ @ ? 9 / *? Q? [ \ ? ? ? f*+? ?+? ? Y+? M*? Q,? Q? G*? V,? V? <*? Z,? Z? 1*? 3,? 3? ؙ #*? 5,? 5? ؙ *? B,? B? ؙ ? ?? Q ? \ f [ \ f ? ? ! # $ % d. ? Z @? ? o ? _<*? 3? ?<*? 5? ?<*? B? )*? B? ? M,? ? ? ,? ? ? DN-? ???*? Q? ?<*? V? ?<*? Z? ?<? * 9 ? &