|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
com.xpn.xwiki.web.XWikiAction
com.xpn.xwiki.web.TempResourceAction
public class TempResourceAction
Action responsible for downloading temporary resources created by various modules. The temporary resource is put in the temporary directory in a directory named "temp" and in subdirectories "(module)/(wiki)/(space)/(page)/(file)" where:
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
.
Field Summary | |
---|---|
static Pattern |
URI_PATTERN
URI pattern for this action. |
Fields inherited from class org.apache.struts.action.Action |
---|
servlet |
Constructor Summary | |
---|---|
TempResourceAction()
|
Method Summary | |
---|---|
protected File |
getTemporaryFile(String uri,
XWikiContext context)
Returns the temporary file corresponding to the specified URI. |
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 |
---|
public static final Pattern URI_PATTERN
Constructor Detail |
---|
public TempResourceAction()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |