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
URI pattern for this action.
|
waitForXWikiInitialization
Constructor and Description |
---|
TempResourceAction() |
Modifier and Type | Method and Description |
---|---|
protected File |
getTemporaryFile(String uri,
XWikiContext context)
Returns the temporary file corresponding to the specified URI.
|
String |
render(XWikiContext context) |
action, cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, 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–2014 XWiki. All rights reserved.