com.xpn.xwiki.web
Class ViewAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.xpn.xwiki.web.XWikiAction
          extended by com.xpn.xwiki.web.ViewAction

public class ViewAction
extends XWikiAction

Action called when the request URL has the "/view/" string in its path (this is configured in struts-config.xml. It means the request is to display a page in view mode.

Version:
$Id: 36127e323a4b3635484d3e1b37acd96b335e07b1 $

Field Summary
static String VIEW_ACTION
          The identifier of the view action.
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ViewAction()
           
 
Method Summary
 boolean action(XWikiContext context)
           
 String render(XWikiContext context)
           
 
Methods inherited from class com.xpn.xwiki.web.XWikiAction
cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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

VIEW_ACTION

public static final String VIEW_ACTION
The identifier of the view action.

See Also:
Constant Field Values
Constructor Detail

ViewAction

public ViewAction()
Method Detail

action

public boolean action(XWikiContext context)
               throws XWikiException
Overrides:
action in class XWikiAction
Throws:
XWikiException

render

public String render(XWikiContext context)
              throws XWikiException
Overrides:
render in class XWikiAction
Throws:
XWikiException


Copyright © 2004-2013 XWiki. All Rights Reserved.