Rabbit-R1/switch port/smali/smali_classes3/io/sentry/RequestDetails.smali

105 lines
2.6 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lio/sentry/RequestDetails;
.super Ljava/lang/Object;
.source "RequestDetails.java"
# instance fields
.field private final headers:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final url:Ljava/net/URL;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/util/Map;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 18
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "url is required"
.line 19
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "headers is required"
.line 20
invoke-static {p2, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 22
:try_start_0
invoke-static {p1}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;
move-result-object p1
invoke-virtual {p1}, Ljava/net/URI;->toURL()Ljava/net/URL;
move-result-object p1
iput-object p1, p0, Lio/sentry/RequestDetails;->url:Ljava/net/URL;
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
iput-object p2, p0, Lio/sentry/RequestDetails;->headers:Ljava/util/Map;
return-void
:catch_0
move-exception p0
.line 24
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Failed to compose the Sentry\'s server URL."
invoke-direct {p1, p2, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p1
.end method
# virtual methods
.method public getHeaders()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
iget-object p0, p0, Lio/sentry/RequestDetails;->headers:Ljava/util/Map;
return-object p0
.end method
.method public getUrl()Ljava/net/URL;
.locals 0
iget-object p0, p0, Lio/sentry/RequestDetails;->url:Ljava/net/URL;
return-object p0
.end method