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 Type
    Method
    Description
    javax.ws.rs.core.Response
    getContents(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 - String representation of the delegation token
      csrfToken - String representation 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