public class TempResourceAction
extends com.xpn.xwiki.web.XWikiAction
For example if the URL is http://localhost:8080/xwiki/bin/temp/Main/WebHome/test/test.png then the resource
will be fetched from TMPDIR/temp/test/xwiki/Main/WebHome/test.png.
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
URI_PATTERN
URI pattern for this action.
|
| Constructor and Description |
|---|
TempResourceAction() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getTemporaryFile(String uri,
com.xpn.xwiki.XWikiContext context)
Returns the temporary file corresponding to the specified URI.
|
String |
render(com.xpn.xwiki.XWikiContext context) |
action, cleanupComponents, csrfTokenCheck, execute, execute, getLocalization, getProgress, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, localizePlainOrKey, sendGlobalRedirect, sendRedirectaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletpublic static final Pattern URI_PATTERN
public String render(com.xpn.xwiki.XWikiContext context) throws com.xpn.xwiki.XWikiException
render in class com.xpn.xwiki.web.XWikiActioncom.xpn.xwiki.XWikiExceptionprotected File getTemporaryFile(String uri, com.xpn.xwiki.XWikiContext context)
uri - request URI.context - xwiki context.Copyright © 2011–2017 University of Toronto, Computational Biology Lab. All rights reserved.