alexandroid/decompiled/jadx/sources/com/amazonaws/util/URIBuilder.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

81 lines
2 KiB
Java

package com.amazonaws.util;
import com.amazonaws.Protocol;
import java.net.URI;
import java.net.URISyntaxException;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes6.dex */
public class URIBuilder {
private static final int DEFAULT_PORT = -1;
private static final String DEFAULT_SCHEME = Protocol.HTTPS.toString();
private String fragment;
private String host;
private String path;
private int port;
private String query;
private String scheme;
private String userInfo;
private URIBuilder(URI uri) {
this.scheme = uri.getScheme();
this.userInfo = uri.getUserInfo();
this.host = uri.getHost();
this.port = uri.getPort();
this.path = uri.getPath();
this.query = uri.getQuery();
this.fragment = uri.getFragment();
}
public static URIBuilder builder() {
return new URIBuilder();
}
public URI build() throws URISyntaxException {
return new URI(this.scheme, this.userInfo, this.host, this.port, this.path, this.query, this.fragment);
}
public URIBuilder fragment(String str) {
this.fragment = str;
return this;
}
public URIBuilder host(String str) {
this.host = str;
return this;
}
public URIBuilder path(String str) {
this.path = str;
return this;
}
public URIBuilder port(int i) {
this.port = i;
return this;
}
public URIBuilder query(String str) {
this.query = str;
return this;
}
public URIBuilder scheme(String str) {
this.scheme = str;
return this;
}
public URIBuilder userInfo(String str) {
this.userInfo = str;
return this;
}
public static URIBuilder builder(URI uri) {
return new URIBuilder(uri);
}
private URIBuilder() {
this.scheme = DEFAULT_SCHEME;
this.port = -1;
}
}