public class AttachmentResource extends AbstractResource
authContext, uriInfo, userAccessor
Constructor and Description |
---|
AttachmentResource(UserAccessor userAccessor,
RestAttachmentManager restAttachmentManager,
SpacePermissionManager spacePermissionManager) |
Modifier and Type | Method and Description |
---|---|
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.
|
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
public AttachmentResource(UserAccessor userAccessor, RestAttachmentManager restAttachmentManager, SpacePermissionManager spacePermissionManager)
public javax.ws.rs.core.Response get()
public javax.ws.rs.core.Response getContent(Long id)
id
- Copyright © 2003–2016 Atlassian. All rights reserved.