Class TemporaryWebAttachment
java.lang.Object
com.atlassian.jira.issue.attachment.TemporaryWebAttachment
Represents temporary attachment uploaded by user which may be later converted into a real attachment.
- Since:
- v6.4
-
Constructor Summary
ConstructorDescriptionTemporaryWebAttachment
(TemporaryAttachmentId temporaryAttachmentId, String filename, String contentType, String formToken, long size, org.joda.time.DateTime created) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getContentType
(boolean stripParams) ContentType header might include extra parameters (the part starts with a semicolon).org.joda.time.DateTime
long
getSize()
int
hashCode()
toString()
-
Constructor Details
-
TemporaryWebAttachment
public TemporaryWebAttachment(TemporaryAttachmentId temporaryAttachmentId, String filename, String contentType, String formToken, long size, org.joda.time.DateTime created)
-
-
Method Details
-
getTemporaryAttachmentId
-
getStringId
-
getFilename
-
getContentType
-
getContentType
ContentType header might include extra parameters (the part starts with a semicolon). See https://www.w3.org/Protocols/rfc1341/4_Content-Type.html for more detail. For certain use like QTempAttachmentsMonitor we don't need these extra params. The column that stores the value has a limit of 255 characters. See https://jira.atlassian.com/browse/JSDCLOUD-5477- Parameters:
stripParams
- whether to cut the value after type + subtype- Returns:
- value of Content-Type header field.
- Since:
- v7.5.0
-
getFormToken
-
getSize
public long getSize() -
getCreated
public org.joda.time.DateTime getCreated() -
hashCode
public int hashCode() -
equals
-
toString
-