public class DownloadAction extends XWikiAction
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_NAME
The identifier of the download action.
|
static String |
ATTACHMENT
The identifier of the attachment disposition.
|
static String |
BLACKLIST_PROPERTY
Key of the blacklist in xwiki.properties.
|
static List<String> |
MIMETYPE_WHITELIST
List of authorized attachment mimetypes.
|
static String |
WHITELIST_PROPERTY
Key of the whitelist in xwiki.properties.
|
ACTION_PROGRESS, handleRedirectObject, waitForXWikiInitialization
Constructor and Description |
---|
DownloadAction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
render(XWikiContext context) |
action, cleanupComponents, csrfTokenCheck, execute, execute, getCurrentScriptContext, getLocalization, getProgress, getRealPath, getTranslatedDocument, handleRedirectObject, handleRevision, initializeContainerComponent, initializeXWikiContext, localizePlainOrKey, sendGlobalRedirect, sendRedirect
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public static final String ACTION_NAME
public static final String ATTACHMENT
public static final List<String> MIMETYPE_WHITELIST
public static final String WHITELIST_PROPERTY
public static final String BLACKLIST_PROPERTY
public String render(XWikiContext context) throws XWikiException
render
in class XWikiAction
XWikiException
Copyright © 2004–2017 XWiki. All rights reserved.