|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.VaadinSession
com.vaadin.server.VaadinPortletSession
public class VaadinPortletSession
An implementation of VaadinSession for JSR-286 portlet environments.
This is automatically registered as a HttpSessionBindingListener when
PortletSession#setAttribute() is called with the context as value.
Only the documented parts of this class should be considered as stable public
API.
Note also that some methods and/or nested interfaces might move to
VaadinPortletService in future minor or major versions of Vaadin. In
these cases, a deprecated redirection for backwards compatibility will be
used in VaadinPortletSession for a transition period.
| Nested Class Summary | |
|---|---|
static interface |
VaadinPortletSession.PortletListener
Listener interface for the various types of JSR-286 portlet requests. |
| Nested classes/interfaces inherited from class com.vaadin.server.VaadinSession |
|---|
VaadinSession.FutureAccess, VaadinSession.State |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.server.VaadinSession |
|---|
browser, UI_PARAMETER |
| Constructor Summary | |
|---|---|
VaadinPortletSession(VaadinPortletService service)
Create a portlet service session for the given portlet service |
|
| Method Summary | |
|---|---|
void |
addPortletListener(VaadinPortletSession.PortletListener listener)
Adds a listener for various types of portlet requests. |
void |
firePortletActionRequest(UI uI,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
For internal use by the framework only - API subject to change. |
void |
firePortletEventRequest(UI uI,
javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
For internal use by the framework only - API subject to change. |
void |
firePortletRenderRequest(UI uI,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
For internal use by the framework only - API subject to change. |
void |
firePortletResourceRequest(UI uI,
javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
For internal use by the framework only - API subject to change. |
javax.portlet.PortletURL |
generateActionURL(java.lang.String action)
Creates a new action URL. |
javax.portlet.PortletConfig |
getPortletConfig()
Returns the JSR-286 portlet configuration that provides access to the portlet context and init parameters. |
javax.portlet.PortletSession |
getPortletSession()
Returns the underlying portlet session. |
void |
removePortletListener(VaadinPortletSession.PortletListener listener)
Removes a portlet request listener registered with addPortletListener(PortletListener). |
void |
sendPortletEvent(UI uI,
javax.xml.namespace.QName name,
java.io.Serializable value)
Sends a portlet event to the indicated destination. |
void |
setPortletMode(UI uI,
javax.portlet.PortletMode portletMode)
Sets the portlet mode. |
void |
setSharedRenderParameter(UI uI,
java.lang.String name,
java.lang.String value)
Sets a shared portlet parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VaadinPortletSession(VaadinPortletService service)
service - the portlet service to which the new session belongs| Method Detail |
|---|
public javax.portlet.PortletSession getPortletSession()
public javax.portlet.PortletConfig getPortletConfig()
public void addPortletListener(VaadinPortletSession.PortletListener listener)
listener - to addpublic void removePortletListener(VaadinPortletSession.PortletListener listener)
addPortletListener(PortletListener).
listener - to remove
public void firePortletRenderRequest(UI uI,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
public void firePortletActionRequest(UI uI,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
public void firePortletEventRequest(UI uI,
javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
public void firePortletResourceRequest(UI uI,
javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
public javax.portlet.PortletURL generateActionURL(java.lang.String action)
action - the action parameter (javax.portlet.action parameter value in
JSR-286)
public void sendPortletEvent(UI uI,
javax.xml.namespace.QName name,
java.io.Serializable value)
throws java.lang.IllegalStateException
uI - a window in which a temporary action URL can be opened if
necessaryname - event namevalue - event value object that is Serializable and, if appropriate,
has a valid JAXB annotation
java.lang.IllegalStateException
public void setSharedRenderParameter(UI uI,
java.lang.String name,
java.lang.String value)
throws java.lang.IllegalStateException
uI - a window in which a temporary action URL can be opened if
necessaryname - parameter identifiervalue - parameter value
java.lang.IllegalStateException
public void setPortletMode(UI uI,
javax.portlet.PortletMode portletMode)
throws java.lang.IllegalStateException,
javax.portlet.PortletModeException
StateAwareResponse (an action request or an event request).
Portlet mode change in background threads is not supported.
Portlet modes used by a portlet need to be declared in portlet.xml .
uI - a window in which the render URL can be opened if necessaryportletMode - the portlet mode to switch to
javax.portlet.PortletModeException - if the portlet mode is not allowed for some reason
(configuration, permissions etc.)
java.lang.IllegalStateException - if not processing a request of the correct type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||