123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- .class public final Lokhttp3/internal/http/HttpMethod;
- .super Ljava/lang/Object;
- .source ""
- # direct methods
- .method private constructor <init>()V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- return-void
- .end method
- .method public static invalidatesCache(Ljava/lang/String;)Z
- .locals 1
- const-string v0, "POST"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PATCH"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PUT"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "DELETE"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "MOVE"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p0
- if-eqz p0, :cond_0
- goto :goto_0
- :cond_0
- const/4 p0, 0x0
- goto :goto_1
- :cond_1
- :goto_0
- const/4 p0, 0x1
- :goto_1
- return p0
- .end method
- .method public static permitsRequestBody(Ljava/lang/String;)Z
- .locals 1
- invoke-static {p0}, Lokhttp3/internal/http/HttpMethod;->requiresRequestBody(Ljava/lang/String;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "OPTIONS"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "DELETE"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PROPFIND"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "MKCOL"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "LOCK"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p0
- if-eqz p0, :cond_0
- goto :goto_0
- :cond_0
- const/4 p0, 0x0
- goto :goto_1
- :cond_1
- :goto_0
- const/4 p0, 0x1
- :goto_1
- return p0
- .end method
- .method public static redirectsToGet(Ljava/lang/String;)Z
- .locals 1
- const-string v0, "PROPFIND"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p0
- xor-int/lit8 p0, p0, 0x1
- return p0
- .end method
- .method public static redirectsWithBody(Ljava/lang/String;)Z
- .locals 1
- const-string v0, "PROPFIND"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p0
- return p0
- .end method
- .method public static requiresRequestBody(Ljava/lang/String;)Z
- .locals 1
- const-string v0, "POST"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PUT"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PATCH"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "PROPPATCH"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-nez v0, :cond_1
- const-string v0, "REPORT"
- invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result p0
- if-eqz p0, :cond_0
- goto :goto_0
- :cond_0
- const/4 p0, 0x0
- goto :goto_1
- :cond_1
- :goto_0
- const/4 p0, 0x1
- :goto_1
- return p0
- .end method
|