2022-06-10 21:38:30 +09:00

75 lines
1.7 KiB
Smali

.class public final Lorg/apache/http/auth/params/AuthParams;
.super Ljava/lang/Object;
.source "AuthParams.java"
# annotations
.annotation build Lorg/apache/http/annotation/Immutable;
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getCredentialCharset(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;
.locals 1
if-eqz p0, :cond_1
const-string v0, "http.auth.credential-charset"
.line 1
invoke-interface {p0, v0}, Lorg/apache/http/params/HttpParams;->getParameter(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
if-nez p0, :cond_0
const-string p0, "US-ASCII"
:cond_0
return-object p0
.line 2
:cond_1
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "HTTP parameters may not be null"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static setCredentialCharset(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V
.locals 1
if-eqz p0, :cond_0
const-string v0, "http.auth.credential-charset"
.line 1
invoke-interface {p0, v0, p1}, Lorg/apache/http/params/HttpParams;->setParameter(Ljava/lang/String;Ljava/lang/Object;)Lorg/apache/http/params/HttpParams;
return-void
.line 2
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "HTTP parameters may not be null"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method