.class public Lcom/google/api/client/http/HttpResponseException; .super Ljava/io/IOException; .source "HttpResponseException.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/api/client/http/HttpResponseException$Builder; } .end annotation # static fields .field private static final serialVersionUID:J = -0x1a083fdabb32a37bL # instance fields .field private final content:Ljava/lang/String; .field private final transient headers:Lcom/google/api/client/http/HttpHeaders; .field private final statusCode:I .field private final statusMessage:Ljava/lang/String; # direct methods .method public constructor (Lcom/google/api/client/http/HttpResponse;)V .locals 1 .line 1 new-instance v0, Lcom/google/api/client/http/HttpResponseException$Builder; invoke-direct {v0, p1}, Lcom/google/api/client/http/HttpResponseException$Builder;->(Lcom/google/api/client/http/HttpResponse;)V invoke-direct {p0, v0}, Lcom/google/api/client/http/HttpResponseException;->(Lcom/google/api/client/http/HttpResponseException$Builder;)V return-void .end method .method public constructor (Lcom/google/api/client/http/HttpResponseException$Builder;)V .locals 1 .line 2 iget-object v0, p1, Lcom/google/api/client/http/HttpResponseException$Builder;->message:Ljava/lang/String; invoke-direct {p0, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V .line 3 iget v0, p1, Lcom/google/api/client/http/HttpResponseException$Builder;->statusCode:I iput v0, p0, Lcom/google/api/client/http/HttpResponseException;->statusCode:I .line 4 iget-object v0, p1, Lcom/google/api/client/http/HttpResponseException$Builder;->statusMessage:Ljava/lang/String; iput-object v0, p0, Lcom/google/api/client/http/HttpResponseException;->statusMessage:Ljava/lang/String; .line 5 iget-object v0, p1, Lcom/google/api/client/http/HttpResponseException$Builder;->headers:Lcom/google/api/client/http/HttpHeaders; iput-object v0, p0, Lcom/google/api/client/http/HttpResponseException;->headers:Lcom/google/api/client/http/HttpHeaders; .line 6 iget-object p1, p1, Lcom/google/api/client/http/HttpResponseException$Builder;->content:Ljava/lang/String; iput-object p1, p0, Lcom/google/api/client/http/HttpResponseException;->content:Ljava/lang/String; return-void .end method .method public static computeMessageBuffer(Lcom/google/api/client/http/HttpResponse;)Ljava/lang/StringBuilder; .locals 2 .line 1 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V .line 2 invoke-virtual {p0}, Lcom/google/api/client/http/HttpResponse;->getStatusCode()I move-result v1 if-eqz v1, :cond_0 .line 3 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; .line 4 :cond_0 invoke-virtual {p0}, Lcom/google/api/client/http/HttpResponse;->getStatusMessage()Ljava/lang/String; move-result-object p0 if-eqz p0, :cond_2 if-eqz v1, :cond_1 const/16 v1, 0x20 .line 5 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; .line 6 :cond_1 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_2 return-object v0 .end method # virtual methods .method public final getContent()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lcom/google/api/client/http/HttpResponseException;->content:Ljava/lang/String; return-object v0 .end method .method public getHeaders()Lcom/google/api/client/http/HttpHeaders; .locals 1 .line 1 iget-object v0, p0, Lcom/google/api/client/http/HttpResponseException;->headers:Lcom/google/api/client/http/HttpHeaders; return-object v0 .end method .method public final getStatusCode()I .locals 1 .line 1 iget v0, p0, Lcom/google/api/client/http/HttpResponseException;->statusCode:I return v0 .end method .method public final getStatusMessage()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lcom/google/api/client/http/HttpResponseException;->statusMessage:Ljava/lang/String; return-object v0 .end method .method public final isSuccessStatusCode()Z .locals 1 .line 1 iget v0, p0, Lcom/google/api/client/http/HttpResponseException;->statusCode:I invoke-static {v0}, Lcom/google/api/client/http/HttpStatusCodes;->isSuccess(I)Z move-result v0 return v0 .end method