Package software.xdev.mailpit.model
Class Attachment
java.lang.Object
software.xdev.mailpit.model.Attachment
Attachment struct for inline and attachments
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) booleanContent IDContent typeFile nameAttachment part IDgetSize()Size in bytesinthashCode()voidsetContentID(String contentID) voidsetContentType(String contentType) voidsetFileName(String fileName) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CONTENT_I_D
- See Also:
-
JSON_PROPERTY_CONTENT_TYPE
- See Also:
-
JSON_PROPERTY_FILE_NAME
- See Also:
-
JSON_PROPERTY_PART_I_D
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
contentID
-
getContentID
Content ID- Returns:
- contentID
-
setContentID
-
contentType
-
getContentType
Content type- Returns:
- contentType
-
setContentType
-
fileName
-
getFileName
File name- Returns:
- fileName
-
setFileName
-
partID
-
getPartID
Attachment part ID- Returns:
- partID
-
setPartID
-
size
-
getSize
Size in bytes- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-