127 lines
3.1 KiB
Smali
127 lines
3.1 KiB
Smali
.class public final Lcz/msebera/android/httpclient/HttpVersion;
|
|
.super Lcz/msebera/android/httpclient/ProtocolVersion;
|
|
.source "HttpVersion.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final HTTP:Ljava/lang/String; = "HTTP"
|
|
|
|
.field public static final HTTP_0_9:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
.field public static final HTTP_1_0:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
.field public static final HTTP_1_1:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
.field private static final serialVersionUID:J = -0x514703574c384bf0L
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x9
|
|
|
|
invoke-direct {v0, v1, v2}, Lcz/msebera/android/httpclient/HttpVersion;-><init>(II)V
|
|
|
|
sput-object v0, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_0_9:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
.line 2
|
|
new-instance v0, Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v2, v1}, Lcz/msebera/android/httpclient/HttpVersion;-><init>(II)V
|
|
|
|
sput-object v0, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_1_0:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
.line 3
|
|
new-instance v0, Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
invoke-direct {v0, v2, v2}, Lcz/msebera/android/httpclient/HttpVersion;-><init>(II)V
|
|
|
|
sput-object v0, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_1_1:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(II)V
|
|
.locals 1
|
|
|
|
const-string v0, "HTTP"
|
|
|
|
.line 1
|
|
invoke-direct {p0, v0, p1, p2}, Lcz/msebera/android/httpclient/ProtocolVersion;-><init>(Ljava/lang/String;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public forVersion(II)Lcz/msebera/android/httpclient/ProtocolVersion;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcz/msebera/android/httpclient/ProtocolVersion;->major:I
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
iget v0, p0, Lcz/msebera/android/httpclient/ProtocolVersion;->minor:I
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, v0, :cond_2
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
.line 2
|
|
sget-object p1, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_1_0:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
if-ne p2, v0, :cond_2
|
|
|
|
.line 3
|
|
sget-object p1, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_1_1:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
if-nez p1, :cond_3
|
|
|
|
const/16 v0, 0x9
|
|
|
|
if-ne p2, v0, :cond_3
|
|
|
|
.line 4
|
|
sget-object p1, Lcz/msebera/android/httpclient/HttpVersion;->HTTP_0_9:Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
return-object p1
|
|
|
|
.line 5
|
|
:cond_3
|
|
new-instance v0, Lcz/msebera/android/httpclient/HttpVersion;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcz/msebera/android/httpclient/HttpVersion;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|