- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
193 lines
5.3 KiB
Java
193 lines
5.3 KiB
Java
package com.amazonaws;
|
|
|
|
import com.amazonaws.http.HttpMethodName;
|
|
import com.amazonaws.util.AWSRequestMetrics;
|
|
import java.io.InputStream;
|
|
import java.net.URI;
|
|
import java.util.HashMap;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class DefaultRequest<T> implements Request<T> {
|
|
public InputStream content;
|
|
public String encodedUriResourcePath;
|
|
public URI endpoint;
|
|
public String hostPrefix;
|
|
public AWSRequestMetrics metrics;
|
|
public final AmazonWebServiceRequest originalRequest;
|
|
public String resourcePath;
|
|
public String serviceName;
|
|
public long timeOffset;
|
|
public boolean streaming = false;
|
|
public final Map parameters = new LinkedHashMap();
|
|
public final Map headers = new HashMap();
|
|
public HttpMethodName httpMethod = HttpMethodName.POST;
|
|
|
|
@Override // com.amazonaws.Request
|
|
public AWSRequestMetrics getAWSRequestMetrics() {
|
|
return this.metrics;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public InputStream getContent() {
|
|
return this.content;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public String getEncodedUriResourcePath() {
|
|
return this.encodedUriResourcePath;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public URI getEndpoint() {
|
|
return this.endpoint;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public Map getHeaders() {
|
|
return this.headers;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public String getHostPrefix() {
|
|
return this.hostPrefix;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public HttpMethodName getHttpMethod() {
|
|
return this.httpMethod;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public AmazonWebServiceRequest getOriginalRequest() {
|
|
return this.originalRequest;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public Map getParameters() {
|
|
return this.parameters;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public String getResourcePath() {
|
|
return this.resourcePath;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public String getServiceName() {
|
|
return this.serviceName;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public long getTimeOffset() {
|
|
return this.timeOffset;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public boolean isStreaming() {
|
|
return this.streaming;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setContent(InputStream inputStream) {
|
|
this.content = inputStream;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setEndpoint(URI uri) {
|
|
this.endpoint = uri;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setHttpMethod(HttpMethodName httpMethodName) {
|
|
this.httpMethod = httpMethodName;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setResourcePath(String str) {
|
|
this.resourcePath = str;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setTimeOffset(long j) {
|
|
this.timeOffset = j;
|
|
}
|
|
|
|
public DefaultRequest(AmazonWebServiceRequest amazonWebServiceRequest, String str) {
|
|
this.serviceName = str;
|
|
this.originalRequest = amazonWebServiceRequest;
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void addHeader(String str, String str2) {
|
|
this.headers.put(str, str2);
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void addParameter(String str, String str2) {
|
|
this.parameters.put(str, str2);
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setHeaders(Map map) {
|
|
this.headers.clear();
|
|
this.headers.putAll(map);
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setParameters(Map map) {
|
|
this.parameters.clear();
|
|
this.parameters.putAll(map);
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(getHttpMethod());
|
|
sb.append(" ");
|
|
sb.append(getEndpoint());
|
|
sb.append(" ");
|
|
String resourcePath = getResourcePath();
|
|
if (resourcePath == null) {
|
|
sb.append("/");
|
|
} else {
|
|
if (!resourcePath.startsWith("/")) {
|
|
sb.append("/");
|
|
}
|
|
sb.append(resourcePath);
|
|
}
|
|
sb.append(" ");
|
|
if (!getParameters().isEmpty()) {
|
|
sb.append("Parameters: (");
|
|
for (String str : getParameters().keySet()) {
|
|
String str2 = (String) getParameters().get(str);
|
|
sb.append(str);
|
|
sb.append(": ");
|
|
sb.append(str2);
|
|
sb.append(", ");
|
|
}
|
|
sb.append(") ");
|
|
}
|
|
if (!getHeaders().isEmpty()) {
|
|
sb.append("Headers: (");
|
|
for (String str3 : getHeaders().keySet()) {
|
|
String str4 = (String) getHeaders().get(str3);
|
|
sb.append(str3);
|
|
sb.append(": ");
|
|
sb.append(str4);
|
|
sb.append(", ");
|
|
}
|
|
sb.append(") ");
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // com.amazonaws.Request
|
|
public void setAWSRequestMetrics(AWSRequestMetrics aWSRequestMetrics) {
|
|
if (this.metrics != null) {
|
|
throw new IllegalStateException("AWSRequestMetrics has already been set on this request");
|
|
}
|
|
this.metrics = aWSRequestMetrics;
|
|
}
|
|
}
|