mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-19 04:13:18 +01:00
41 lines
1.4 KiB
Java
41 lines
1.4 KiB
Java
package org.apache.http.protocol;
|
|
|
|
import com.amazon.alexa.ra.core.ui.markdown.parser.formatter.MarkdownConstants;
|
|
import org.apache.http.util.Args;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Deprecated
|
|
/* loaded from: classes11.dex */
|
|
public final class DefaultedHttpContext implements HttpContext {
|
|
private final HttpContext defaults;
|
|
private final HttpContext local;
|
|
|
|
public DefaultedHttpContext(HttpContext httpContext, HttpContext httpContext2) {
|
|
this.local = (HttpContext) Args.notNull(httpContext, "HTTP context");
|
|
this.defaults = httpContext2;
|
|
}
|
|
|
|
@Override // org.apache.http.protocol.HttpContext
|
|
public Object getAttribute(String str) {
|
|
Object attribute = this.local.getAttribute(str);
|
|
return attribute == null ? this.defaults.getAttribute(str) : attribute;
|
|
}
|
|
|
|
public HttpContext getDefaults() {
|
|
return this.defaults;
|
|
}
|
|
|
|
@Override // org.apache.http.protocol.HttpContext
|
|
public Object removeAttribute(String str) {
|
|
return this.local.removeAttribute(str);
|
|
}
|
|
|
|
@Override // org.apache.http.protocol.HttpContext
|
|
public void setAttribute(String str, Object obj) {
|
|
this.local.setAttribute(str, obj);
|
|
}
|
|
|
|
public String toString() {
|
|
return "[local: " + this.local + "defaults: " + this.defaults + MarkdownConstants.RIGHT_BRACKET;
|
|
}
|
|
}
|