@Component @Named(value="temp") @Singleton @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, componentDescriptor, container, execution, handleRedirectObject, observation, 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, answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getFormClass, getLocalization, getLocalSerializer, getName, getProgress, getRealPath, getTranslatedDocument, handleRedirectObject, handleRevision, initializeContainerComponent, initializeXWikiContext, initializeXWikiContext, isEntityReferenceNameValid, localizePlainOrKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, writeAjaxErrorResponse
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–2021 XWiki. All rights reserved.