@Deprecated public class TempResourceAction extends XWikiAction
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
Deprecated.
URI pattern for this action.
|
ACTION_PROGRESS, handleRedirectObject, waitForXWikiInitialization
Constructor and Description |
---|
TempResourceAction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected File |
getTemporaryFile(String uri,
XWikiContext context)
Deprecated.
Returns the temporary file corresponding to the specified URI.
|
String |
render(XWikiContext context)
Deprecated.
|
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 Pattern URI_PATTERN
public String render(XWikiContext context) throws XWikiException
render
in class XWikiAction
XWikiException
protected File getTemporaryFile(String uri, XWikiContext context)
uri
- request URI.context
- xwiki context.Copyright © 2004–2017 XWiki. All rights reserved.