com.atlassian.jira.rest.client.api.domain
Class Attachment

java.lang.Object
  extended by com.atlassian.jira.rest.client.api.domain.Attachment
All Implemented Interfaces:
AddressableEntity

public class Attachment
extends java.lang.Object
implements AddressableEntity

A file attachment attached to an issue

Since:
v0.1

Constructor Summary
Attachment(java.net.URI self, java.lang.String filename, BasicUser author, org.joda.time.DateTime creationDate, int size, java.lang.String mimeType, java.net.URI contentUri, java.net.URI thumbnailUri)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 BasicUser getAuthor()
           
 java.net.URI getContentUri()
           
 org.joda.time.DateTime getCreationDate()
           
 java.lang.String getFilename()
           
 java.lang.String getMimeType()
           
 java.net.URI getSelf()
           
 int getSize()
           
 java.net.URI getThumbnailUri()
           
 int hashCode()
           
 boolean hasThumbnail()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(java.net.URI self,
                  java.lang.String filename,
                  BasicUser author,
                  org.joda.time.DateTime creationDate,
                  int size,
                  java.lang.String mimeType,
                  java.net.URI contentUri,
                  java.net.URI thumbnailUri)
Method Detail

hasThumbnail

public boolean hasThumbnail()

getSelf

public java.net.URI getSelf()
Specified by:
getSelf in interface AddressableEntity
Returns:
URI to this resource or (usually) its complete version - when partial representation is embedded in other resources

getFilename

public java.lang.String getFilename()

getAuthor

public BasicUser getAuthor()

getCreationDate

public org.joda.time.DateTime getCreationDate()

getSize

public int getSize()

getMimeType

public java.lang.String getMimeType()

getContentUri

public java.net.URI getContentUri()

getThumbnailUri

@Nullable
public java.net.URI getThumbnailUri()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2013 Atlassian. All Rights Reserved.