com.vaadin.terminal.gwt.server
Interface PortletRequestListener

All Superinterfaces:
Serializable

public interface PortletRequestListener
extends Serializable

An Application that implements this interface gets notified of request start and end by the terminal. It is quite similar to the HttpServletRequestListener, but the parameters are Portlet specific. If an Application is deployed as both a Servlet and a Portlet, one most likely needs to implement both.

Only JSR 286 style Portlets are supported.

The interface can be used for several helper tasks including:

Alternatives for implementing similar features are are Servlet Filter s and ApplicationContext.TransactionListeners in Vaadin.

Since:
6.2
See Also:
HttpServletRequestListener

Method Summary
 void onRequestEnd(PortletRequest request, PortletResponse response)
          This method is called at the end of each request.
 void onRequestStart(PortletRequest request, PortletResponse response)
          This method is called before Terminal applies the request to Application.
 

Method Detail

onRequestStart

void onRequestStart(PortletRequest request,
                    PortletResponse response)
This method is called before Terminal applies the request to Application.

Parameters:
requestData - the PortletRequest about to change Application state

onRequestEnd

void onRequestEnd(PortletRequest request,
                  PortletResponse response)
This method is called at the end of each request.

Parameters:
requestData - the PortletRequest


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.