|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
com.vaadin.server.VaadinPortlet
public class VaadinPortlet
Portlet 2.0 base class. This replaces the servlet in servlet/portlet 1.0 deployments and handles various portlet requests from the browser. TODO Document me!
Nested Class Summary | |
---|---|
static class |
VaadinPortlet.AbstractApplicationPortletWrapper
|
protected static class |
VaadinPortlet.RequestType
Deprecated. As of 7.0. Will likely change or be removed in a future version |
static class |
VaadinPortlet.VaadinGateinRequest
|
static class |
VaadinPortlet.VaadinHttpAndPortletRequest
|
static class |
VaadinPortlet.VaadinLiferayRequest
|
Field Summary | |
---|---|
static java.lang.String |
PORTAL_PARAMETER_VAADIN_THEME
Deprecated. As of 7.0. Will likely change or be removed in a future version |
static java.lang.String |
PORTLET_PARAMETER_STYLE
Deprecated. As of 7.0. Will likely change or be removed in a future version |
static java.lang.String |
RESOURCE_URL_ID
Deprecated. As of 7.0. Will likely change or be removed in a future version |
static java.lang.String |
WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
Deprecated. As of 7.0. Will likely change or be removed in a future version |
Constructor Summary | |
---|---|
VaadinPortlet()
|
Method Summary | |
---|---|
protected DeploymentConfiguration |
createDeploymentConfiguration(java.util.Properties initParameters)
|
protected VaadinPortletService |
createPortletService(DeploymentConfiguration deploymentConfiguration)
|
protected VaadinPortletRequest |
createVaadinRequest(javax.portlet.PortletRequest request)
Wraps the request in a (possibly portal specific) Vaadin portlet request. |
protected void |
doDispatch(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
static VaadinPortlet |
getCurrent()
Gets the currently used Vaadin portlet. |
protected VaadinPortlet.RequestType |
getRequestType(VaadinPortletRequest vaadinRequest)
Deprecated. As of 7.0. Will likely change or be removed in a future version |
protected VaadinPortletService |
getService()
|
protected void |
handleRequest(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Deprecated. As of 7.0. Will likely change or be removed in a future version |
void |
init(javax.portlet.PortletConfig config)
|
protected void |
portletInitialized()
|
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
processEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
|
void |
serveResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
|
static void |
setCurrent(VaadinPortlet portlet)
Sets the current Vaadin portlet. |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final java.lang.String RESOURCE_URL_ID
@Deprecated public static final java.lang.String PORTLET_PARAMETER_STYLE
@Deprecated public static final java.lang.String PORTAL_PARAMETER_VAADIN_THEME
@Deprecated public static final java.lang.String WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
Constructor Detail |
---|
public VaadinPortlet()
Method Detail |
---|
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
init
in interface javax.portlet.Portlet
init
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
protected void portletInitialized() throws javax.portlet.PortletException
javax.portlet.PortletException
protected DeploymentConfiguration createDeploymentConfiguration(java.util.Properties initParameters)
protected VaadinPortletService createPortletService(DeploymentConfiguration deploymentConfiguration)
@Deprecated protected VaadinPortlet.RequestType getRequestType(VaadinPortletRequest vaadinRequest)
vaadinRequest
-
@Deprecated protected void handleRequest(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException, java.io.IOException
request
- response
-
javax.portlet.PortletException
java.io.IOException
protected VaadinPortletRequest createVaadinRequest(javax.portlet.PortletRequest request)
request
- The original PortletRequest
protected VaadinPortletService getService()
public void processEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response) throws javax.portlet.PortletException, java.io.IOException
processEvent
in interface javax.portlet.EventPortlet
processEvent
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, java.io.IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
protected void doDispatch(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, java.io.IOException
doDispatch
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
public void serveResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response) throws javax.portlet.PortletException, java.io.IOException
serveResource
in interface javax.portlet.ResourceServingPortlet
serveResource
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
java.io.IOException
public static VaadinPortlet getCurrent()
InheritableThreadLocal
). In other cases,
(e.g. from background threads started in some other way), the current
portlet is not automatically defined.
null
setCurrent(VaadinPortlet)
public static void setCurrent(VaadinPortlet portlet)
The application developer can also use this method to define the current portlet outside the normal request handling, e.g. when initiating custom background threads.
portlet
- the Vaadin portlet to register as the current portletgetCurrent()
,
InheritableThreadLocal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |