- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
package com.amazonaws.util;
|
|
|
|
import com.amazonaws.Protocol;
|
|
import java.net.URI;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class URIBuilder {
|
|
public static final String DEFAULT_SCHEME = Protocol.HTTPS.toString();
|
|
public String fragment;
|
|
public String host;
|
|
public String path;
|
|
public int port;
|
|
public String query;
|
|
public String scheme;
|
|
public String userInfo;
|
|
|
|
public URIBuilder host(String str) {
|
|
this.host = str;
|
|
return this;
|
|
}
|
|
|
|
public 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(URI uri) {
|
|
return new URIBuilder(uri);
|
|
}
|
|
|
|
public URI build() {
|
|
return new URI(this.scheme, this.userInfo, this.host, this.port, this.path, this.query, this.fragment);
|
|
}
|
|
}
|