com.groupbyinc.flux.common.http.impl.SocketHttpClientConnection.class Maven / Gradle / Ivy
???? 2 ? ?com/groupbyinc/flux/common/http/impl/SocketHttpClientConnection Acom/groupbyinc/flux/common/http/impl/AbstractHttpClientConnection 2com/groupbyinc/flux/common/http/HttpInetConnection SocketHttpClientConnection.java Ljava/lang/Deprecated; open Z socket Ljava/net/Socket; ()V
this ALcom/groupbyinc/flux/common/http/impl/SocketHttpClientConnection;
assertNotOpen
Connection is already open ,com/groupbyinc/flux/common/http/util/Asserts check (ZLjava/lang/String;)V
assertOpen Connection is not open ! createSessionInputBuffer ~(Ljava/net/Socket;ILcom/groupbyinc/flux/common/http/params/HttpParams;)Lcom/groupbyinc/flux/common/http/io/SessionInputBuffer; java/io/IOException % 9com/groupbyinc/flux/common/http/impl/io/SocketInputBuffer ' H(Ljava/net/Socket;ILcom/groupbyinc/flux/common/http/params/HttpParams;)V
)
( *
buffersize I params 3Lcom/groupbyinc/flux/common/http/params/HttpParams; createSessionOutputBuffer (Ljava/net/Socket;ILcom/groupbyinc/flux/common/http/params/HttpParams;)Lcom/groupbyinc/flux/common/http/io/SessionOutputBuffer; :com/groupbyinc/flux/common/http/impl/io/SocketOutputBuffer 2
3 * bind G(Ljava/net/Socket;Lcom/groupbyinc/flux/common/http/params/HttpParams;)V Socket 7 )com/groupbyinc/flux/common/http/util/Args 9 notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ; <
: = HTTP parameters ? http.socket.buffer-size A 1com/groupbyinc/flux/common/http/params/HttpParams C getIntParameter (Ljava/lang/String;I)I E F D G # $
I 0 1
K init ?(Lcom/groupbyinc/flux/common/http/io/SessionInputBuffer;Lcom/groupbyinc/flux/common/http/io/SessionOutputBuffer;Lcom/groupbyinc/flux/common/http/params/HttpParams;)V M N
O isOpen ()Z getSocket ()Ljava/net/Socket; getLocalAddress ()Ljava/net/InetAddress; java/net/Socket W U V
X Y getLocalPort ()I [ \
X ] getRemoteAddress getInetAddress ` V
X a
getRemotePort getPort d \
X e setSocketTimeout (I)V java/net/SocketException i
k setSoTimeout m h
X n ignore Ljava/net/SocketException; timeout getSocketTimeout getSoTimeout t \
X u shutdown close x
X y tmpsocket 'java/lang/UnsupportedOperationException | doFlush ~
shutdownOutput ?
X ?
shutdownInput ?
X ? java/lang/Throwable ? Ljava/io/IOException; )Ljava/lang/UnsupportedOperationException; sock
formatAddress 4(Ljava/lang/StringBuilder;Ljava/net/SocketAddress;)V java/net/InetSocketAddress ?
getAddress ? V
? ? java/net/InetAddress ? getHostAddress ()Ljava/lang/String; ? ?
? ? java/lang/StringBuilder ? java/net/SocketAddress ? java/io/Serializable ? append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ?
? e (I)Ljava/lang/StringBuilder; ? ?
? ? addr Ljava/net/InetSocketAddress; buffer Ljava/lang/StringBuilder;
socketAddress Ljava/net/SocketAddress; toString
? getRemoteSocketAddress ()Ljava/net/SocketAddress; ? ?
X ? getLocalSocketAddress ? ?
X ? ? ?
? <-> ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ? ?
? ? java/lang/Object ?
? ?
remoteAddress localAddress Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile
Deprecated RuntimeVisibleAnnotations ! B
B
? <