Package io.sentry
Class SentryEnvelopeItemHeader
- java.lang.Object
-
- io.sentry.SentryEnvelopeItemHeader
-
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Internal public final class SentryEnvelopeItemHeader extends java.lang.Object implements JsonSerializable, JsonUnknown
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SentryEnvelopeItemHeader.Deserializer
static class
SentryEnvelopeItemHeader.JsonKeys
-
Constructor Summary
Constructors Constructor Description SentryEnvelopeItemHeader(@NotNull SentryItemType type, int length, @Nullable java.lang.String contentType, @Nullable java.lang.String fileName, @Nullable java.lang.String attachmentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String
getAttachmentType()
Returns the attachmentType type@Nullable java.lang.String
getContentType()
@Nullable java.lang.String
getFileName()
int
getLength()
@NotNull SentryItemType
getType()
@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
-
SentryEnvelopeItemHeader
@Internal public SentryEnvelopeItemHeader(@NotNull @NotNull SentryItemType type, int length, @Nullable @Nullable java.lang.String contentType, @Nullable @Nullable java.lang.String fileName, @Nullable @Nullable java.lang.String attachmentType)
-
-
Method Detail
-
getType
@NotNull public @NotNull SentryItemType getType()
-
getLength
public int getLength()
-
getContentType
@Nullable public @Nullable java.lang.String getContentType()
-
getFileName
@Nullable public @Nullable java.lang.String getFileName()
-
getAttachmentType
@Nullable public @Nullable java.lang.String getAttachmentType()
Returns the attachmentType type- Returns:
- the attachmentType
-
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
-
-