Rabbit-R1/switch port/java/sources/io/sentry/BaggageHeader.java

30 lines
760 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package io.sentry;
import java.util.List;
/* loaded from: classes3.dex */
public final class BaggageHeader {
public static final String BAGGAGE_HEADER = "baggage";
private final String value;
public String getName() {
return BAGGAGE_HEADER;
}
public String getValue() {
return this.value;
}
public static BaggageHeader fromBaggageAndOutgoingHeader(Baggage baggage, List<String> list) {
String headerString = baggage.toHeaderString(Baggage.fromHeader(list, true, baggage.logger).getThirdPartyHeader());
if (headerString.isEmpty()) {
return null;
}
return new BaggageHeader(headerString);
}
public BaggageHeader(String str) {
this.value = str;
}
}