Package com.xwiki.pdfviewer.rest
Interface PDFMacroResource
-
- All Superinterfaces:
org.xwiki.rest.XWikiRestComponent
@Unstable public interface PDFMacroResource extends org.xwiki.rest.XWikiRestComponentProvides the APIs needed by the PDF viewer macro server.- Since:
- 2.7
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetContents(String token, String csrfToken)Get file content.
-
-
-
Method Detail
-
getContents
javax.ws.rs.core.Response getContents(String token, String csrfToken) throws org.xwiki.rest.XWikiRestException
Get file content.- Parameters:
token-Stringrepresentation of the delegation tokencsrfToken-Stringrepresentation of the CSRF token- Returns:
- the content of the file saved in the token
- Throws:
org.xwiki.rest.XWikiRestException- if an error occurred while retrieving the file content
-
-