org.xwiki.rest.resources.attachments
Class AttachmentAtPageVersionResource

java.lang.Object
  extended by org.xwiki.rest.XWikiResource
      extended by org.xwiki.rest.resources.attachments.AttachmentAtPageVersionResource
All Implemented Interfaces:
org.xwiki.component.phase.Initializable, XWikiRestComponent

@Component(value="org.xwiki.rest.resources.attachments.AttachmentAtPageVersionResource")
public class AttachmentAtPageVersionResource
extends XWikiResource

Version:
$Id: AttachmentAtPageVersionResource.java 21281 2009-06-13 19:22:09Z sdumitriu $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.xwiki.rest.XWikiResource
XWikiResource.DocumentInfo
 
Field Summary
 
Fields inherited from class org.xwiki.rest.XWikiResource
componentManager, logger, objectFactory, queryManager, uriInfo, xwiki, xwikiApi, xwikiContext, xwikiUser
 
Constructor Summary
AttachmentAtPageVersionResource()
           
 
Method Summary
 void deleteAttachment(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName, java.lang.String attachmentName)
           
 javax.ws.rs.core.Response getAttachment(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName, java.lang.String version, java.lang.String attachmentName)
           
 javax.ws.rs.core.Response putAttachment(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName, java.lang.String attachmentName, byte[] content)
           
 
Methods inherited from class org.xwiki.rest.XWikiResource
getDocumentInfo, getUriTemplate, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentAtPageVersionResource

public AttachmentAtPageVersionResource()
Method Detail

getAttachment

public javax.ws.rs.core.Response getAttachment(java.lang.String wikiName,
                                               java.lang.String spaceName,
                                               java.lang.String pageName,
                                               java.lang.String version,
                                               java.lang.String attachmentName)
                                        throws com.xpn.xwiki.XWikiException
Throws:
com.xpn.xwiki.XWikiException

putAttachment

public javax.ws.rs.core.Response putAttachment(java.lang.String wikiName,
                                               java.lang.String spaceName,
                                               java.lang.String pageName,
                                               java.lang.String attachmentName,
                                               byte[] content)
                                        throws com.xpn.xwiki.XWikiException
Throws:
com.xpn.xwiki.XWikiException

deleteAttachment

public void deleteAttachment(java.lang.String wikiName,
                             java.lang.String spaceName,
                             java.lang.String pageName,
                             java.lang.String attachmentName)
                      throws com.xpn.xwiki.XWikiException
Throws:
com.xpn.xwiki.XWikiException


Copyright © 2004-2009 XWiki. All Rights Reserved.