Class XrayEvidenceItemEntity

java.lang.Object
de.qytera.qtaf.xray.entity.XrayEvidenceItemEntity

public class XrayEvidenceItemEntity extends Object
Xray evidence item entity.
See Also:
  • Method Details

    • fromFile

      public static XrayEvidenceItemEntity fromFile(String filepath)
      Transforms the provided file into an evidence entity.
      Parameters:
      filepath - the path to the file
      Returns:
      a corresponding evidence entity
    • fromFile

      public static XrayEvidenceItemEntity fromFile(String filepath, String evidenceName)
      Transforms the provided file into an evidence entity. If evidenceName is null, the name of the provided file will be used as name. Otherwise, the provided name will be used.
      Parameters:
      filepath - the path to the file
      evidenceName - an optional name to assign to the evidence
      Returns:
      a corresponding evidence entity
    • fromString

      public static XrayEvidenceItemEntity fromString(String data, String evidenceName)
      Transforms the provided String data into an evidence entity.
      Parameters:
      data - the data to convert into evidence
      evidenceName - the name to assign to the evidence
      Returns:
      a corresponding evidence entity
    • getData

      public String getData()
      The attachment data encoded in base64.
    • getFilename

      public String getFilename()
      The file name for the attachment.
    • getContentType

      public String getContentType()
      The Content-Type representation header is used to indicate the original media type of the resource.
    • setContentType

      public void setContentType(String contentType)
      The Content-Type representation header is used to indicate the original media type of the resource.