com.xpn.xwiki.web
Class XWikiPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by com.xpn.xwiki.web.XWikiPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class XWikiPortlet
extends javax.portlet.GenericPortlet


Field Summary
static javax.portlet.PortletMode CONFIG_PORTLET_MODE
           
protected  org.apache.commons.logging.Log logger
           
private  java.lang.String name
           
static java.lang.String ROOT_SPACE_PARAM_NAME
           
 
Constructor Summary
XWikiPortlet()
           
 
Method Summary
protected  void cleanUp(XWikiContext context)
           
protected  void doDispatch(javax.portlet.RenderRequest aRenderRequest, javax.portlet.RenderResponse aRenderResponse)
           
protected  void doEdit(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse)
           
protected  void doView(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse)
           
protected  java.lang.String getTitle(javax.portlet.RenderRequest renderRequest)
           
private  void handleConfigForm(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse)
           
protected  void handleException(XWikiRequest request, XWikiResponse response, java.lang.Throwable e, XWikiContext context)
           
protected  boolean prepareAction(java.lang.String action, XWikiRequest request, XWikiResponse response, XWikiEngineContext engine_context, XWikiContext context)
           
protected  XWikiContext prepareContext(java.lang.String action, XWikiRequest request, XWikiResponse response, XWikiEngineContext engine_context)
           
 void processAction(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse)
           
protected  javax.servlet.http.HttpServletRequest processMultipart(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doHelp, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, init, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

name

private java.lang.String name

CONFIG_PORTLET_MODE

public static final javax.portlet.PortletMode CONFIG_PORTLET_MODE

ROOT_SPACE_PARAM_NAME

public static final java.lang.String ROOT_SPACE_PARAM_NAME
See Also:
Constant Field Values
Constructor Detail

XWikiPortlet

public XWikiPortlet()
Method Detail

getTitle

protected java.lang.String getTitle(javax.portlet.RenderRequest renderRequest)
Overrides:
getTitle in class javax.portlet.GenericPortlet

prepareContext

protected XWikiContext prepareContext(java.lang.String action,
                                      XWikiRequest request,
                                      XWikiResponse response,
                                      XWikiEngineContext engine_context)
                               throws XWikiException
Throws:
XWikiException

processMultipart

protected javax.servlet.http.HttpServletRequest processMultipart(javax.servlet.http.HttpServletRequest request)

prepareAction

protected boolean prepareAction(java.lang.String action,
                                XWikiRequest request,
                                XWikiResponse response,
                                XWikiEngineContext engine_context,
                                XWikiContext context)
                         throws XWikiException,
                                java.io.IOException
Throws:
XWikiException
java.io.IOException

cleanUp

protected void cleanUp(XWikiContext context)

handleException

protected void handleException(XWikiRequest request,
                               XWikiResponse response,
                               java.lang.Throwable e,
                               XWikiContext context)

doDispatch

protected void doDispatch(javax.portlet.RenderRequest aRenderRequest,
                          javax.portlet.RenderResponse aRenderResponse)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Overrides:
doDispatch in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

processAction

public void processAction(javax.portlet.ActionRequest actionRequest,
                          javax.portlet.ActionResponse actionResponse)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

handleConfigForm

private void handleConfigForm(javax.portlet.ActionRequest actionRequest,
                              javax.portlet.ActionResponse actionResponse)
                       throws javax.portlet.PortletException,
                              java.io.IOException
Throws:
javax.portlet.PortletException
java.io.IOException

doView

protected void doView(javax.portlet.RenderRequest renderRequest,
                      javax.portlet.RenderResponse renderResponse)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doView in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

doEdit

protected void doEdit(javax.portlet.RenderRequest renderRequest,
                      javax.portlet.RenderResponse renderResponse)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doEdit in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException


Copyright 2003 Ludovic Dubost