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
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionSentryEnvelopeItemHeader
(@NotNull SentryItemType type, int length, @Nullable String contentType, @Nullable String fileName, @Nullable String attachmentType) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the attachmentType type@Nullable String
@Nullable String
int
@NotNull SentryItemType
getType()
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
SentryEnvelopeItemHeader
@Internal public SentryEnvelopeItemHeader(@NotNull @NotNull SentryItemType type, int length, @Nullable @Nullable String contentType, @Nullable @Nullable String fileName, @Nullable @Nullable String attachmentType)
-
-
Method Details
-
getType
-
getLength
public int getLength() -
getContentType
-
getFileName
-
getAttachmentType
Returns the attachmentType type- Returns:
- the attachmentType
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-