com.vaadin.terminal.gwt.server.


Class PortletApplicationContext

java.lang.Object
  com.vaadin.terminal.gwt.server.AbstractWebApplicationContext
      com.vaadin.terminal.gwt.server.WebApplicationContext
          com.vaadin.terminal.gwt.server.PortletApplicationContext

All Implemented Interfaces:

ApplicationContext, Serializable, EventListener, HttpSessionBindingListener

public class PortletApplicationContext
extends WebApplicationContext
implements Serializable

Author:

marc

See Also:

Serialized Form

Nested Class Summary
static interface PortletApplicationContext.PortletListener
           
 
Nested classes/interfaces inherited from interface com.vaadin.service.ApplicationContext
ApplicationContext.TransactionListener
 
Field Summary
protected  Map<Application,Set<PortletApplicationContext.PortletListener>> portletListeners
           
protected  javax.portlet.PortletSession portletSession
           
protected  Map<javax.portlet.Portlet,Application> portletToApplication
           
 
Fields inherited from class com.vaadin.terminal.gwt.server.WebApplicationContext
session
 
Fields inherited from class com.vaadin.terminal.gwt.server.AbstractWebApplicationContext
applications, applicationToAjaxAppMgrMap, browser, listeners
 
Method Summary
 void addPortletListener(Application app, PortletApplicationContext.PortletListener listener)
           
static void dispatchRequest(javax.portlet.Portlet portlet, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
static void dispatchRequest(javax.portlet.Portlet portlet, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
 void firePortletActionRequest(javax.portlet.Portlet portlet, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 void firePortletRenderRequest(javax.portlet.Portlet portlet, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
static WebApplicationContext getApplicationContext(HttpSession session)
           
static PortletApplicationContext getApplicationContext(javax.portlet.PortletSession session)
           
 Application getPortletApplication(javax.portlet.Portlet portlet)
           
 javax.portlet.PortletSession getPortletSession()
           
 void reinitializeSession()
          Reinitializing the session is not supported from portlets.
protected  void removeApplication(Application application)
           
 void removePortletListener(Application app, PortletApplicationContext.PortletListener listener)
           
 void setPortletApplication(javax.portlet.Portlet portlet, Application app)
           
 
Methods inherited from class com.vaadin.terminal.gwt.server.WebApplicationContext
addApplication, endTransaction, getApplicationManager, getBaseDirectory, getHttpSession, startTransaction, valueUnbound
 
Methods inherited from class com.vaadin.terminal.gwt.server.AbstractWebApplicationContext
addTransactionListener, generateApplicationResourceURL, getApplications, getBrowser, getLastRequestTime, getTotalSessionTime, getURLKey, isApplicationResourceURL, removeTransactionListener, setLastRequestTime, valueBound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletSession

protected transient javax.portlet.PortletSession portletSession

portletListeners

protected Map<Application,Set<PortletApplicationContext.PortletListener>> portletListeners

portletToApplication

protected Map<javax.portlet.Portlet,Application> portletToApplication
Method Detail

getApplicationContext

public static PortletApplicationContext getApplicationContext(javax.portlet.PortletSession session)

getApplicationContext

public static WebApplicationContext getApplicationContext(HttpSession session)

removeApplication

protected void removeApplication(Application application)

Overrides:
removeApplication in class AbstractWebApplicationContext

reinitializeSession

public void reinitializeSession()

Reinitializing the session is not supported from portlets.

Overrides:
reinitializeSession in class WebApplicationContext

See Also:
WebApplicationContext.reinitializeSession()

setPortletApplication

public void setPortletApplication(javax.portlet.Portlet portlet,
                                  Application app)

getPortletApplication

public Application getPortletApplication(javax.portlet.Portlet portlet)

getPortletSession

public javax.portlet.PortletSession getPortletSession()

addPortletListener

public void addPortletListener(Application app,
                               PortletApplicationContext.PortletListener listener)

removePortletListener

public void removePortletListener(Application app,
                                  PortletApplicationContext.PortletListener listener)

dispatchRequest

public static void dispatchRequest(javax.portlet.Portlet portlet,
                                   javax.portlet.RenderRequest request,
                                   javax.portlet.RenderResponse response)

dispatchRequest

public static void dispatchRequest(javax.portlet.Portlet portlet,
                                   javax.portlet.ActionRequest request,
                                   javax.portlet.ActionResponse response)

firePortletRenderRequest

public void firePortletRenderRequest(javax.portlet.Portlet portlet,
                                     javax.portlet.RenderRequest request,
                                     javax.portlet.RenderResponse response)

firePortletActionRequest

public void firePortletActionRequest(javax.portlet.Portlet portlet,
                                     javax.portlet.ActionRequest request,
                                     javax.portlet.ActionResponse response)