Package io.sentry
Class SentryEnvelopeHeader
- java.lang.Object
-
- io.sentry.SentryEnvelopeHeader
-
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Internal public final class SentryEnvelopeHeader extends java.lang.Object implements JsonSerializable, JsonUnknown
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SentryEnvelopeHeader.Deserializer
static class
SentryEnvelopeHeader.JsonKeys
-
Constructor Summary
Constructors Constructor Description SentryEnvelopeHeader()
SentryEnvelopeHeader(@Nullable SentryId eventId)
SentryEnvelopeHeader(@Nullable SentryId eventId, @Nullable SdkVersion sdkVersion)
SentryEnvelopeHeader(@Nullable SentryId eventId, @Nullable SdkVersion sdkVersion, @Nullable TraceState trace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable SentryId
getEventId()
@Nullable SdkVersion
getSdkVersion()
@Nullable TraceState
getTrace()
@Nullable java.util.Map<java.lang.String,java.lang.Object>
getUnknown()
void
serialize(@NotNull JsonObjectWriter writer, @NotNull ILogger logger)
void
setUnknown(@Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
-
-
-
Constructor Detail
-
SentryEnvelopeHeader
public SentryEnvelopeHeader(@Nullable @Nullable SentryId eventId, @Nullable @Nullable SdkVersion sdkVersion)
-
SentryEnvelopeHeader
public SentryEnvelopeHeader(@Nullable @Nullable SentryId eventId, @Nullable @Nullable SdkVersion sdkVersion, @Nullable @Nullable TraceState trace)
-
SentryEnvelopeHeader
public SentryEnvelopeHeader(@Nullable @Nullable SentryId eventId)
-
SentryEnvelopeHeader
public SentryEnvelopeHeader()
-
-
Method Detail
-
getEventId
@Nullable public @Nullable SentryId getEventId()
-
getSdkVersion
@Nullable public @Nullable SdkVersion getSdkVersion()
-
getTrace
@Nullable public @Nullable TraceState getTrace()
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws java.io.IOException
- Specified by:
serialize
in interfaceJsonSerializable
- Throws:
java.io.IOException
-
getUnknown
@Nullable public @Nullable java.util.Map<java.lang.String,java.lang.Object> getUnknown()
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
public void setUnknown(@Nullable @Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
- Specified by:
setUnknown
in interfaceJsonUnknown
-
-