Package de.qytera.qtaf.xray.entity
Class XrayEvidenceItemEntity
java.lang.Object
de.qytera.qtaf.xray.entity.XrayEvidenceItemEntity
Xray evidence item entity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic XrayEvidenceItemEntityTransforms the provided file into an evidence entity.static XrayEvidenceItemEntityTransforms the provided file into an evidence entity.static XrayEvidenceItemEntityfromString(String data, String evidenceName) Transforms the providedStringdata into an evidence entity.The Content-Type representation header is used to indicate the original media type of the resource.getData()The attachment data encoded in base64.The file name for the attachment.voidsetContentType(String contentType) The Content-Type representation header is used to indicate the original media type of the resource.
-
Method Details
-
fromFile
Transforms the provided file into an evidence entity.- Parameters:
filepath- the path to the file- Returns:
- a corresponding evidence entity
-
fromFile
Transforms the provided file into an evidence entity. IfevidenceNameisnull, the name of the provided file will be used as name. Otherwise, the provided name will be used.- Parameters:
filepath- the path to the fileevidenceName- an optional name to assign to the evidence- Returns:
- a corresponding evidence entity
-
fromString
Transforms the providedStringdata into an evidence entity.- Parameters:
data- the data to convert into evidenceevidenceName- the name to assign to the evidence- Returns:
- a corresponding evidence entity
-
getData
The attachment data encoded in base64. -
getFilename
The file name for the attachment. -
getContentType
The Content-Type representation header is used to indicate the original media type of the resource. -
setContentType
The Content-Type representation header is used to indicate the original media type of the resource.
-