Files
rr3-apk/decompiled/sources/com/ea/nimble/HttpResponse.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

83 lines
2.2 KiB
Java

package com.ea.nimble;
import com.ea.nimble.Log;
import java.io.InputStream;
import java.net.URL;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public class HttpResponse implements IHttpResponse {
public Exception error;
public URL url = null;
public boolean isCompleted = false;
public int statusCode = 0;
public HashMap<String, String> headers = new HashMap<>();
public long expectedContentLength = 0;
public long downloadedContentLength = 0;
public long lastModified = -1;
public ByteBufferIOStream data = new ByteBufferIOStream();
@Override // com.ea.nimble.IHttpResponse
public boolean isCompleted() {
Log.Helper.LOGPUBLICFUNC(this);
return this.isCompleted;
}
@Override // com.ea.nimble.IHttpResponse
public URL getUrl() {
Log.Helper.LOGPUBLICFUNC(this);
return this.url;
}
@Override // com.ea.nimble.IHttpResponse
public int getStatusCode() {
Log.Helper.LOGPUBLICFUNC(this);
return this.statusCode;
}
@Override // com.ea.nimble.IHttpResponse
public Map<String, String> getHeaders() {
Log.Helper.LOGPUBLICFUNC(this);
return this.headers;
}
@Override // com.ea.nimble.IHttpResponse
public long getExpectedContentLength() {
Log.Helper.LOGPUBLICFUNC(this);
return this.expectedContentLength;
}
@Override // com.ea.nimble.IHttpResponse
public long getDownloadedContentLength() {
Log.Helper.LOGPUBLICFUNC(this);
return this.downloadedContentLength;
}
@Override // com.ea.nimble.IHttpResponse
public Date getLastModified() {
Log.Helper.LOGPUBLICFUNC(this);
long j = this.lastModified;
if (j == 0) {
return new Date();
}
if (j > 0) {
return new Date(this.lastModified);
}
return null;
}
@Override // com.ea.nimble.IHttpResponse
public InputStream getDataStream() {
Log.Helper.LOGPUBLICFUNC(this);
return this.data.getInputStream();
}
@Override // com.ea.nimble.IHttpResponse
public Exception getError() {
Log.Helper.LOGPUBLICFUNC(this);
return this.error;
}
}