Package io.sentry
Class SentryEnvelopeItemHeader
java.lang.Object
io.sentry.SentryEnvelopeItemHeader
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
@Internal
public final class SentryEnvelopeItemHeader
extends Object
implements JsonSerializable, JsonUnknown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSentryEnvelopeItemHeader(@NotNull SentryItemType type, int length, @Nullable String contentType, @Nullable String fileName, @Nullable String attachmentType, @Nullable String platform, @Nullable Integer itemCount) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the attachmentType type@Nullable String@Nullable Stringint@Nullable String@NotNull SentryItemTypegetType()voidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetUnknown(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
SentryEnvelopeItemHeader
-
-
Method Details
-
getType
-
getLength
public int getLength() -
getContentType
-
getFileName
-
getPlatform
-
getAttachmentType
Returns the attachmentType type- Returns:
- the attachmentType
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-