ProtocolRequest.smali
.class public abstract Lcom/h/o/ProtocolRequest;
.super Lcom/h/r/BasicRequest;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Lcom/h/o/ProtocolRequest;",
"Result:",
"Ljava/lang/Object;",
">",
"Lcom/h/r/BasicRequest",
"<TT;>;"
}
.end annotation
# instance fields
.field private mCacheKey:Ljava/lang/String;
.field private mCacheMode:Lcom/h/o/CacheMode;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.registers 3
sget-object v0, Lcom/h/r/RequestMethod;->GET:Lcom/h/r/RequestMethod;
invoke-direct {p0, p1, v0}, Lcom/h/o/ProtocolRequest;-><init>(Ljava/lang/String;Lcom/h/r/RequestMethod;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Lcom/h/r/RequestMethod;)V
.registers 4
invoke-direct {p0, p1, p2}, Lcom/h/r/BasicRequest;-><init>(Ljava/lang/String;Lcom/h/r/RequestMethod;)V
sget-object v0, Lcom/h/o/CacheMode;->DEFAULT:Lcom/h/o/CacheMode;
iput-object v0, p0, Lcom/h/o/ProtocolRequest;->mCacheMode:Lcom/h/o/CacheMode;
return-void
.end method
# virtual methods
.method public getCacheKey()Ljava/lang/String;
.registers 2
iget-object v0, p0, Lcom/h/o/ProtocolRequest;->mCacheKey:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_d
invoke-virtual {p0}, Lcom/h/o/ProtocolRequest;->url()Ljava/lang/String;
move-result-object v0
:goto_c
return-object v0
:cond_d
iget-object v0, p0, Lcom/h/o/ProtocolRequest;->mCacheKey:Ljava/lang/String;
goto :goto_c
.end method
.method public getCacheMode()Lcom/h/o/CacheMode;
.registers 2
iget-object v0, p0, Lcom/h/o/ProtocolRequest;->mCacheMode:Lcom/h/o/CacheMode;
return-object v0
.end method
.method public abstract parseResponse(Lcom/h/r/Headers;[B)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/h/r/Headers;",
"[B)TResult;"
}
.end annotation
.end method
.method public setCacheKey(Ljava/lang/String;)Lcom/h/o/ProtocolRequest;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")TT;"
}
.end annotation
iput-object p1, p0, Lcom/h/o/ProtocolRequest;->mCacheKey:Ljava/lang/String;
return-object p0
.end method
.method public setCacheMode(Lcom/h/o/CacheMode;)Lcom/h/o/ProtocolRequest;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/h/o/CacheMode;",
")TT;"
}
.end annotation
iput-object p1, p0, Lcom/h/o/ProtocolRequest;->mCacheMode:Lcom/h/o/CacheMode;
return-object p0
.end method