com.xpn.xwiki.web
Class ViewEditAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.xpn.xwiki.web.XWikiAction
          extended bycom.xpn.xwiki.web.ViewEditAction

public class ViewEditAction
extends XWikiAction

A simple action that handles the display and editing of an wiki page..

The action support an action URL. The action in the URL controls what this action class does. The following values are supported:


Field Summary
private static org.apache.commons.logging.Log log
           
private static long UPLOAD_DEFAULT_MAXSIZE
           
private static long UPLOAD_DEFAULT_SIZETHRESHOLD
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ViewEditAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Handle server requests.
 void renderXMLRPC(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class com.xpn.xwiki.web.XWikiAction
getRealPath
 
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, 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

log

private static final org.apache.commons.logging.Log log

UPLOAD_DEFAULT_MAXSIZE

private static final long UPLOAD_DEFAULT_MAXSIZE
See Also:
Constant Field Values

UPLOAD_DEFAULT_SIZETHRESHOLD

private static final long UPLOAD_DEFAULT_SIZETHRESHOLD
See Also:
Constant Field Values
Constructor Detail

ViewEditAction

public ViewEditAction()
               throws java.lang.Exception
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest req,
                                                      javax.servlet.http.HttpServletResponse resp)
                                               throws java.lang.Exception,
                                                      javax.servlet.ServletException
Handle server requests.

Parameters:
mapping - The ActionMapping used to select this instance
form - The optional ActionForm bean for this request (if any)
req - The HTTP request we are processing
resp - The HTTP response we are creating
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs
java.lang.Exception

renderXMLRPC

public void renderXMLRPC(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)


Copyright 2003 Ludovic Dubost