com.liferay.faces.bridge.event
Class EventPayloadWrapper
java.lang.Object
com.liferay.faces.bridge.event.EventPayloadWrapper
- All Implemented Interfaces:
- Serializable, javax.faces.FacesWrapper<Serializable>
public class EventPayloadWrapper
- extends Object
- implements javax.faces.FacesWrapper<Serializable>, Serializable
The purpose of this class is to provide support a vendor-specific feature of Liferay Portal that provides the
ability to broadcast Portlet 2.0 Events to portlets that exist on a different portal page. For more information,
refer to the "portlet.event.distribution" key inside of the Liferay Portal portal.properties file.
This class provides the ability to wrap a Serializable event payload that is intended to be sent via
StateAwareResponse.setEvent(String, Serializable) or StateAwareResponse.setEvent(javax.xml.namespace.QName, Serializable). It also provides the ability for the recipient
of the event to determine whether or not a redirect is taking place.
- Author:
- Neil Griffin
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventPayloadWrapper
public EventPayloadWrapper(Serializable payload,
boolean redirect)
- Constructs a new
EventPayloadWrapper instance.
- Parameters:
payload - The Serializable payload that is to be wrapped.redirect - The flag indicating whether or not a redirect is taking place.
isRedirect
public boolean isRedirect()
getWrapped
public Serializable getWrapped()
- Specified by:
getWrapped in interface javax.faces.FacesWrapper<Serializable>
Copyright © 2014 Liferay, Inc.. All Rights Reserved.