public class

AttachmentResource

extends AbstractResource
java.lang.Object
   ↳ com.atlassian.confluence.plugins.rest.resources.AbstractResource
     ↳ com.atlassian.confluence.plugins.rest.resources.AttachmentResource

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.plugins.rest.resources.AbstractResource
Public Constructors
AttachmentResource(UserAccessor userAccessor, RestAttachmentManager restAttachmentManager, SpacePermissionManager spacePermissionManager)
Public Methods
Response get()
This method will always return HTTP 404 (not found) as it can not find attachments without an ID.
Response getContent(Long id)
Returns a full representation of the attachment for the given ID.
[Expand]
Inherited Methods
From class com.atlassian.confluence.plugins.rest.resources.AbstractResource
From class java.lang.Object

Public Constructors

public AttachmentResource (UserAccessor userAccessor, RestAttachmentManager restAttachmentManager, SpacePermissionManager spacePermissionManager)

Public Methods

public Response get ()

This method will always return HTTP 404 (not found) as it can not find attachments without an ID.

public Response getContent (Long id)

Returns a full representation of the attachment for the given ID. The ID is that of an attachment and not the page it is attached to.

Returns
  • AttachmentEntity