.class public Lorg/apache/http/protocol/HttpService; .super Ljava/lang/Object; .source "HttpService.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter; } .end annotation # instance fields .field private volatile connStrategy:Lorg/apache/http/ConnectionReuseStrategy; .field private volatile expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; .field private volatile handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; .field private volatile params:Lorg/apache/http/params/HttpParams; .field private volatile processor:Lorg/apache/http/protocol/HttpProcessor; .field private volatile responseFactory:Lorg/apache/http/HttpResponseFactory; # direct methods .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;)V .registers 5 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 161 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x0 .line 81 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; .line 82 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; .line 83 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; .line 84 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->connStrategy:Lorg/apache/http/ConnectionReuseStrategy; .line 85 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; .line 86 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; .line 162 invoke-virtual {p0, p1}, Lorg/apache/http/protocol/HttpService;->setHttpProcessor(Lorg/apache/http/protocol/HttpProcessor;)V .line 163 invoke-virtual {p0, p2}, Lorg/apache/http/protocol/HttpService;->setConnReuseStrategy(Lorg/apache/http/ConnectionReuseStrategy;)V .line 164 invoke-virtual {p0, p3}, Lorg/apache/http/protocol/HttpService;->setResponseFactory(Lorg/apache/http/HttpResponseFactory;)V return-void .end method .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;)V .registers 11 const/4 v5, 0x0 move-object v0, p0 move-object v1, p1 move-object v2, p2 move-object v3, p3 move-object v4, p4 .line 213 invoke-direct/range {v0 .. v5}, Lorg/apache/http/protocol/HttpService;->(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;Lorg/apache/http/protocol/HttpExpectationVerifier;)V return-void .end method .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;Lorg/apache/http/protocol/HttpExpectationVerifier;)V .registers 7 .line 186 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x0 .line 81 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; .line 82 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; .line 83 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; .line 84 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->connStrategy:Lorg/apache/http/ConnectionReuseStrategy; .line 85 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; .line 86 iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; .line 187 const-string v0, "HTTP processor" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Lorg/apache/http/protocol/HttpProcessor; iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; if-eqz p2, :cond_1d goto :goto_1f .line 188 :cond_1d sget-object p2, Lorg/apache/http/impl/DefaultConnectionReuseStrategy;->INSTANCE:Lorg/apache/http/impl/DefaultConnectionReuseStrategy; :goto_1f iput-object p2, p0, Lorg/apache/http/protocol/HttpService;->connStrategy:Lorg/apache/http/ConnectionReuseStrategy; if-eqz p3, :cond_24 goto :goto_26 .line 190 :cond_24 sget-object p3, Lorg/apache/http/impl/DefaultHttpResponseFactory;->INSTANCE:Lorg/apache/http/impl/DefaultHttpResponseFactory; :goto_26 iput-object p3, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; .line 192 iput-object p4, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; .line 193 iput-object p5, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; return-void .end method .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerResolver;Lorg/apache/http/params/HttpParams;)V .registers 12 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 138 new-instance v4, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter; invoke-direct {v4, p4}, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter;->(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)V const/4 v5, 0x0 move-object v0, p0 move-object v1, p1 move-object v2, p2 move-object v3, p3 invoke-direct/range {v0 .. v5}, Lorg/apache/http/protocol/HttpService;->(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;Lorg/apache/http/protocol/HttpExpectationVerifier;)V .line 143 iput-object p5, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; return-void .end method .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerResolver;Lorg/apache/http/protocol/HttpExpectationVerifier;Lorg/apache/http/params/HttpParams;)V .registers 13 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 110 new-instance v4, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter; invoke-direct {v4, p4}, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter;->(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)V move-object v0, p0 move-object v1, p1 move-object v2, p2 move-object v3, p3 move-object v5, p5 invoke-direct/range {v0 .. v5}, Lorg/apache/http/protocol/HttpService;->(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;Lorg/apache/http/protocol/HttpExpectationVerifier;)V .line 115 iput-object p6, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; return-void .end method .method public constructor (Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/protocol/HttpRequestHandlerMapper;)V .registers 9 const/4 v3, 0x0 const/4 v5, 0x0 const/4 v2, 0x0 move-object v0, p0 move-object v1, p1 move-object v4, p2 .line 226 invoke-direct/range {v0 .. v5}, Lorg/apache/http/protocol/HttpService;->(Lorg/apache/http/protocol/HttpProcessor;Lorg/apache/http/ConnectionReuseStrategy;Lorg/apache/http/HttpResponseFactory;Lorg/apache/http/protocol/HttpRequestHandlerMapper;Lorg/apache/http/protocol/HttpExpectationVerifier;)V return-void .end method .method private canResponseHaveBody(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;)Z .registers 5 const/4 v0, 0x0 if-eqz p1, :cond_14 .line 373 invoke-interface {p1}, Lorg/apache/http/HttpRequest;->getRequestLine()Lorg/apache/http/RequestLine; move-result-object p1 invoke-interface {p1}, Lorg/apache/http/RequestLine;->getMethod()Ljava/lang/String; move-result-object p1 const-string v1, "HEAD" invoke-virtual {v1, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z move-result p1 if-eqz p1, :cond_14 return v0 .line 376 :cond_14 invoke-interface {p2}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine; move-result-object p1 invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I move-result p1 const/16 p2, 0xc8 if-lt p1, p2, :cond_2d const/16 p2, 0xcc if-eq p1, p2, :cond_2d const/16 p2, 0x130 if-eq p1, p2, :cond_2d const/16 p2, 0xcd if-eq p1, p2, :cond_2d const/4 v0, 0x1 :cond_2d return v0 .end method # virtual methods .method protected doService(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Lorg/apache/http/HttpException;, Ljava/io/IOException; } .end annotation .line 433 iget-object v0, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; if-eqz v0, :cond_b .line 434 iget-object v0, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; invoke-interface {v0, p1}, Lorg/apache/http/protocol/HttpRequestHandlerMapper;->lookup(Lorg/apache/http/HttpRequest;)Lorg/apache/http/protocol/HttpRequestHandler; move-result-object v0 goto :goto_c :cond_b const/4 v0, 0x0 :goto_c if-eqz v0, :cond_12 .line 437 invoke-interface {v0, p1, p2, p3}, Lorg/apache/http/protocol/HttpRequestHandler;->handle(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)V goto :goto_17 :cond_12 const/16 p1, 0x1f5 .line 439 invoke-interface {p2, p1}, Lorg/apache/http/HttpResponse;->setStatusCode(I)V :goto_17 return-void .end method .method public getParams()Lorg/apache/http/params/HttpParams; .registers 2 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 285 iget-object v0, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; return-object v0 .end method .method protected handleException(Lorg/apache/http/HttpException;Lorg/apache/http/HttpResponse;)V .registers 4 .line 392 instance-of v0, p1, Lorg/apache/http/MethodNotSupportedException; if-eqz v0, :cond_a const/16 v0, 0x1f5 .line 393 invoke-interface {p2, v0}, Lorg/apache/http/HttpResponse;->setStatusCode(I)V goto :goto_23 .line 394 :cond_a instance-of v0, p1, Lorg/apache/http/UnsupportedHttpVersionException; if-eqz v0, :cond_14 const/16 v0, 0x1f9 .line 395 invoke-interface {p2, v0}, Lorg/apache/http/HttpResponse;->setStatusCode(I)V goto :goto_23 .line 396 :cond_14 instance-of v0, p1, Lorg/apache/http/ProtocolException; if-eqz v0, :cond_1e const/16 v0, 0x190 .line 397 invoke-interface {p2, v0}, Lorg/apache/http/HttpResponse;->setStatusCode(I)V goto :goto_23 :cond_1e const/16 v0, 0x1f4 .line 399 invoke-interface {p2, v0}, Lorg/apache/http/HttpResponse;->setStatusCode(I)V .line 401 :goto_23 invoke-virtual {p1}, Lorg/apache/http/HttpException;->getMessage()Ljava/lang/String; move-result-object v0 if-nez v0, :cond_2d .line 403 invoke-virtual {p1}, Lorg/apache/http/HttpException;->toString()Ljava/lang/String; move-result-object v0 .line 405 :cond_2d invoke-static {v0}, Lorg/apache/http/util/EncodingUtils;->getAsciiBytes(Ljava/lang/String;)[B move-result-object p1 .line 406 new-instance v0, Lorg/apache/http/entity/ByteArrayEntity; invoke-direct {v0, p1}, Lorg/apache/http/entity/ByteArrayEntity;->([B)V .line 407 const-string p1, "text/plain; charset=US-ASCII" invoke-virtual {v0, p1}, Lorg/apache/http/entity/ByteArrayEntity;->setContentType(Ljava/lang/String;)V .line 408 invoke-interface {p2, v0}, Lorg/apache/http/HttpResponse;->setEntity(Lorg/apache/http/HttpEntity;)V return-void .end method .method public handleRequest(Lorg/apache/http/HttpServerConnection;Lorg/apache/http/protocol/HttpContext;)V .registers 11 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/HttpException; } .end annotation .line 302 const-string v0, "http.connection" invoke-interface {p2, v0, p1}, Lorg/apache/http/protocol/HttpContext;->setAttribute(Ljava/lang/String;Ljava/lang/Object;)V const/16 v0, 0x1f4 const/4 v1, 0x0 .line 308 :try_start_8 invoke-interface {p1}, Lorg/apache/http/HttpServerConnection;->receiveRequestHeader()Lorg/apache/http/HttpRequest; move-result-object v2 :try_end_c .catch Lorg/apache/http/HttpException; {:try_start_8 .. :try_end_c} :catch_83 .line 309 :try_start_c instance-of v3, v2, Lorg/apache/http/HttpEntityEnclosingRequest; const/16 v4, 0xc8 if-eqz v3, :cond_5b .line 311 move-object v3, v2 check-cast v3, Lorg/apache/http/HttpEntityEnclosingRequest; invoke-interface {v3}, Lorg/apache/http/HttpEntityEnclosingRequest;->expectContinue()Z move-result v3 if-eqz v3, :cond_55 .line 312 iget-object v3, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; sget-object v5, Lorg/apache/http/HttpVersion;->HTTP_1_1:Lorg/apache/http/HttpVersion; const/16 v6, 0x64 invoke-interface {v3, v5, v6, p2}, Lorg/apache/http/HttpResponseFactory;->newHttpResponse(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; move-result-object v3 .line 314 iget-object v5, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; :try_end_27 .catch Lorg/apache/http/HttpException; {:try_start_c .. :try_end_27} :catch_81 if-eqz v5, :cond_3c .line 316 :try_start_29 iget-object v5, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; invoke-interface {v5, v2, v3, p2}, Lorg/apache/http/protocol/HttpExpectationVerifier;->verify(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)V :try_end_2e .catch Lorg/apache/http/HttpException; {:try_start_29 .. :try_end_2e} :catch_2f goto :goto_3c :catch_2f move-exception v3 .line 318 :try_start_30 iget-object v5, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; sget-object v6, Lorg/apache/http/HttpVersion;->HTTP_1_0:Lorg/apache/http/HttpVersion; invoke-interface {v5, v6, v0, p2}, Lorg/apache/http/HttpResponseFactory;->newHttpResponse(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; move-result-object v5 .line 320 invoke-virtual {p0, v3, v5}, Lorg/apache/http/protocol/HttpService;->handleException(Lorg/apache/http/HttpException;Lorg/apache/http/HttpResponse;)V move-object v3, v5 .line 323 :cond_3c :goto_3c invoke-interface {v3}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine; move-result-object v5 invoke-interface {v5}, Lorg/apache/http/StatusLine;->getStatusCode()I move-result v5 if-ge v5, v4, :cond_53 .line 326 invoke-interface {p1, v3}, Lorg/apache/http/HttpServerConnection;->sendResponseHeader(Lorg/apache/http/HttpResponse;)V .line 327 invoke-interface {p1}, Lorg/apache/http/HttpServerConnection;->flush()V .line 329 move-object v3, v2 check-cast v3, Lorg/apache/http/HttpEntityEnclosingRequest; invoke-interface {p1, v3}, Lorg/apache/http/HttpServerConnection;->receiveRequestEntity(Lorg/apache/http/HttpEntityEnclosingRequest;)V goto :goto_5b :cond_53 move-object v1, v3 goto :goto_5b .line 332 :cond_55 move-object v3, v2 check-cast v3, Lorg/apache/http/HttpEntityEnclosingRequest; invoke-interface {p1, v3}, Lorg/apache/http/HttpServerConnection;->receiveRequestEntity(Lorg/apache/http/HttpEntityEnclosingRequest;)V .line 336 :cond_5b :goto_5b const-string v3, "http.request" invoke-interface {p2, v3, v2}, Lorg/apache/http/protocol/HttpContext;->setAttribute(Ljava/lang/String;Ljava/lang/Object;)V if-nez v1, :cond_72 .line 339 iget-object v1, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; sget-object v3, Lorg/apache/http/HttpVersion;->HTTP_1_1:Lorg/apache/http/HttpVersion; invoke-interface {v1, v3, v4, p2}, Lorg/apache/http/HttpResponseFactory;->newHttpResponse(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; move-result-object v1 .line 341 iget-object v3, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; invoke-interface {v3, v2, p2}, Lorg/apache/http/protocol/HttpProcessor;->process(Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)V .line 342 invoke-virtual {p0, v2, v1, p2}, Lorg/apache/http/protocol/HttpService;->doService(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)V .line 346 :cond_72 instance-of v3, v2, Lorg/apache/http/HttpEntityEnclosingRequest; if-eqz v3, :cond_93 .line 347 move-object v3, v2 check-cast v3, Lorg/apache/http/HttpEntityEnclosingRequest; invoke-interface {v3}, Lorg/apache/http/HttpEntityEnclosingRequest;->getEntity()Lorg/apache/http/HttpEntity; move-result-object v3 .line 348 invoke-static {v3}, Lorg/apache/http/util/EntityUtils;->consume(Lorg/apache/http/HttpEntity;)V :try_end_80 .catch Lorg/apache/http/HttpException; {:try_start_30 .. :try_end_80} :catch_81 goto :goto_93 :catch_81 move-exception v1 goto :goto_87 :catch_83 move-exception v2 move-object v7, v2 move-object v2, v1 move-object v1, v7 .line 352 :goto_87 iget-object v3, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; sget-object v4, Lorg/apache/http/HttpVersion;->HTTP_1_0:Lorg/apache/http/HttpVersion; invoke-interface {v3, v4, v0, p2}, Lorg/apache/http/HttpResponseFactory;->newHttpResponse(Lorg/apache/http/ProtocolVersion;ILorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; move-result-object v0 .line 355 invoke-virtual {p0, v1, v0}, Lorg/apache/http/protocol/HttpService;->handleException(Lorg/apache/http/HttpException;Lorg/apache/http/HttpResponse;)V move-object v1, v0 .line 358 :cond_93 :goto_93 const-string v0, "http.response" invoke-interface {p2, v0, v1}, Lorg/apache/http/protocol/HttpContext;->setAttribute(Ljava/lang/String;Ljava/lang/Object;)V .line 360 iget-object v0, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; invoke-interface {v0, v1, p2}, Lorg/apache/http/protocol/HttpProcessor;->process(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)V .line 361 invoke-interface {p1, v1}, Lorg/apache/http/HttpServerConnection;->sendResponseHeader(Lorg/apache/http/HttpResponse;)V .line 362 invoke-direct {p0, v2, v1}, Lorg/apache/http/protocol/HttpService;->canResponseHaveBody(Lorg/apache/http/HttpRequest;Lorg/apache/http/HttpResponse;)Z move-result v0 if-eqz v0, :cond_a9 .line 363 invoke-interface {p1, v1}, Lorg/apache/http/HttpServerConnection;->sendResponseEntity(Lorg/apache/http/HttpResponse;)V .line 365 :cond_a9 invoke-interface {p1}, Lorg/apache/http/HttpServerConnection;->flush()V .line 367 iget-object v0, p0, Lorg/apache/http/protocol/HttpService;->connStrategy:Lorg/apache/http/ConnectionReuseStrategy; invoke-interface {v0, v1, p2}, Lorg/apache/http/ConnectionReuseStrategy;->keepAlive(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z move-result p2 if-nez p2, :cond_b7 .line 368 invoke-interface {p1}, Lorg/apache/http/HttpServerConnection;->close()V :cond_b7 return-void .end method .method public setConnReuseStrategy(Lorg/apache/http/ConnectionReuseStrategy;)V .registers 3 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 243 const-string v0, "Connection reuse strategy" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 244 iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->connStrategy:Lorg/apache/http/ConnectionReuseStrategy; return-void .end method .method public setExpectationVerifier(Lorg/apache/http/protocol/HttpExpectationVerifier;)V .registers 2 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 277 iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->expectationVerifier:Lorg/apache/http/protocol/HttpExpectationVerifier; return-void .end method .method public setHandlerResolver(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)V .registers 3 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 269 new-instance v0, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter; invoke-direct {v0, p1}, Lorg/apache/http/protocol/HttpService$HttpRequestHandlerResolverAdapter;->(Lorg/apache/http/protocol/HttpRequestHandlerResolver;)V iput-object v0, p0, Lorg/apache/http/protocol/HttpService;->handlerMapper:Lorg/apache/http/protocol/HttpRequestHandlerMapper; return-void .end method .method public setHttpProcessor(Lorg/apache/http/protocol/HttpProcessor;)V .registers 3 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 234 const-string v0, "HTTP processor" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 235 iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->processor:Lorg/apache/http/protocol/HttpProcessor; return-void .end method .method public setParams(Lorg/apache/http/params/HttpParams;)V .registers 2 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 261 iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->params:Lorg/apache/http/params/HttpParams; return-void .end method .method public setResponseFactory(Lorg/apache/http/HttpResponseFactory;)V .registers 3 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 252 const-string v0, "Response factory" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 253 iput-object p1, p0, Lorg/apache/http/protocol/HttpService;->responseFactory:Lorg/apache/http/HttpResponseFactory; return-void .end method