public class AttachmentResource extends Object
Constructor and Description |
---|
AttachmentResource(AttachmentStrategyFactory factory,
AttachmentManager attachmentManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
expandForHumans(String id)
Tries to expand an attachment.
|
javax.ws.rs.core.Response |
expandForMachines(String id)
Tries to expand an attachment.
|
javax.ws.rs.core.Response |
getAttachment(String id)
Returns the meta-data for an attachment, including the URI of the actual attached file.
|
javax.ws.rs.core.Response |
getAttachmentMeta()
Returns the meta information for an attachments, specifically if they are enabled and the maximum upload size
allowed.
|
javax.ws.rs.core.Response |
removeAttachment(String id)
Remove an attachment from an issue.
|
public AttachmentResource(AttachmentStrategyFactory factory, AttachmentManager attachmentManager)
public javax.ws.rs.core.Response getAttachment(String id)
id
- id of the attachment to viewpublic javax.ws.rs.core.Response removeAttachment(String id)
id
- id of the attachment to removepublic javax.ws.rs.core.Response getAttachmentMeta()
@ExperimentalApi public javax.ws.rs.core.Response expandForMachines(String id)
id
- the id of the attachment to expand.@ExperimentalApi public javax.ws.rs.core.Response expandForHumans(String id)
id
- the id of the attachment to expand.Copyright © 2002-2021 Atlassian. All Rights Reserved.