Package com.xwiki.pdfviewer.rest
Interface PDFMacroResource
- All Superinterfaces:
org.xwiki.rest.XWikiRestComponent
@Unstable
public interface PDFMacroResource
extends org.xwiki.rest.XWikiRestComponent
Provides the APIs needed by the PDF viewer macro server.
- Since:
- 2.7
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetContents(String token, String csrfToken) Get file content.
-
Method Details
-
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
-