123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- .class public final enum Lokhttp3/mockwebserver/SocketPolicy;
- .super Ljava/lang/Enum;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/lang/Enum<",
- "Lokhttp3/mockwebserver/SocketPolicy;",
- ">;"
- }
- .end annotation
- # static fields
- .field private static final synthetic $VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- .field public static final enum UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- # direct methods
- .method static constructor <clinit>()V
- .locals 15
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v1, 0x0
- const-string v2, "KEEP_OPEN"
- invoke-direct {v0, v2, v1}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v2, 0x1
- const-string v3, "DISCONNECT_AT_END"
- invoke-direct {v0, v3, v2}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v3, 0x2
- const-string v4, "UPGRADE_TO_SSL_AT_END"
- invoke-direct {v0, v4, v3}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v4, 0x3
- const-string v5, "DISCONNECT_AT_START"
- invoke-direct {v0, v5, v4}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v5, 0x4
- const-string v6, "DISCONNECT_AFTER_REQUEST"
- invoke-direct {v0, v6, v5}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v6, 0x5
- const-string v7, "DISCONNECT_DURING_REQUEST_BODY"
- invoke-direct {v0, v7, v6}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v7, 0x6
- const-string v8, "DISCONNECT_DURING_RESPONSE_BODY"
- invoke-direct {v0, v8, v7}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/4 v8, 0x7
- const-string v9, "FAIL_HANDSHAKE"
- invoke-direct {v0, v9, v8}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v9, 0x8
- const-string v10, "SHUTDOWN_INPUT_AT_END"
- invoke-direct {v0, v10, v9}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v10, 0x9
- const-string v11, "SHUTDOWN_OUTPUT_AT_END"
- invoke-direct {v0, v11, v10}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v11, 0xa
- const-string v12, "NO_RESPONSE"
- invoke-direct {v0, v12, v11}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v12, 0xb
- const-string v13, "RESET_STREAM_AT_START"
- invoke-direct {v0, v13, v12}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- new-instance v0, Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v13, 0xc
- const-string v14, "EXPECT_CONTINUE"
- invoke-direct {v0, v14, v13}, Lokhttp3/mockwebserver/SocketPolicy;-><init>(Ljava/lang/String;I)V
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
- const/16 v0, 0xd
- new-array v0, v0, [Lokhttp3/mockwebserver/SocketPolicy;
- sget-object v14, Lokhttp3/mockwebserver/SocketPolicy;->KEEP_OPEN:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v14, v0, v1
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v2
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->UPGRADE_TO_SSL_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v3
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v4
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_AFTER_REQUEST:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v5
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_REQUEST_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v6
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->DISCONNECT_DURING_RESPONSE_BODY:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v7
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->FAIL_HANDSHAKE:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v8
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_INPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v9
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->SHUTDOWN_OUTPUT_AT_END:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v10
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->NO_RESPONSE:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v11
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->RESET_STREAM_AT_START:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v12
- sget-object v1, Lokhttp3/mockwebserver/SocketPolicy;->EXPECT_CONTINUE:Lokhttp3/mockwebserver/SocketPolicy;
- aput-object v1, v0, v13
- sput-object v0, Lokhttp3/mockwebserver/SocketPolicy;->$VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
- return-void
- .end method
- .method private constructor <init>(Ljava/lang/String;I)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "()V"
- }
- .end annotation
- invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
- return-void
- .end method
- .method public static valueOf(Ljava/lang/String;)Lokhttp3/mockwebserver/SocketPolicy;
- .locals 1
- const-class v0, Lokhttp3/mockwebserver/SocketPolicy;
- invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
- move-result-object p0
- check-cast p0, Lokhttp3/mockwebserver/SocketPolicy;
- return-object p0
- .end method
- .method public static values()[Lokhttp3/mockwebserver/SocketPolicy;
- .locals 1
- sget-object v0, Lokhttp3/mockwebserver/SocketPolicy;->$VALUES:[Lokhttp3/mockwebserver/SocketPolicy;
- invoke-virtual {v0}, [Lokhttp3/mockwebserver/SocketPolicy;->clone()Ljava/lang/Object;
- move-result-object v0
- check-cast v0, [Lokhttp3/mockwebserver/SocketPolicy;
- return-object v0
- .end method
|