.class public Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy; .super Ljava/lang/Object; .source "DisallowIdentityContentLengthStrategy.java" # interfaces .implements Lorg/apache/http/entity/ContentLengthStrategy; # static fields .field public static final INSTANCE:Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy; # instance fields .field private final contentLengthStrategy:Lorg/apache/http/entity/ContentLengthStrategy; # direct methods .method static constructor ()V .registers 3 .line 46 new-instance v0, Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy; new-instance v1, Lorg/apache/http/impl/entity/LaxContentLengthStrategy; const/4 v2, 0x0 invoke-direct {v1, v2}, Lorg/apache/http/impl/entity/LaxContentLengthStrategy;->(I)V invoke-direct {v0, v1}, Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy;->(Lorg/apache/http/entity/ContentLengthStrategy;)V sput-object v0, Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy;->INSTANCE:Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy; return-void .end method .method public constructor (Lorg/apache/http/entity/ContentLengthStrategy;)V .registers 2 .line 52 invoke-direct {p0}, Ljava/lang/Object;->()V .line 53 iput-object p1, p0, Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy;->contentLengthStrategy:Lorg/apache/http/entity/ContentLengthStrategy; return-void .end method # virtual methods .method public determineLength(Lorg/apache/http/HttpMessage;)J .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Lorg/apache/http/HttpException; } .end annotation .line 58 iget-object v0, p0, Lorg/apache/http/impl/entity/DisallowIdentityContentLengthStrategy;->contentLengthStrategy:Lorg/apache/http/entity/ContentLengthStrategy; invoke-interface {v0, p1}, Lorg/apache/http/entity/ContentLengthStrategy;->determineLength(Lorg/apache/http/HttpMessage;)J move-result-wide v0 const-wide/16 v2, -0x1 cmp-long p1, v0, v2 if-eqz p1, :cond_d return-wide v0 .line 60 :cond_d new-instance p1, Lorg/apache/http/ProtocolException; const-string v0, "Identity transfer encoding cannot be used" invoke-direct {p1, v0}, Lorg/apache/http/ProtocolException;->(Ljava/lang/String;)V throw p1 .end method