Package com.xpn.xwiki.web
Class ViewAction
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiAction
-
- com.xpn.xwiki.web.ViewAction
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.web.LegacyAction
@Component @Named("view") @Singleton public class ViewAction extends XWikiAction
Action called when the request URL has the "/view/" string in its path (this is configured instruts-config.xml
. It means the request is to display a page in view mode.- Version:
- $Id: d5c81ef9cd0b742fbe0f0dde0917bf846578f723 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
VIEW_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 ViewAction()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
render(XWikiContext context)
protected boolean
supportRedirections()
Indicate if the action support redirection.-
Methods inherited from class com.xpn.xwiki.web.XWikiAction
action, 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
-
VIEW_ACTION
public static final String VIEW_ACTION
The identifier of the view action.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-