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 XWikiAction
Action used to get a resource that is a part of a page loaded asynchronously generally for performance reasons. Likedownload
orskin
but 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 String
GET_ACTION
The 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 boolean
action(XWikiContext context)
String
render(XWikiContext context)
protected boolean
supportRedirections()
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, localizePlainOrKey, 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:
action
in classXWikiAction
- Throws:
XWikiException
-
render
public String render(XWikiContext context) throws XWikiException
- Overrides:
render
in classXWikiAction
- Throws:
XWikiException
-
supportRedirections
protected boolean supportRedirections()
Description copied from class:XWikiAction
Indicate if the action support redirection. The default value isfalse
.- Overrides:
supportRedirections
in classXWikiAction
- Returns:
true
if the action supports redirections,false
otherwise
-
-