.class public Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory; .super Ljava/lang/Object; .source "DefaultBHttpClientConnectionFactory.java" # interfaces .implements Lorg/apache/http/HttpConnectionFactory; # annotations .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lorg/apache/http/HttpConnectionFactory<", "Lorg/apache/http/impl/DefaultBHttpClientConnection;", ">;" } .end annotation # static fields .field public static final INSTANCE:Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory; # instance fields .field private final cconfig:Lorg/apache/http/config/ConnectionConfig; .field private final incomingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; .field private final outgoingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; .field private final requestWriterFactory:Lorg/apache/http/io/HttpMessageWriterFactory; .annotation system Ldalvik/annotation/Signature; value = { "Lorg/apache/http/io/HttpMessageWriterFactory<", "Lorg/apache/http/HttpRequest;", ">;" } .end annotation .end field .field private final responseParserFactory:Lorg/apache/http/io/HttpMessageParserFactory; .annotation system Ldalvik/annotation/Signature; value = { "Lorg/apache/http/io/HttpMessageParserFactory<", "Lorg/apache/http/HttpResponse;", ">;" } .end annotation .end field # direct methods .method static constructor ()V .registers 1 .line 51 new-instance v0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory; invoke-direct {v0}, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->()V sput-object v0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->INSTANCE:Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory; return-void .end method .method public constructor ()V .registers 7 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 move-object v0, p0 .line 85 invoke-direct/range {v0 .. v5}, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->(Lorg/apache/http/config/ConnectionConfig;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V return-void .end method .method public constructor (Lorg/apache/http/config/ConnectionConfig;)V .registers 8 const/4 v4, 0x0 const/4 v5, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 move-object v0, p0 move-object v1, p1 .line 81 invoke-direct/range {v0 .. v5}, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->(Lorg/apache/http/config/ConnectionConfig;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V return-void .end method .method public constructor (Lorg/apache/http/config/ConnectionConfig;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/config/ConnectionConfig;", "Lorg/apache/http/entity/ContentLengthStrategy;", "Lorg/apache/http/entity/ContentLengthStrategy;", "Lorg/apache/http/io/HttpMessageWriterFactory<", "Lorg/apache/http/HttpRequest;", ">;", "Lorg/apache/http/io/HttpMessageParserFactory<", "Lorg/apache/http/HttpResponse;", ">;)V" } .end annotation .line 65 invoke-direct {p0}, Ljava/lang/Object;->()V if-eqz p1, :cond_6 goto :goto_8 .line 66 :cond_6 sget-object p1, Lorg/apache/http/config/ConnectionConfig;->DEFAULT:Lorg/apache/http/config/ConnectionConfig; :goto_8 iput-object p1, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; .line 67 iput-object p2, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->incomingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; .line 68 iput-object p3, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->outgoingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; .line 69 iput-object p4, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->requestWriterFactory:Lorg/apache/http/io/HttpMessageWriterFactory; .line 70 iput-object p5, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->responseParserFactory:Lorg/apache/http/io/HttpMessageParserFactory; return-void .end method .method public constructor (Lorg/apache/http/config/ConnectionConfig;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V .registers 10 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/config/ConnectionConfig;", "Lorg/apache/http/io/HttpMessageWriterFactory<", "Lorg/apache/http/HttpRequest;", ">;", "Lorg/apache/http/io/HttpMessageParserFactory<", "Lorg/apache/http/HttpResponse;", ">;)V" } .end annotation const/4 v2, 0x0 const/4 v3, 0x0 move-object v0, p0 move-object v1, p1 move-object v4, p2 move-object v5, p3 .line 77 invoke-direct/range {v0 .. v5}, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->(Lorg/apache/http/config/ConnectionConfig;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V return-void .end method # virtual methods .method public bridge synthetic createConnection(Ljava/net/Socket;)Lorg/apache/http/HttpConnection; .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 48 invoke-virtual {p0, p1}, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->createConnection(Ljava/net/Socket;)Lorg/apache/http/impl/DefaultBHttpClientConnection; move-result-object p1 return-object p1 .end method .method public createConnection(Ljava/net/Socket;)Lorg/apache/http/impl/DefaultBHttpClientConnection; .registers 13 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 90 new-instance v10, Lorg/apache/http/impl/DefaultBHttpClientConnection; iget-object v0, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; invoke-virtual {v0}, Lorg/apache/http/config/ConnectionConfig;->getBufferSize()I move-result v1 iget-object v0, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; invoke-virtual {v0}, Lorg/apache/http/config/ConnectionConfig;->getFragmentSizeHint()I move-result v2 iget-object v0, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; invoke-static {v0}, Lorg/apache/http/impl/ConnSupport;->createDecoder(Lorg/apache/http/config/ConnectionConfig;)Ljava/nio/charset/CharsetDecoder; move-result-object v3 iget-object v0, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; invoke-static {v0}, Lorg/apache/http/impl/ConnSupport;->createEncoder(Lorg/apache/http/config/ConnectionConfig;)Ljava/nio/charset/CharsetEncoder; move-result-object v4 iget-object v0, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->cconfig:Lorg/apache/http/config/ConnectionConfig; invoke-virtual {v0}, Lorg/apache/http/config/ConnectionConfig;->getMessageConstraints()Lorg/apache/http/config/MessageConstraints; move-result-object v5 iget-object v6, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->incomingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; iget-object v7, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->outgoingContentStrategy:Lorg/apache/http/entity/ContentLengthStrategy; iget-object v8, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->requestWriterFactory:Lorg/apache/http/io/HttpMessageWriterFactory; iget-object v9, p0, Lorg/apache/http/impl/DefaultBHttpClientConnectionFactory;->responseParserFactory:Lorg/apache/http/io/HttpMessageParserFactory; move-object v0, v10 invoke-direct/range {v0 .. v9}, Lorg/apache/http/impl/DefaultBHttpClientConnection;->(IILjava/nio/charset/CharsetDecoder;Ljava/nio/charset/CharsetEncoder;Lorg/apache/http/config/MessageConstraints;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/entity/ContentLengthStrategy;Lorg/apache/http/io/HttpMessageWriterFactory;Lorg/apache/http/io/HttpMessageParserFactory;)V .line 100 invoke-virtual {v10, p1}, Lorg/apache/http/impl/DefaultBHttpClientConnection;->bind(Ljava/net/Socket;)V return-object v10 .end method