.class public Lorg/apache/http/impl/client/EntityEnclosingRequestWrapper; .super Lorg/apache/http/impl/client/RequestWrapper; .source "EntityEnclosingRequestWrapper.java" # interfaces .implements Lorg/apache/http/HttpEntityEnclosingRequest; # annotations .annotation build Lorg/apache/http/annotation/NotThreadSafe; .end annotation # instance fields .field private entity:Lorg/apache/http/HttpEntity; # direct methods .method public constructor (Lorg/apache/http/HttpEntityEnclosingRequest;)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Lorg/apache/http/ProtocolException; } .end annotation .line 1 invoke-direct {p0, p1}, Lorg/apache/http/impl/client/RequestWrapper;->(Lorg/apache/http/HttpRequest;)V .line 2 invoke-interface {p1}, Lorg/apache/http/HttpEntityEnclosingRequest;->getEntity()Lorg/apache/http/HttpEntity; move-result-object p1 iput-object p1, p0, Lorg/apache/http/impl/client/EntityEnclosingRequestWrapper;->entity:Lorg/apache/http/HttpEntity; return-void .end method # virtual methods .method public expectContinue()Z .locals 2 const-string v0, "Expect" .line 1 invoke-virtual {p0, v0}, Lorg/apache/http/message/AbstractHttpMessage;->getFirstHeader(Ljava/lang/String;)Lorg/apache/http/Header; move-result-object v0 if-eqz v0, :cond_0 .line 2 invoke-interface {v0}, Lorg/apache/http/Header;->getValue()Ljava/lang/String; move-result-object v0 const-string v1, "100-Continue" invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z move-result v0 if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public getEntity()Lorg/apache/http/HttpEntity; .locals 1 .line 1 iget-object v0, p0, Lorg/apache/http/impl/client/EntityEnclosingRequestWrapper;->entity:Lorg/apache/http/HttpEntity; return-object v0 .end method .method public isRepeatable()Z .locals 1 .line 1 iget-object v0, p0, Lorg/apache/http/impl/client/EntityEnclosingRequestWrapper;->entity:Lorg/apache/http/HttpEntity; if-eqz v0, :cond_1 invoke-interface {v0}, Lorg/apache/http/HttpEntity;->isRepeatable()Z move-result v0 if-eqz v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 goto :goto_1 :cond_1 :goto_0 const/4 v0, 0x1 :goto_1 return v0 .end method .method public setEntity(Lorg/apache/http/HttpEntity;)V .locals 0 .line 1 iput-object p1, p0, Lorg/apache/http/impl/client/EntityEnclosingRequestWrapper;->entity:Lorg/apache/http/HttpEntity; return-void .end method