com.atlassian.confluence.plugins.rest.resources
Class AttachmentResource
java.lang.Object
com.atlassian.confluence.plugins.rest.resources.AbstractResource
com.atlassian.confluence.plugins.rest.resources.AttachmentResource
public class AttachmentResource
- extends AbstractResource
Method Summary |
javax.ws.rs.core.Response |
get()
This method will always return HTTP 404 (not found) as it can not find
attachments without an ID. |
javax.ws.rs.core.Response |
getContent(Long id)
Returns a full representation of the attachment for the given ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentResource
public AttachmentResource(UserAccessor userAccessor,
RestAttachmentManager restAttachmentManager,
SpacePermissionManager spacePermissionManager)
get
public javax.ws.rs.core.Response get()
- This method will always return HTTP 404 (not found) as it can not find
attachments without an ID.
- Returns:
getContent
public javax.ws.rs.core.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.
- Parameters:
id
-
- Returns:
- AttachmentEntity
Copyright © 2003-2013 Atlassian. All Rights Reserved.