com.atlassian.confluence.plugins.rest.resources
Class AttachmentResource

java.lang.Object
  extended by com.atlassian.confluence.plugins.rest.resources.AbstractResource
      extended by com.atlassian.confluence.plugins.rest.resources.AttachmentResource

public class AttachmentResource
extends AbstractResource


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
authContext, uriInfo, userAccessor
 
Constructor Summary
AttachmentResource(UserAccessor userAccessor, RestAttachmentManager restAttachmentManager, SpacePermissionManager spacePermissionManager)
           
 
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(java.lang.Long id)
          Returns a full representation of the attachment for the given ID.
 
Methods inherited from class com.atlassian.confluence.plugins.rest.resources.AbstractResource
createRequestContext, getAnonymousUserUriBuilder, getAttachmentUriBuilder, getContentUriBuilder, getCurrentUser, getMissingUserUriBuilder, getSpaceUriBuilder, getUserUriBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentResource

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

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(java.lang.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-2014 Atlassian. All Rights Reserved.