com.xpn.xwiki.web
Class DownloadAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.xpn.xwiki.web.XWikiAction
          extended by com.xpn.xwiki.web.DownloadAction

public class DownloadAction
extends XWikiAction

The action for downloading attachments from the server.

Version:
$Id: 23235d419409fed5c94e7ef4d68a31f333153d50 $

Field Summary
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.
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
DownloadAction()
           
 
Method Summary
 String render(XWikiContext context)
           
 
Methods inherited from class com.xpn.xwiki.web.XWikiAction
action, cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_NAME

public static final String ACTION_NAME
The identifier of the download action.

See Also:
Constant Field Values

ATTACHMENT

public static final String ATTACHMENT
The identifier of the attachment disposition.

See Also:
Constant Field Values

MIMETYPE_WHITELIST

public static final List<String> MIMETYPE_WHITELIST
List of authorized attachment mimetypes.


WHITELIST_PROPERTY

public static final String WHITELIST_PROPERTY
Key of the whitelist in xwiki.properties.

See Also:
Constant Field Values

BLACKLIST_PROPERTY

public static final String BLACKLIST_PROPERTY
Key of the blacklist in xwiki.properties.

See Also:
Constant Field Values
Constructor Detail

DownloadAction

public DownloadAction()
Method Detail

render

public String render(XWikiContext context)
              throws XWikiException
Overrides:
render in class XWikiAction
Throws:
XWikiException


Copyright © 2004–2014 XWiki. All rights reserved.