public class VaadinPortlet extends javax.portlet.GenericPortlet implements Constants, Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
VaadinPortlet.RequestType
Deprecated.
As of 7.0. This is no longer used and only provided for
backwards compatibility. Each
RequestHandler can
individually decide whether it wants to handle a request or
not. |
static class |
VaadinPortlet.VaadinGateInRequest
Portlet request for GateIn.
|
static class |
VaadinPortlet.VaadinHttpAndPortletRequest
Base class for portlet requests that need access to HTTP servlet
requests.
|
static class |
VaadinPortlet.VaadinLiferayRequest
Portlet request for Liferay.
|
static class |
VaadinPortlet.VaadinWebLogicPortalRequest
Portlet request for WebSphere Portal.
|
static class |
VaadinPortlet.VaadinWebSpherePortalRequest
Portlet request for WebSphere Portal.
|
Modifier and Type | Field and Description |
---|---|
static String |
PORTAL_PARAMETER_VAADIN_THEME
Deprecated.
As of 7.0. Will likely change or be removed in a future
version
|
static String |
PORTLET_PARAMETER_STYLE
Deprecated.
As of 7.0. Will likely change or be removed in a future
version
|
static String |
RESOURCE_URL_ID
Deprecated.
As of 7.0. Will likely change or be removed in a future
version
|
static String |
WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
Deprecated.
As of 7.0. Will likely change or be removed in a future
version
|
ATMOSPHERE_MISSING_ERROR, CANNOT_ACQUIRE_CLASSLOADER_SEVERE, DEFAULT_BUFFER_SIZE, DEFAULT_THEME_CACHETIME, DEFAULT_THEME_NAME, DEFAULT_WIDGETSET, ERROR_NO_UI_FOUND, INVALID_ATMOSPHERE_VERSION_WARNING, INVALID_SECURITY_KEY_MSG, MAX_BUFFER_SIZE, NOT_PRODUCTION_MODE_INFO, PARAMETER_VAADIN_RESOURCES, PARAMETER_WIDGETSET, PORTAL_PARAMETER_VAADIN_RESOURCE_PATH, PORTAL_PARAMETER_VAADIN_WIDGETSET, PORTLET_CONTEXT, PUSH_NOT_SUPPORTED_ERROR, REQUIRED_ATMOSPHERE_RUNTIME_VERSION, SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS, SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION, SERVLET_PARAMETER_HEARTBEAT_INTERVAL, SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX, SERVLET_PARAMETER_PRODUCTION_MODE, SERVLET_PARAMETER_PUSH_MODE, SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, SERVLET_PARAMETER_RESOURCE_CACHE_TIME, SERVLET_PARAMETER_SENDURLSASPARAMETERS, SERVLET_PARAMETER_SYNC_ID_CHECK, SERVLET_PARAMETER_UI_PROVIDER, THEME_DIR_PATH, URL_PARAMETER_THEME, WARNING_HEARTBEAT_INTERVAL_NOT_NUMERIC, WARNING_PUSH_MODE_NOT_RECOGNIZED, WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC, WARNING_XSRF_PROTECTION_DISABLED, WIDGETSET_DIR_PATH, WIDGETSET_MISMATCH_INFO
Constructor and Description |
---|
VaadinPortlet() |
Modifier and Type | Method and Description |
---|---|
protected DeploymentConfiguration |
createDeploymentConfiguration(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.
|
void |
destroy() |
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. This is no longer used and only provided for
backwards compatibility. Each
RequestHandler can
individually decide whether it wants to handle a request or
not. |
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) |
doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, render
@Deprecated public static final String RESOURCE_URL_ID
@Deprecated public static final String PORTLET_PARAMETER_STYLE
@Deprecated public static final String PORTAL_PARAMETER_VAADIN_THEME
@Deprecated public static final String WRITE_AJAX_PAGE_SCRIPT_WIDGETSET_SHOULD_WRITE
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(Properties initParameters)
protected VaadinPortletService createPortletService(DeploymentConfiguration deploymentConfiguration) throws ServiceException
ServiceException
@Deprecated protected VaadinPortlet.RequestType getRequestType(VaadinPortletRequest vaadinRequest)
RequestHandler
can
individually decide whether it wants to handle a request or
not.vaadinRequest
- @Deprecated protected void handleRequest(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws javax.portlet.PortletException, IOException
request
- response
- javax.portlet.PortletException
IOException
protected VaadinPortletRequest createVaadinRequest(javax.portlet.PortletRequest request)
request
- The original PortletRequestprotected VaadinPortletService getService()
public void processEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response) throws javax.portlet.PortletException, IOException
processEvent
in interface javax.portlet.EventPortlet
processEvent
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void doDispatch(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doDispatch
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public void serveResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response) throws javax.portlet.PortletException, IOException
serveResource
in interface javax.portlet.ResourceServingPortlet
serveResource
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public void destroy()
destroy
in interface javax.portlet.Portlet
destroy
in class javax.portlet.GenericPortlet
public static VaadinPortlet getCurrent()
ThreadLocal
) and in VaadinSession.access(Runnable)
and UI.access(Runnable)
. In other cases, (e.g. from background
threads, the current service is not automatically defined.
The current portlet is derived from the current service using
VaadinService.getCurrent()
null
Copyright © 2018 Vaadin Ltd. All rights reserved.