Package com.xpn.xwiki.web
Class GetAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.GetAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("get") @Singleton public class GetAction extends XWikiActionAction used to get a resource that is a part of a page loaded asynchronously generally for performance reasons. Likedownloadorskinbut for wiki content.This means that by default there is not UI and it's not registered in the statistics since the main page is already logged.
- Version:
- $Id: a78794196bf49f6f00c3545a783ec48cbf1ce604 $
-
-
Field Summary
Fields Modifier and Type Field Description static StringGET_ACTIONThe identifier of the view action.-
Fields inherited from class com.xpn.xwiki.web.XWikiAction
ACTION_PROGRESS, componentDescriptor, container, execution, observation, waitForXWikiInitialization
-
-
Constructor Summary
Constructors Constructor Description GetAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaction(XWikiContext context)Stringrender(XWikiContext context)protected booleansupportRedirections()Indicate if the action support redirection.-
Methods inherited from class com.xpn.xwiki.web.XWikiAction
answerJSON, cleanupComponents, csrfTokenCheck, csrfTokenCheck, execute, execute, getContextualAuthorizationManager, getCurrentMixedDocumentReferenceResolver, getCurrentScriptContext, getEntityNameValidationConfiguration, getEntityNameValidationManager, getFormClass, getLocalization, getLocalSerializer, getName, getProgress, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, initializeXWikiContext, isEntityReferenceNameValid, localizeOrReturnKey, localizePlainOrKey, localizePlainOrReturnKey, readFromTemplate, resolveTemplate, sendGlobalRedirect, sendRedirect, setContentLength, writeAjaxErrorResponse
-
-
-
-
Field Detail
-
GET_ACTION
public static final String GET_ACTION
The identifier of the view action.- See Also:
- Constant Field Values
-
-
Method Detail
-
action
public boolean action(XWikiContext context) throws XWikiException
- Overrides:
actionin classXWikiAction- Throws:
XWikiException
-
render
public String render(XWikiContext context) throws XWikiException
- Overrides:
renderin classXWikiAction- Throws:
XWikiException
-
supportRedirections
protected boolean supportRedirections()
Description copied from class:XWikiActionIndicate if the action support redirection. The default value isfalse.- Overrides:
supportRedirectionsin classXWikiAction- Returns:
trueif the action supports redirections,falseotherwise
-
-