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
  • Constructor Details

    • SentryEnvelopeItemHeader

      @Internal public SentryEnvelopeItemHeader(@NotNull @NotNull SentryItemType type, int length, @Nullable @Nullable String contentType, @Nullable @Nullable String fileName, @Nullable @Nullable String attachmentType, @Nullable @Nullable String platform)
  • Method Details

    • getType

      @NotNull public @NotNull SentryItemType getType()
    • getLength

      public int getLength()
    • getContentType

      @Nullable public @Nullable String getContentType()
    • getFileName

      @Nullable public @Nullable String getFileName()
    • getPlatform

      @Nullable public @Nullable String getPlatform()
    • getAttachmentType

      @Nullable public @Nullable String 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 interface JsonSerializable
      Throws:
      IOException
    • getUnknown

      @Nullable public @Nullable Map<String,Object> getUnknown()
      Specified by:
      getUnknown in interface JsonUnknown
    • setUnknown

      public void setUnknown(@Nullable @Nullable Map<String,Object> unknown)
      Specified by:
      setUnknown in interface JsonUnknown